-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlNet Causes Black Images #3516
Comments
Doing more testing. Even after removing ControlNet from previous workflows, still get black images. if I delete loaders (checkpoint, lora, etc), prompts, and sampler, install them again I get images. However still black images if I add controlnet. |
What's your GPU, checkpoint you are using, controlnet, etc..? |
Sorry, normal I lead off with specs: okkkkkk....I just spent the last two hours running through various combinations of configs. I would get black images sometimes depending on how many steps I used. Fewer steps, less black images. But what finally dawn on me was the default workflow worked with any amount of steps EVERY TIME. The sampler and scheduler was the key. This time narrowed it down for sure. Karras! I tested euler, euler_a, dpmpp_sde, dpmpp_2m, dpmpp_2m_sde with normal, exponential, and sgm_uniform schedulers. No black images, even with workflows prior to updates. ANDDDD with ControlNet. EVERY TIME I used Karras, black images. I say this every time...not sure if this is just a Mac issue or not. But the last two hours were not wasted. Update: |
Can you give me a simple workflow that returns a black image for you? |
Default workflow. Just changed the scheduler to karras. Included screen shot so you see what i see. |
If you run ComfyUI with |
Nope :( |
Sorry I meant Can you also try updating pytorch to see if it fixes the issue? |
Ok, the --force-upcast-attention did the trick. Tested with controlnet at 30 steps and all looks good. Updating pytorch was the first thing i tried lol. I just need to modify start script for Pinokio now and test it there. |
Modified start.json for Pinokio. All good. Thanks for the assist! |
ControlNet seems to be the culprit (at least for me) for black images. If I bypass or remove controlnet (apply or apply advance), images are generated. I saw the other thread about black images, but none addressed controlnet.
I just now updated Comfy and that's when the problems started. I saw an update for controlnet aux when i did update via manger. Thought that would solve the problem but it did not.
Manger says Comfy is up to date.
The text was updated successfully, but these errors were encountered: