-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Unexpected results with controlnet_reference community pipeline #3566
Comments
@reimager Thank you for sharing the details! ControlNet 1.1.194 |
add controlnet reference and bugfix Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Interesting. What version of sd-webui-controlnet do you have? Here are my very different results with your settings (same seed too) And with now with "ControlNet is more important": ControlNet v1.1.191 Things are definitely better with depth-only, but you still get the darkness with style_fidelity=1.0. The difference (for me) is more pronounced the more controlnets you have, which is why I used 2 in the original example. |
It seems that there is a version mismatch with the ControlNet model being used. While I am using ControlNet v1.1, You are utilizing an older generation model. https://huggingface.co/lllyasviel/ControlNet-v1-1/tree/main Based on your testing, it appears that the combination with the multi ControlNet works well with the previous-generation model. If you wish to achieve a similar result with diffusers, please try using the following code:
It seems there might also be issues about ControlNet v1.1 with the implementation on the web UI side. |
Great eye! I didn't notice that. Yes indeed - the old models don't have the same darkness issue with style_fidelity. Still pretty different than sd-webui-controlnet, but at least we now have the same results. |
I will continue to play with it also. For the most part I'm just trying to replicate the basic reference_only example from A1111. I also tried with new controlnet models just to be sure. I haven't been able to replicate these at all in diffusers with any settings. controlnet 1.1 models: |
I have found that when using the "controlnet is more important" option in the web UI, I indeed obtain excellent output. This seems to correspond to "guess_mode=True" in diffusers, but diffusers do not yield similar results as the web UI. I will continue to investigate this further. Specifically, when comparing the results of using "guess_mode=True" to the results obtained using the "controlnet is more important" option with only depth and soft edge, without using a reference, I noticed that the results from diffusers are clearly incorrect.
webui |
I found
|
Is the following result with 'guess_mode=True' a bug? Normal scheduler
UniPCMultistepScheduler
EulerAncestralDiscreteScheduler
|
Interesting. I was just using euler-a for the most 'apples to apples' comparison. I usually use unipc, so I'll try that again. Sorry I assumed style_fidelity = 1.0 was the equivalent of 'controlnet more important' based on this comment:
I will also try again with playing with guess_mode and controlnet_conditioning_scale instead |
Yes, you can see here. Reference Control and https://github.com/Mikubill/sd-webui-controlnet/blob/main/scripts/hook.py#L480-L481 Depth or other Control and https://github.com/Mikubill/sd-webui-controlnet/blob/main/scripts/hook.py#L410-L414 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Describe the bug
I can't seem to get expected results from the new controlnet_reference pipeline.
I get subpar results with style_fidelity=0.0, but with anything greater than 0.0 I get weird/collapsed images.
I believe there are a few issues and have tried many things, but to keep things simple below is an test case with sd-webui-controlnet 1.1.191 and diffusers controlnet_reference pipeline with as similar as I could get them.
The test case:
Input Images:
Reference Image: cat-striped-768x768.jpg
Depth Image: cat-orange-768x768.jpg
HED Image: cat-orange-768x768.jpg
A1111+sd-webui-controlnet Config:
ControlNet 1.1.191
Model: Realistic Vision 2.0 (result similar with runwayml 1.5 if that is preferred)
Prompt: a cat
Width: 768
Height: 768
Steps: 40
Scheduler: euler-a
Scale: 7.0
Seed: 0
ControlNet_0: reference_only Image: cat-striped-768x768.jpg Weight: 1.0
ControlNet_1: depth_midas Image: cat-orange-768x768.jpg Weight: 1.0
ControlNet_1: softedge_hed Image: cat-orange-768x768.jpg Weight: 1.0
A1111+sd-webui-controlnet results:
diffusers config is in the script below, but is the same config as used in A1111 or as close as I could get.
diffusers results:
@okotaku
Reproduction
Logs
No response
System Info
diffusers
version: 0.17.0.dev0The text was updated successfully, but these errors were encountered: