Closed OoAnikioO closed 2 months ago
Manually installing controlnet_aux
helps
I went back to 1.1.454
Culprit: https://github.com/Mikubill/sd-webui-controlnet/pull/3000
@sdbds PTAL
I went back to 1.1.454
It can't be reproduced locally, and it looks like a network reason for the dependency not being installed correctly.
1、Run the command using the console in the root directory.
(E:\StableDiffusion\Packages\Stable Diffusion WebUI)
venv/scripts/activate
2、pip list
(Check if controlnet_aux exists and version==0.0.9)
3、pip install controlnet_aux -i https://pypi.org/simple
Note that new dependencies are not available for some pip mirror sources, you can use pip search controlnet_aux
to query if the dependency exists for the current pip mirror source.
I had this error too this morning and upgrading controlnet_aux (was on version 0.0.3) via pip solved the issue :)
I went back to 1.1.454
It can't be reproduced locally, and it looks like a network reason for the dependency not being installed correctly.
1、Run the command using the console in the root directory. (E:\StableDiffusion\Packages\Stable Diffusion WebUI)
venv/scripts/activate
2、
pip list
(Check if controlnet_aux exists and version==0.0.9)3、
pip install controlnet_aux -i https://pypi.org/simple
Note that new dependencies are not available for some pip mirror sources, you can use
pip search controlnet_aux
to query if the dependency exists for the current pip mirror source.
You may want to specify >=0.0.9
on controlnet_aux dep.
I went back to 1.1.454
It can't be reproduced locally, and it looks like a network reason for the dependency not being installed correctly. 1、Run the command using the console in the root directory. (E:\StableDiffusion\Packages\Stable Diffusion WebUI)
venv/scripts/activate
2、pip list
(Check if controlnet_aux exists and version==0.0.9) 3、pip install controlnet_aux -i https://pypi.org/simple
Note that new dependencies are not available for some pip mirror sources, you can usepip search controlnet_aux
to query if the dependency exists for the current pip mirror source.You may want to specify
>=0.0.9
on controlnet_aux dep.
After my inspection, mobilesam was added in version 0.0.7, while some mirror sources are still at version 0.0.3. Perhaps adding >=0.0.9 could better pinpoint the error.
Is there an existing issue for this?
What happened?
when I run a1111 there is this error
** Error loading script: controlnet.py Traceback (most recent call last): File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\extensions\sd-webui-controlnet\scripts\controlnet.py", line 16, in
import scripts.preprocessor as preprocessor_init # noqa
File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\extensions\sd-webui-controlnet\scripts\preprocessor__init__.py", line 9, in
from .mobile_sam import
File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\extensions\sd-webui-controlnet\scripts\preprocessor\mobile_sam.py", line 1, in
from annotator.mobile_sam import SamDetector_Aux
File "E:\StableDiffusion\Packages\Stable Diffusion WebUI\extensions\sd-webui-controlnet\annotator\mobile_sam__init__.py", line 12, in
from controlnet_aux import SamDetector
ImportError: cannot import name 'SamDetector' from 'controlnet_aux' (E:\StableDiffusion\Packages\Stable Diffusion WebUI\venv\lib\site-packages\controlnet_aux__init__.py)
Steps to reproduce the problem
What should have happened?
controlnet should have launched normally
Commit where the problem happens
webui: at start controlnet: is not loaded
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of enabled extensions
Lora built-in None
ScuNET built-in None
SwinIR built-in None
canvas-zoom-and-pan built-in None
extra-options-section built-in None
hypertile built-in None
mobile built-in None
postprocessing-for-training built-in None
prompt-bracket-checker built-in None
soft-inpainting built-in None
StyleSelectorXL
a-person-mask-generator
adetailer
sd-webui-incantations
sd-webui-lama-cleaner-masked-content
sd-webui-mosaic-outpaint
stable-diffusion-webui-images-browser
ultimate-upscale-for-automatic1111
Console logs
Additional information
No response