Repo id must be in the form 'repo_name' or 'namespace/repo_name'
I try to download the model and the repo_id is '/stabilityai/stable-video-diffusion-img2vid-xt'.
Or, using '/stabilityai/stable-video-diffusion-img2vid-xt' is also wrong.
Anyone can help me?
Traceback (most recent call last):
File "C:\Users\zzoon\anaconda3\envs\SVFR\lib\site-packages\diffusers\configuration_utils.py", line 379, in load_config
config_file = hf_hub_download(
File "C:\Users\zzoon\anaconda3\envs\SVFR\lib\site-packages\huggingface_hub\utils_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "C:\Users\zzoon\anaconda3\envs\SVFR\lib\site-packages\huggingface_hub\utils_validators.py", line 154, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': './stabilityai/stable-video-diffusion-img2vid-xt'. Use repo_type
argument if needed.
It looks like you might have accidentally included a ./ at the beginning of the repo ID, making it invalid.
The correct format should be:
repo_id = "stabilityai/stable-video-diffusion-img2vid-xt"
Try running:
from diffusers import DiffusionPipeline
repo_id = "stabilityai/stable-video-diffusion-img2vid-xt"
pipeline = DiffusionPipeline.from_pretrained(repo_id)
If you continue to get errors, make sure:
You are logged into Hugging Face:
from huggingface_hub import login
login(token="your_huggingface_token")
Your Hugging Face token has the correct permissions.
Your diffusers and huggingface_hub libraries are up to date:
pip install --upgrade diffusers huggingface_hub
If you're behind a firewall or VPN, try disabling it temporarily.
If the issue persists, try downloading the model manually from Hugging Face and loading it from a local path.