-
Notifications
You must be signed in to change notification settings - Fork 186
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
New alwayson_scripts / controlnet units question #40
Comments
Hey there! As far as I understand it you have to create an instance of a controlnet_unit with all parameters you desire. In Addition when giving the instance to the im2img-function of the api-instance, you also have to enable use_deprecated_controlnet = True like this:
When disabling "use_deprecated_controlnet" the controlnet-features will not activate. But thats just my take on the code at the moment. |
is it possible to do it only with txt2img + a controlled image? Using only img2img is kinda limited... |
does not seem to work with alwayson scripts for me. what is sd_APIInterface? There is API reference in SD to use control net, but no reference for these alwayson scripts |
Hey, sorry for the confusion, I updated the codeexample. sd_APIinterface was a placeholder for webuiapi. |
Hey. Well i think it should be possible, looking at the code. Try to use api_instance.txt2img(...) instead api_instance.img2img(...) . |
Sry to bother you ! I want to add more controlnet units in my code which use SD api to finish img2img.How to do that? My code is use "alwayson_scripts" too. |
Can't get my head around this new implementation?
How should we use controlnet_units now?
The text was updated successfully, but these errors were encountered: