sd-webui-controlnet
sd-webui-controlnet copied to clipboard
Segmentation dont work give a lot of errors!?
hi
All the other models works well but the segmentation one give all this errors!:
Loading preprocessor: segmentation
Error running process: F:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "F:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\uniformer\inference.py", line 8, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\SD\stable-diffusion-webui\modules\scripts.py", line 386, in process
script.process(p, *script_args)
File "F:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 753, in process
detected_map, is_image = preprocessor(input_image, res=pres, thr_a=pthr_a, thr_b=pthr_b)
File "F:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\processor.py", line 155, in uniformer
from annotator.uniformer import apply_uniformer
File "F:\SD\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\uniformer_init_.py", line 4, in
Consider install mmsegmentation or uninstall mmcv/mmcv-full
Just added more fallbacks for mmpkg, update the extension may fix this.
This is the last updated version of the extension, how we can install the mmsegmentation that you refer in the extension?
Update the extension to the latest version, (check if already fixed), then use pip install mmdet mmsegmentation
to install the mmsegmentation. (don't forget to activate venv)
If segmentation still broken after installation, follow the instructions in https://github.com/Mikubill/sd-webui-controlnet/issues/485#issuecomment-1454739555