Traceback (most recent call last):
File "D:\Tests\SkyReels-A2\SkyReels-A2\app.py", line 110, in <module>
infer = ModelInference()
File "D:\Tests\SkyReels-A2\SkyReels-A2\app.py", line 39, in __init__
self._image_encoder = CLIPVisionModel.from_pretrained(self._pipeline_path, subfolder="image_encoder", torch_dtype=torch.float32)
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\modeling_utils.py", line 279, in _wrapper
return func(*args, **kwargs)
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\modeling_utils.py", line 4078, in from_pretrained
resolved_config_file = cached_file(
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\utils\hub.py", line 266, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\utils\hub.py", line 470, in cached_files
resolved_files = [
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\utils\hub.py", line 471, in <listcomp>
_get_cache_file_to_return(path_or_repo_id, filename, cache_dir, revision) for filename in full_filenames
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\transformers\utils\hub.py", line 134, in _get_cache_file_to_return
resolved_file = try_to_load_from_cache(path_or_repo_id, full_filename, cache_dir=cache_dir, revision=revision)
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "D:\Tests\SkyReels-A2\SkyReels-A2\venv\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': '/path/to/model'. Use `repo_type` argument if needed.
Then starting app.py gives the same error.
Where/how do I need to download the models so app.py finds them correctly at startup?
The error I get when starting app.py shows
So I run
huggingface-cli download Skywork/SkyReels-A2 --local-dir image_encoder --exclude "*.git*" "README.md" "docs"in the same directory as app.py to download the models into the image_encoder directory.
Then starting app.py gives the same error.
Where/how do I need to download the models so app.py finds them correctly at startup?