Skip to content

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

@1113david

Description

@1113david

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions