You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkrupo
changed the title
Fixed filepaths for model files in configs/promtps/animation.yaml
Fixed filepaths for model files in configs/prompts/animation.yamlDec 4, 2023
followed the instruction as you told, but still get error messages as:
Traceback (most recent call last):
File "C:\Users\xiohu.conda\envs\python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\xiohu.conda\envs\python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\magicanimate\demo\gradio_animate.py", line 19, in
animator = MagicAnimate()
File "D:\magicanimate\demo\animate.py", line 58, in init
tokenizer = CLIPTokenizer.from_pretrained(config.pretrained_model_path, subfolder="tokenizer")
File "C:\Users\xiohu.conda\envs\python310\lib\site-packages\transformers\tokenization_utils_base.py", line 1813, in from_pretrained
resolved_vocab_files[file_id] = cached_file(
File "C:\Users\xiohu.conda\envs\python310\lib\site-packages\transformers\utils\hub.py", line 428, in cached_file
resolved_file = hf_hub_download(
File "C:\Users\xiohu.conda\envs\python310\lib\site-packages\huggingface_hub\utils_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "C:\Users\xiohu.conda\envs\python310\lib\site-packages\huggingface_hub\utils_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'magicanimate/pretrained_models/stable-diffusion-v1-5'. Use repo_type argument if needed.
I'm not sure the fix was necessary for everyone as the pr never got merged and they still have the original version in their repo.
It was necessary for me on W11/WSL.
Did you encounter the same error before changing the filepaths? What system?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
The
animation.yamldid not have the correct paths to the model files, hence one encountered an error message about an incorrectrepo_id.Solution:
Prepend "magicanimate/" to the paths to reflect the correct folder structure.