sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Report an error when unsing Uniformer Segmentation

Open tsound97 opened this issue 1 year ago • 4 comments

#Python version: 3.10 MMCV version: 1.7.1 System: windows 10 Error content: File "A:\ControlNet-main\annotator\uniformer\mmcv\utils\ext_loader.py", line 15, in load_ext assert hasattr(ext, fun), f'{fun} miss in module {name}' AssertionError: top_pool_forward miss in module _ext

tsound97 avatar Feb 15 '23 15:02 tsound97

Same error here

OedoSoldier avatar Feb 15 '23 16:02 OedoSoldier

According to what I tried, this error seems to occur when other extensions that use “mmcv” are installed. In my environment, the extensions of “ddetailer” were using “mmcv-full” and caused an error. It might work if you move the extensions that use “mmcv” outside the folder. You may need to recreate the venv folder depending on the situation, but…

realjpn avatar Feb 16 '23 09:02 realjpn

According to what I tried, this error seems to occur when other extensions that use “mmcv” are installed. In my environment, the extensions of “ddetailer” were using “mmcv-full” and caused an error. It might work if you move the extensions that use “mmcv” outside the folder. You may need to recreate the venv folder depending on the situation, but…

I will try that, thx dude!

tsound97 avatar Feb 16 '23 13:02 tsound97

According to what I tried, this error seems to occur when other extensions that use “mmcv” are installed. In my environment, the extensions of “ddetailer” were using “mmcv-full” and caused an error. It might work if you move the extensions that use “mmcv” outside the folder. You may need to recreate the venv folder depending on the situation, but…

Genius! I've uninstalled mmcv-full and openmim and it's now working!

OedoSoldier avatar Feb 16 '23 16:02 OedoSoldier

https://github.com/lllyasviel/ControlNet/issues/61#issuecomment-1434005703

tsound97 avatar Feb 17 '23 04:02 tsound97

pip uninstall mmcv-full -y remove folder \stable-diffusion-webui\extensions\ddetailer (bye)

ok!

soysanti avatar Feb 19 '23 15:02 soysanti

Created further issues when following these fixes unfortunately,

File "E:\Automatic1111\stable-diffusion-webui\modules\scripts.py", line 386, in process script.process(p, *script_args) File "E:\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 573, in process detected_map = preprocessor(input_image, res=pres, thr_a=pthr_a, thr_b=pthr_b) File "E:\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\processor.py", line 155, in uniformer from annotator.uniformer import apply_uniformer File "E:\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\uniformer_init_.py", line 1, in from annotator.uniformer.mmseg.apis import init_segmentor, inference_segmentor, show_result_pyplot File "E:\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\uniformer\mmseg\apis_init_.py", line 1, in from .inference import inference_segmentor, init_segmentor, show_result_pyplot File "E:\Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\uniformer\mmseg\apis\inference.py", line 2, in import annotator.uniformer.mmcv as mmcv ModuleNotFoundError: No module named 'annotator.uniformer.mmcv'

ameen-roayan avatar Feb 24 '23 18:02 ameen-roayan