huggingface / huggingface/controlnet_aux

huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name'

Open
#3 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
497
Forks
104
PR merge metrics
No merged PRs in 30d

Description

when I load local ckpt
```python
from controlnet_aux import OpenposeDetector

model = OpenposeDetector.from_pretrained("./diffusers/ControlNet")
```

a error occurred :
```sh
Traceback (most recent call last):
File "test_controlnet.py", line 105, in
model = OpenposeDetector.from_pretrained("./diffusers/ControlNet")
File "/opt/conda/lib/python3.8/site-packages/controlnet_aux/open_pose/__init__.py", line 36, in from_pretrained
body_model_path = hf_hub_download(pretrained_model_or_path, filename)
File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
validate_repo_id(arg_value)
File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 166, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': './diffusers/ControlNet'. Use `repo_type` argument if needed.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.