lllyasviel/ControlNet

ImportError: cannot import name 'resize_image' from 'annotator.util'

1113david opened this issue · 0 comments

while i starting the web-ui, it shows:

*** Error loading script: processor.py
Traceback (most recent call last):
File "D:\AI\SD\sd-webui-aki-v4.10\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\SD\sd-webui-aki-v4.10\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\AI\SD\sd-webui-aki-v4.10\extensions\sd-webui-controlnet\scripts\processor.py", line 3, in
from annotator.util import resize_image, HWC3
ImportError: cannot import name 'resize_image' from 'annotator.util' (D:\AI\SD\sd-webui-aki-v4.10\extensions\sd-webui-controlnet\annotator\util.py)

how to solve this problem? thank you.