Giter Club home page Giter Club logo

Comments (15)

Paper99 avatar Paper99 commented on June 12, 2024 1

The speed is amazing. It only takes me less than 10 seconds to generate an image on the A100 with 10 input images.

from photomaker.

akk-123 avatar akk-123 commented on June 12, 2024

10 sencond? but I cost 4 minutes, and I'm sure the code runs on gpu
image

from photomaker.

Paper99 avatar Paper99 commented on June 12, 2024

In principle, it is not much slower than sdxl.
How long does it take you to run sdxl?

from photomaker.

akk-123 avatar akk-123 commented on June 12, 2024

same config, run 40 steps, generate 4 img, cost 40s
image

from photomaker.

bmaltais avatar bmaltais commented on June 12, 2024

Hummm... on a 3090 on windows it generate 4 images in 66 seconds @ 50 steps

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

Hummm... on a 3090 on windows it generate 4 images in 66 seconds @ 50 steps

Hi bmaltais, thanks for your work with this project. Do you know why it takes me 3+ hours to generate 2 images with default settings on a 2060 gpu? Any way to reduce the time.. by like 4000% haha?

from photomaker.

bmaltais avatar bmaltais commented on June 12, 2024

This is certainly not normal... have you followed the installation instructions in my fork or are you using the default install instruction in the main repo?

Try following my instructions and see if it make a difference...

https://github.com/bmaltais/PhotoMaker/?tab=readme-ov-file#-dependencies-and-installation-windows

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

Try following my instructions and see if it make a difference...

https://github.com/bmaltais/PhotoMaker/?tab=readme-ov-file#-dependencies-and-installation-windows

Right! It´s very weird and I´m so hyped to generate stuff.. ! I just tried a clean install of your fork AND python, not using anaconda environments this time even tho it should technically work as well.

Install works perfectly. Generations however, seems to take forever. At least the gpu is at 100% as far as I can tell.

I did a quick test in comfy ui with a different standard model 20 steps and 512px res takes 30 seconds.

Something fishy is certainly going down.

from photomaker.

bmaltais avatar bmaltais commented on June 12, 2024

Try following my instructions and see if it make a difference...
https://github.com/bmaltais/PhotoMaker/?tab=readme-ov-file#-dependencies-and-installation-windows

Right! It´s very weird and I´m so hyped to generate stuff.. ! I just tried a clean install of your fork AND python, not using anaconda environments this time even tho it should technically work as well.

Still seems to take forever. At least the gpu is at 100% as far as I can tell.

I did a quick test in comfy ui where 20 steps and 512px res takes 30 seconds.

Something fishy is certainly going down.

Yeah... this is odd... I have pushed a PR to both ComfyUI nodes to add support for width and height... this should bring the ComfyUI support on par with Gradio. The nodes are still immature but hope things will improve so they become more standard ComfyUI nodes with proper batch image input support and multiple image outputs...

StartHua/Comfyui-Mine-PhotoMaker#4

ZHO-ZHO-ZHO/ComfyUI-PhotoMaker-ZHO#5

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

Try following my instructions and see if it make a difference...
https://github.com/bmaltais/PhotoMaker/?tab=readme-ov-file#-dependencies-and-installation-windows

Right! It´s very weird and I´m so hyped to generate stuff.. ! I just tried a clean install of your fork AND python, not using anaconda environments this time even tho it should technically work as well.
Still seems to take forever. At least the gpu is at 100% as far as I can tell.
I did a quick test in comfy ui where 20 steps and 512px res takes 30 seconds.
Something fishy is certainly going down.

Yeah... this is odd... I have pushed a PR to both ComfyUI nodes to add support for width and height... this should bring the ComfyUI support on par with Gradio. The nodes are still immature but hope things will improve so they become more standard ComfyUI nodes with proper batch image input support and multiple image outputs...

StartHua/Comfyui-Mine-PhotoMaker#4

ZHO-ZHO-ZHO/ComfyUI-PhotoMaker#5

Thanks a bunch. Oh are you able to use ComfyUI somehow with photomaker? (might be a nooby question since im an amateur enthusiast) ^^. To clarify i used comfy with a standard and different model than this project. BUT would be pretty interesting to see if the performance is normal with Comfy and photoMaker!!

from photomaker.

bmaltais avatar bmaltais commented on June 12, 2024

Yes, you can use either of those ComfyUU photomaker nodes. The install is not straightforward but it works for me.

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

Yes, you can use either of those ComfyUU photomaker nodes. The install is not straightforward but it works for me.

Oh damn thats super dope if it works as well as this project somehow.

Doesnt seem like they wrote how to install clearly in the projects. 🥇 😶‍🌫️ I will report back if this made a difference performance wise later.

EDIT Solved it: If others want to install: Use a git clone into the custom nodes folder within ComfyUI. Then a requirements pip install. 👍 You then have to create the workflow yourself by adding nodes. Unfortunately theres some errors upon trying to run it.

from photomaker.

Paper99 avatar Paper99 commented on June 12, 2024

@akk-123 @chille9 An important note: For those GPUs that do not support bfloat16, please change this line to torch_dtype = torch.float16, the speed will be greatly improved (1min/img (before) vs. 14s/img (after) on V100). The minimum GPU memory requirement for PhotoMaker is 15G.

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

@akk-123 @chille9 change this line to torch_dtype = torch.float16

Thank you I thought the RTX series would support stuff like that, great that you clarified this. I can confirm that its indeed faster.
2 generated images at 1024px and 34 steps = 37minutes.

from photomaker.

4n70w4 avatar 4n70w4 commented on June 12, 2024

just for information. rtx 2070: 800 sec for 1 output image with 20 steps. with torch_dtype = torch.float16.

UPD: after upgrade rtx 2070 8gb to rtx 4080 super 16gb speed increased from 800+ seconds to 5 seconds.

from photomaker.

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.