lllyasviel / lllyasviel/ControlNet
ImportError: cannot import name 'resize_image' from 'annotator.util'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 3k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with extensions/sd-webui-controlnet/scripts/processor.py and the annotator/util.py file named in the traceback. Check why processor.py imports resize_image while annotator.util.py does not provide it, then reproduce the web-UI startup failure. Done means the script loads without this ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100