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

3d openpose editor for stable diffusion and controlnet
MIT License
775 stars 94 forks source link

[Bug] "Send to ControlNet" not working, "Control Model number" always empty #96

Open jangrewe opened 10 months ago

jangrewe commented 10 months ago

Describe the bug After generating the pose images, i can not select any ControlNet number to send to. The dropdown menus all have the value "-".

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Send to ControNet'
  2. Click on dropdown for "Control Model number" to select an enabled ControlNet to send to

Expected behavior The "Control Model number" shows the numbers of the enabled ControlNets

Environment (please complete the following information):

AlfonGIT commented 10 months ago

hello jangrewe, did you have any luck solving this issue? i have the very same problem 8(

jangrewe commented 10 months ago

Unfortunately not, i guess @nonnonstop will need to have a look at this 😔

AlfonGIT commented 10 months ago

sad... only warnings i get are from GradioDeprecation when loading controlnet, maybe there's a mismatch of versions of some libs or something... i'll try to debug it myself when i have some time. thanks for the response, appreciated!

palentir commented 10 months ago

I have the same issue, I wonder if any of the startup console messages are related, because I have newest php version and I had to fix some stuff. My startup params are: --skip-python-version-check --xformers --lowvram Errors and warnings (May be unrelated):

C:\AI\Software\stable-diffusion-webui\venv\Lib\site-packages\numpy.libs\libopenblas64__v0.3.21-gcc_10_3_0.dll warnings.warn("loaded more than 1 DLL from .libs:" Error running process: C:\AI\Software\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "C:\AI\Software\stable-diffusion-webui\modules\scripts.py", line 619, in process script.process(p, script_args) File "C:\AI\Software\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 977, in process self.controlnet_hack(p) File "C:\AI\Software\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 966, in controlnet_hack self.controlnet_main_entry(p) File "C:\AI\Software\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 696, in controlnet_main_entry input_image, image_from_a1111 = Script.choose_input_image(p, unit, idx) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\AI\Software\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 608, in choose_input_image raise ValueError('controlnet is enabled but no input image is given') ValueError: controlnet is enabled but no input image is given ** File "C:\AI\Software\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install requirements for DeepFaceLive - onnxruntime-gpu==1.12.1. Command: "C:\AI\Software\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install onnxruntime-gpu==1.12.1 --prefer-binary Error code: 1 stderr: ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.12.1 (from versions: 1.15.0, 1.15.1, 1.16.0) *** ERROR: No matching distribution found for onnxruntime-gpu==1.12.1

VigibotDev commented 10 months ago

Same problem here

Abishai2007 commented 10 months ago

This is not working for me either :(

tritant commented 9 months ago

Same problem here, no solution found?

gohan2091 commented 9 months ago

Same here....

lkw0711 commented 9 months ago

Same here

grandfromages commented 9 months ago

Same here...

grandfromages commented 9 months ago

I figured out how to fix this, and on my version - which I checked is up to date - it works exactly as expected. (probably not the cleanest fix, but... don't care, lol.)

Edit this file, as shown: (you don't need to comment stuff out, I just did in case it didn't work so I could revert it easily.)

3dOpenPose_Fix

And showing it working:

3dOpenPose_Fix_1

Now, I'm off to play with 3d Openpose now that it works!

yaan48 commented 9 months ago

It works!! Thank you

gohan2091 commented 8 months ago

I cannot for the life of me get this working. The extension is totally broken for me. I have applied your file edit and now I have two 3D Open Pose menus in my interface and then when I generate the maps for the pose, I have a duplicate window below the first! Not only that but the "Control Model Number" dropdown box still doesn't show the control net number (the drop box only has the option of "-". The duplicate window below shows the 4 Control Net numbers but of course the upload image previews are all empty. Here is a screenshot to show:

Screenshot 2023-11-26 234939

I am using SD.Next btw.

GWNetwork commented 8 months ago

the 4 Control Net numbers

Looks like you've installed it twice? I would untick the plugin, then delete it from the extensions folder. Then make sure they are both gone after restarting. Then install it again, check if it works (as the dev may have already patched it), If not try his fix again.

gohan2091 commented 8 months ago

the 4 Control Net numbers

Looks like you've installed it twice? I would untick the plugin, then delete it from the extensions folder. Then make sure they are both gone after restarting. Then install it again, check if it works (as the dev may have already patched it), If not try his fix again.

I only get it twice when I edit the .py file. When I restore the .py to original, I only have one copy. I have uninstalled the extension and reinstalled it but it has not helped. Also it's worth mentioning that This SD.Next installation is a new one (I re-did it 2 weeks ago) but prior to that with my old installation, I still had the issue.

dsynclabsllc commented 7 months ago

Using automatic11111, making the changes proposed above (regarding the mx_cnt var) did indeed fix it for me. This extension is a life saver so far. No more warped characters! I love it!

StarCuto commented 6 months ago

我想出了如何解决这个问题,在我的版本上 - 我检查了它是最新的 - 它完全按预期工作。 (可能不是最干净的修复,但是......不在乎,哈哈。

编辑此文件,如下所示: (你不需要注释掉内容,我只是做了以防万一它不起作用,这样我就可以很容易地恢复它。 3dOpenPose_Fix

并显示它的工作: 3dOpenPose_Fix_1

现在,我可以开始玩 3d Openpose,因为它可以工作了!

2024/1/7 验证可行

denissyd commented 5 months ago

我想出了如何解决这个问题,在我的版本上 - 我检查了它是最新的 - 它完全按预期工作。 (可能不是最干净的修复,但是......不在乎,哈哈。 编辑此文件,如下所示: (你不需要注释掉内容,我只是做了以防万一它不起作用,这样我就可以很容易地恢复它。 3dOpenPose_Fix 并显示它的工作: 3dOpenPose_Fix_1 现在,我可以开始玩 3d Openpose,因为它可以工作了!

2024/1/7 验证可行

你贴出来的图片消失了,能再发一下嘛?看你简介是东大的,我也是东大的,谢谢

StarCuto commented 5 months ago

您的邮件我已收到。      --交通学院  刘星坤

AX30000 commented 5 months ago

我想如何解决这个问题,在我的版本上 - 我检查了它是最新的 - 它完全按预期工作。(可能不是最干净的修复,但是……无关,哈哈。编辑此文件,如下所示 : (你不需要注释掉内容,我只是做了万一它失效了,这样我就可以很容易地恢复它。 并显示它的工作: 现在,我可以开始玩 3d Openpose,因为它可以工作了!3dOpenPose_Fix3dOpenPose_Fix_1

2024/1/7 验证便携式

你贴出来的图片消失了,能再发一下嘛?看你简介是东大的,我也是东大的,谢谢

解决问题了吗.教教我

denissyd commented 5 months ago

我想如何解决这个问题,在我的版本上 - 我检查了它是最新的 - 它完全按预期工作。(可能不是最干净的修复,但是……无关,哈哈。编辑此文件,如下所示 : (你不需要注释掉内容,我只是做了万一它失效了,这样我就可以很容易地恢复它。 并显示它的工作: 现在,我可以开始玩 3d Openpose,因为它可以工作了!3dOpenPose_Fix3dOpenPose_Fix_1

2024/1/7 验证便携式

你贴出来的图片消失了,能再发一下嘛?看你简介是东大的,我也是东大的,谢谢

解决问题了吗.教教我

我也没解决。。。。

Medivh0121 commented 5 months ago

I figured out how to fix this, and on my version - which I checked is up to date - it works exactly as expected. (probably not the cleanest fix, but... don't care, lol.)

Edit this file, as shown: (you don't need to comment stuff out, I just did in case it didn't work so I could revert it easily.) 3dOpenPose_Fix

And showing it working: 3dOpenPose_Fix_1

Now, I'm off to play with 3d Openpose now that it works!

Thanks! That works for me!

newsoy commented 4 months ago

你贴出来的图片消失了,能再发一下嘛?谢谢

StarCuto commented 4 months ago

您的邮件我已收到。      --交通学院  刘星坤

acer5504 commented 1 month ago

我无论如何也弄不出来。这个扩展对我来说完全坏了。我已经应用了你的文件编辑,现在我的界面上有两个 3D Open Pose 菜单,然后当我为姿势生成地图时,第一个窗口下面有一个重复的窗口!不仅如此,“控制模型编号”下拉框仍然没有显示控制网络编号(下拉框只有“-”选项)。下面的重复窗口显示了 4 个控制网络编号,但当然上传图像预览都是空的。下面是一张截图:

截图 2023-11-26 234939

顺便说一下,我正在使用 SD.Next。

me too

StarCuto commented 1 month ago

您的邮件我已收到。      --交通学院  刘星坤

andoumusashi commented 1 week ago

I figured out how to fix this, and on my version - which I checked is up to date - it works exactly as expected. (probably not the cleanest fix, but... don't care, lol.)

Edit this file, as shown: (you don't need to comment stuff out, I just did in case it didn't work so I could revert it easily.) 3dOpenPose_Fix

And showing it working: 3dOpenPose_Fix_1

Now, I'm off to play with 3d Openpose now that it works!

it's working! You are a genius!

StarCuto commented 1 week ago

您的邮件我已收到。      --交通学院  刘星坤