Comments (9)
Thanks to your advice, I could reduce the processing time to 1:40, around 2 minutes (Only align and blend), which is awesome. Is there any way to speed up more?
Nvidia Rtx 3070
Windows 11
from barbershop.
Dear @ZPdesu
Do you have any numbers on inference time for different hardware setups?
I ran the following command
python main.py --im_path1 90.png --im_path2 15.png --im_path3 117.png --sign realistic --smooth 5
the embedding process runs with ~1.6it/s on a Tesla K80 and takes about 8 minutes for default options for one image. How would one speed up inference times in general because in your paper you wrote that the overall process takes about 2 minutes [1] and I wondered If you could share some details on your hardware setup.
[1]: For each
composite image, we solve equation (6) and then (13) to generate a
composite image in an average time of two minutes
from barbershop.
It has already been implemented. For example, you can first use functions ii2s.invert_images_in_W() and ii2s.invert_images_in_FS() to invert all of your images . When you do the inference, you can comment these two lines in main.py.
Also, please git pull the newest repo for improvements and new features.
from barbershop.
It has already been implemented. For example, you can first use functions ii2s.invert_images_in_W() and ii2s.invert_images_in_FS() to invert all of your images . When you do the inference, you can comment these two lines in main.py. Also, please git pull the newest repo for improvements and new features.
First,thank you for your early reply.Second,there may be a problem with my statement that has misunderstood you(it`s my fault).For example,I want only transfer the style and appearance of image2(python image1 image2 image2 ) to the new another
image,and save the informations of the ref image(image2) of the three processes(embedding、alignment、blendding) in advanced.when I transfer the style and appearance of image2 to new user head image,can the transfer process whitout the
"pbar" for loop process of alignment,blendding,so the whole inference process time can decrease hugely when transfer new user image use the saved informations of the preprocessed ref image.Can this idea implement?
from barbershop.
It has already been implemented. For example, you can first use functions ii2s.invert_images_in_W() and ii2s.invert_images_in_FS() to invert all of your images . When you do the inference, you can comment these two lines in main.py. Also, please git pull the newest repo for improvements and new features.
First,thank you for your early reply.Second,there may be a problem with my statement that has misunderstood you(it`s my fault).For example,I want only transfer the style and appearance of image2(python image1 image2 image2 ) to the new another image,and save the informations of the ref image(image2) of the three processes(embedding、alignment、blendding) in advanced.when I transfer the style and appearance of image2 to new user head image,can the transfer process whitout the "pbar" for loop process of alignment,blendding,so the whole inference process time can decrease hugely when transfer new user image use the saved informations of the preprocessed ref image.Can this idea implement?
For now, only the embedding information can be reused.
from barbershop.
Dear @ZPdesu
Do you have any numbers on inference time for different hardware setups?
I ran the following command
python main.py --im_path1 90.png --im_path2 15.png --im_path3 117.png --sign realistic --smooth 5
the embedding process runs with ~1.6it/s on a Tesla K80 and takes about 8 minutes for default options for one image. How would one speed up inference times in general because in your paper you wrote that the overall process takes about 2 minutes [1] and I wondered If you could share some details on your hardware setup.
[1]: For each composite image, we solve equation (6) and then (13) to generate a composite image in an average time of two minutes
The total time is to add up all the parts for each image. The alignment and blending part does not require that much time. II2S embedding takes less than 3 minutes for one image on my RTX3090 machine. You can reuse the embedding results for different editing combinations.
from barbershop.
It has already been implemented. For example, you can first use functions ii2s.invert_images_in_W() and ii2s.invert_images_in_FS() to invert all of your images . When you do the inference, you can comment these two lines in main.py. Also, please git pull the newest repo for improvements and new features.
First,thank you for your early reply.Second,there may be a problem with my statement that has misunderstood you(it`s my fault).For example,I want only transfer the style and appearance of image2(python image1 image2 image2 ) to the new another image,and save the informations of the ref image(image2) of the three processes(embedding、alignment、blendding) in advanced.when I transfer the style and appearance of image2 to new user head image,can the transfer process whitout the "pbar" for loop process of alignment,blendding,so the whole inference process time can decrease hugely when transfer new user image use the saved informations of the preprocessed ref image.Can this idea implement?
For now, only the embedding information can be reused.
same issue
from barbershop.
Anyone know how to store embedding of input face for re-use latter?
from barbershop.
Thanks to your advice, I could reduce the processing time to 1:40, around 2 minutes (Only align and blend), which is awesome. Is there any way to speed up more?
Nvidia Rtx 3070
Windows 11
How were you able to do it? Can you elaborate on the steps please?
from barbershop.
Related Issues (20)
- Hello, boss, can't this project be used on Windows system HOT 4
- Model does not correctly model changes to facial hair. HOT 1
- Little question about cal_loss
- Image Encoder
- How to get output results? HOT 1
- Minimal Requirements for inference. HOT 2
- Can this method be used in hairstyle transfer on full-body image of person? HOT 4
- How can I manually edit masks?
- How can I apply only haircolor change(except hairstyle change) with 2 images ?
- Can I replace StyleGan2 with MobileStyleGan?
- Error when running Main
- Ninja is required to load C++ extensions
- Could you share the performance benchmark result?
- can't use the command conda env create -f environment/environment.yaml (different packages that are not found every time I ran the command) HOT 5
- Issue with align_face.py HOT 1
- When I execute python align_face.py, the resulting picture is weird
- IndexError: list index out of range HOT 2
- take more than 8 hours to process
- Did anyone get this working? HOT 1
- ninja: build stopped: subcommand failed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barbershop.