Skip to content
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

[Fix] for "Send to ControlNet" and "Control Model number" works perfectly with ControlNet v1.1.455 #115

Open
jQQj opened this issue Jul 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jQQj
Copy link

jQQj commented Jul 29, 2024

I wanted to inform you that I have found and fixed a compatibility bug between sd-webui-3d-open-pose-editor and the latest version of ControlNet v1.1.455. In the current version of sd-webui-controlnet, the variable opts.control_net_max_models_num has been renamed to opts.control_net_unit_count, which caused an error in openpose_editor.py on line 70.

I created a fork and made the necessary fixes. My fork version has been tested and is fully compatible with ControlNet v1.1.455. This solution works correctly without any hacks or temporary workarounds.

You can find my fork at the following link: https://github.com/jQQj/sd-webui-3d-open-pose-editor

Installation Instructions:

  1. Remove the old version of "sd-webui-3d-open-pose-editor".
  2. Open the "Extension" tab of the WebUI.
  3. Open the "Install from URL" tab.
  4. Copy "https://github.com/jQQj/sd-webui-3d-open-pose-editor.git" into the "URL for extension's git repository" field.
  5. Click the "Install" button.
  6. Open the "Installed" tab and click the "Apply and restart UI" button.

Screenshots
изображение
изображение

Environment (please complete the following information):

  • OS: Windows 10x64
  • Browser: firefox 128.0.3
  • A1111 WebUI Version: v1.10.0
  • sd-webui-3d-open-pose-editor : v0.1.23
  • ControlNet Version: v1.1.455

Thank you for your attention!

@gohan2091
Copy link

It's not working for me. I am using the latest version of A1111 with the latest controlnet. I generate a pose, and I have 4 pictures (see screenshot):
Screenshot 2024-08-01 203007

When I click "Send to txt2img" only the Control Model 0 transfers over. 1, 2 and 3 do not. Also with clicking the "Send to img2img", nothing transfers over. If you go to the Control Net 0 on img2img, and tick the "Upload independent control image" then the image transfers over to Control Net 0 but again, 1, 2 and 3 do not transfer.

@hwebuse
Copy link

hwebuse commented Aug 2, 2024

我试了一下,更改这个文件
sd-webui-3d-open-pose-editor/scripts/openpose_editor.py
第70行为: cn_max: int = opts.control_net_unit_count

好像就可以了。。。

谢谢:jQQj

@valaxy
Copy link

valaxy commented Aug 26, 2024

我试了一下,更改这个文件 sd-webui-3d-open-pose-editor/scripts/openpose_editor.py 第70行为: cn_max: int = opts.control_net_unit_count

好像就可以了。。。

谢谢:jQQj

cool, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants