ImportError: cannot import name 'load_file_from_url' from 'modules.modelloader'

#10
by ho1george - opened

Error running process: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "D:\AI\stable-diffusion-webui\modules\scripts.py", line 451, in process
script.process(p, *script_args)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 977, in process
self.controlnet_hack(p)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 966, in controlnet_hack
self.controlnet_main_entry(p)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 808, in controlnet_main_entry
detected_map, is_image = preprocessor(
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 75, in decorated_func
return cached_func(*args, **kwargs)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\utils.py", line 63, in cached_func
return func(*args, **kwargs)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\global_state.py", line 35, in unified_preprocessor
return preprocessor_modules[preprocessor_name](*args, **kwargs)
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\processor.py", line 350, in clip
from annotator.clipvision import ClipVisionDetector
File "D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\clipvision_init_.py", line 6, in
from modules.modelloader import load_file_from_url
ImportError: cannot import name 'load_file_from_url' from 'modules.modelloader' (D:\AI\stable-diffusion-webui\modules\modelloader.py)

Anyone know why I am getting this error when running any of the IP-Adapter models in ControlNet but the other ControlNet models are working?

Sign up or log in to comment