Giter Club home page Giter Club logo

Comments (9)

mrsaleh avatar mrsaleh commented on August 19, 2024 3

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.

Erlix322 avatar Erlix322 commented on August 19, 2024 1

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.

ZPdesu avatar ZPdesu commented on August 19, 2024

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.

lincong666 avatar lincong666 commented on August 19, 2024

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.

ZPdesu avatar ZPdesu commented on August 19, 2024

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.

ZPdesu avatar ZPdesu commented on August 19, 2024

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.

Xelawk avatar Xelawk commented on August 19, 2024

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.

tukao89 avatar tukao89 commented on August 19, 2024

Anyone know how to store embedding of input face for re-use latter?

from barbershop.

tushar-31093 avatar tushar-31093 commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.