-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug]: ValueError: 'OUT' is not a valid ResizeMode #598
Comments
Controlnet does not take effect because the enum conversion raises an error. Is the value also |
Just for context, the value Maybe a webui or web browser extension is messing with the code? The default value for sd-webui-controlnet/scripts/controlnet.py Lines 177 to 179 in 274dd5d
|
Indeed, after further inspection, it was found that the value was not coming from the ControlNet extension. In another run, a 'Lerp' value was given. Recursive search showed that it was caused by the extension https://github.com/hnmr293/sd-webui-llul. |
I faced a similar problem (controlnet doesnt work in img2img mode when used with other extension) and don't think this is exceptional case due to incompatibility with one extention!
There may be problems with other extentions/scripts in the future if something is not fixed in the ControlNet extention. Can you reinforce the code to prevent other extensions from unintentionally modifying controlnet's values/other kind of interference? |
Does the error still occur after uninstalling controlnet? IIUC, from what I can see, this bug has nothing to do with controlnet extension. The error occurs in the hires-fix extension, and only after the hires-fix extension was installed. Can you verify that controlnet extension is the culprit? |
I've verified more than once. It appears that multiple extensions may be able to affect the ControlNet values with by accident. It possible more extensions may appear that will try to use same IDs/labels, any possibility to make 'the collision' less common (maybe by using more unique ID/names or any other way to avoid unintentional values changes)? For purpose of testing regarding the issue, here is google colab with mentioned extensions that cause problem: |
Thanks for the detailed report. I'll add |
So one bug I encountered while testing this was this:
I A/B tested all combinations of the 3 extensions 2 times, (llul, hires and cn) and I can say with certainty that this one is not caused by controlnet. This bug is caused by the custom-hires-fix-for-automatic1111 extension, and the issue should be resolved there. I'm still in the process of reproducing the error you are encountering above, more info to come soon. |
For some reason the collab started returning this when I tried to start it up:
Maybe you should try to pick a different collab? If you have control over the code, let me know when it is fixed so I can test. Not sure but at a glance it seems to be doing a lot of unnecessary work. Locally the only error I encountered (when installing only llul, custom-hires and cn) was the error above caused by custom hires. |
@ljleb, you probably haven't encountered the specifics of colab, especially lately? For future: since google is constantly changing things and sometimes colabs can behave strangely, you just have to try running it again and again, or restart runtime. custom_hires_fix + controlnet: and here, despite the fact that the error does not mention ControlNet, it not working in webui (like with custom_hires_fix): |
I tested the second error you mention, it is not caused by controlnet. You can test by only enabling llul and custom-hires extensions. To do this, you can comment out the code that pulls the controlnet repo at the beginning of I will try to run the collab again for the first error to find what is going on in this setup. I do not encounter the first error when trying to reproduce the error locally. Edit: I can confirm that the collab is starting up now. Not sure exactly why it repeatedly broke with jsonapi missing earlier yesterday. |
Is there an existing issue for this?
What happened?
In img2img controlnet extension does not seem to work correctly: controlnet doesn't effect the image.
Steps to reproduce the problem
What should have happened?
The image changes depending on results from preprocessor and model.
Commit where the problem happens
webui: AUTOMATIC1111/stable-diffusion-webui@a9fed7c
controlnet: 274dd5d
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
Console logs
Additional information
running in google colab
The text was updated successfully, but these errors were encountered: