nonnonstop / sd-webui-3d-open-pose-editor

3d openpose editor for stable diffusion and controlnet
MIT License
785 stars 95 forks source link

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

Open jQQj opened 3 months ago

jQQj commented 3 months ago

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):

gohan2091 commented 2 months ago

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 commented 2 months ago

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

好像就可以了。。。

谢谢:jQQj

valaxy commented 2 months ago

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

好像就可以了。。。

谢谢:jQQj

cool, it works