-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Description
Describe the bug
It used to take about 90 seconds to generate a 768 x 512 image with diffusers 0.3.0. I checked out the main branch with 0.4.0dev0 today and the time has increased to about 600 seconds and that too for only 20 steps, as opposed to 75 steps initially. It feels as if this build uses both the CPU and GPU and relies more on the CPU but is mostly based on gut feel, the fact that the system UI is less responsive and the fact that the Activity Monitor only shows about 50% GPU usage at most times ...
So has something changed? Performance under Apple Silicon has gotten worse though it is much more stable. Do note that 512 x 512 image generation still seems to work at about the same speed but if you try 768 x 512 or 768 x 768, the image generation slows down a lot.
Update: I was wrong about 512 x 512 not being affected. That too has slowed down but not as much. A 512 x 512 image used to take around 55 second with 0.3.0 but now it takes around 80 seconds.
Reproduction
Just run an image generation with Stable Diffusion but for an image size other than 512 x 512. I've tested for both 768 x 768 and 768 x 512 and the results were really slow.
Logs
No response
System Info
diffusers 0.4.0dev0
Apple M1 Max
Monterey 12.6