ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

5x Slowdown for ControlNet/OpenPose

Open AZmisc opened this issue 2 years ago • 2 comments

Hi! The updates from a few days ago had another side effect. The OpenPose ControlNet is now ~5x times slower.

I attached a file with prompts. There are three successive renders of progressively larger canvas where performance per iteration used to be ~4s/8s/20s. The whole image would take ~280s to render. Without control net the render took ~2s/8s/20s and took about ~230s to render.

Now the ControlNet takes ~40s/22s/90s and takes about ~1200s to render (sometimes as long as ~2000-2500s). But the renders without ContolNet take the same time as before the updates. So, there was something that hit the ControlNet part hard.

Performance summary

CN-ON summary

Prompt

a_12236_

Thanks!

AZmisc avatar Jul 03 '23 15:07 AZmisc

I suspect that it might have switched to shared memory due to a shortage of VRAM. Is the same issue occurring in the latest version?

ltdrdata avatar Jul 04 '23 07:07 ltdrdata

I suspect that it might have switched to shared memory due to a shortage of VRAM. Is the same issue occurring in the latest version?

Sorry, I don't know how to test this hypothesis.

AZmisc avatar Jul 04 '23 11:07 AZmisc