lllyasviel / lllyasviel/ControlNet
Can't setup locally, Getting ModuleNotFoundError - annotator.util
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 3k
- PR merge metrics
- No merged PRs in 30d
Description
## Description
i have cloned the repo locally and also cloned models from `https://huggingface.co/lllyasviel/ControlNet`
After replacing the repo dirs with the hugging face ones,
i ran
```sh
conda env remove --name control
conda activate control
```
## Logs
getting this error after running
```sh
python3 gradio_canny2image.py
```
_OR_
```sh
python gradio_hough2image.py
```
_RESULT:_
```sh
logging improved.
Traceback (most recent call last):
File "gradio_canny2image.py", line 12, in
from annotator.util import resize_image, HWC3
ModuleNotFoundError: No module named 'annotator.util'
```
## System
- OS: macOS 12.6
- CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
- Memory: 411.77 MB / 32.00 GB
- Python3: 3.8.5
- GPU: AMD Radeon Pro 5500M 8 GB
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 by inspecting gradio_canny2image.py and gradio_hough2image.py at the annotator.util import, then check whether the cloned repository and ControlNet model directories contain the expected annotator package. Reproduce the commands with the documented Python and conda setup; done means both scripts get past the missing-module error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface, python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100