-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
flux controlnet report an error #4339
Comments
You are using image to image and controlnet together which is not the way it is intended, create an empty latent image instead to connect it into the samples and you should be good to go. |
Of course you can do Img2Img and ControlNet in FLUX. If you resize your input image to 1520 x 1520 however then you get 1520 / 8 = 190. 190 is divisible by 2. Then it works |
I found an alternate solution, simply pad the tensor if its it's not divisible by 2 without a remainder. Update ComfyUI\comfy\ldm\flux\controlnet.py Replace the "forward" function with this. I didn't test this on all resolution but I believe it should work. It allowed me to do 1920x1080 resolution.
|
Expected Behavior
img2img
Actual Behavior
error
Steps to Reproduce
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: