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

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

Open
jangrewe opened this issue Sep 14, 2023 · 24 comments
Labels
bug Something isn't working

Comments

@jangrewe
Copy link

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

  • OS: Windows 11
  • Browser: Firefox
  • A1111 WebUI Version: 1.6.0
  • Extension Version: f2d5aac (Sat Apr 15 13:21:06 2023)
  • ControlNet Version: e67e0177 (Mon Sep 11 07:56:10 2023)
@jangrewe jangrewe added the bug Something isn't working label Sep 14, 2023
@AlfonGIT
Copy link

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

@jangrewe
Copy link
Author

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

@AlfonGIT
Copy link

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
Copy link

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
Copy link

Same problem here

@Abishai2007
Copy link

This is not working for me either :(

@tritant
Copy link

tritant commented Oct 5, 2023

Same problem here, no solution found?

@gohan2091
Copy link

Same here....

@ksx064
Copy link

ksx064 commented Oct 16, 2023

Same here

@grandfromages
Copy link

Same here...

@grandfromages
Copy link

grandfromages commented Oct 23, 2023

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!

palentir added a commit to palentir/sd-webui-3d-open-pose-editor that referenced this issue Oct 23, 2023
I haven't tested this, but I googled an alternative to the command you used. hopefully it works? A guy called grandfromages provided a fix for the issue "sending to controlnet" by changing this to "cn_max = 2", because for some reason its 0 and means we can't send to controlnet. But I tried to use a less hacky workaround, but hopefully you can use it to work out the proper command needed?
nonnonstop#96
@yaan48
Copy link

yaan48 commented Oct 25, 2023

It works!! Thank you

@gohan2091
Copy link

gohan2091 commented Nov 26, 2023

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
Copy link

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
Copy link

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
Copy link

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
Copy link

StarCuto commented Jan 7, 2024

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

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

并显示它的工作: 3dOpenPose_Fix_1

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

2024/1/7 验证可行

@denissyd
Copy link

denissyd commented Feb 8, 2024

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

2024/1/7 验证可行

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

@StarCuto
Copy link

StarCuto commented Feb 8, 2024 via email

@AX30000
Copy link

AX30000 commented Feb 9, 2024

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

2024/1/7 验证便携式

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

解决问题了吗.教教我

@denissyd
Copy link

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

2024/1/7 验证便携式

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

解决问题了吗.教教我

我也没解决。。。。

@Medivh0121
Copy link

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
Copy link

newsoy commented Mar 22, 2024

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

@StarCuto
Copy link

StarCuto commented Mar 22, 2024 via email

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