Bug: can no longer start with previously trained model (Repo id must be in the form 'repo_name' or 'namespace/repo_name)
See original GitHub issueDescribe the bug
when adding a previously trained model as MODEL_DIR there is now an error from huggingface that it is not a repo
MODEL_NAME=/content/drive/MyDrive/jmp909/sd/stable-diffusion-weights/jmp909_2600
Repo id must be in the form 'repo_name' or 'namespace/repo_name'
Reproduction
change MODEL_NAME to point to a previous model not the runwayml repo
Logs
Traceback (most recent call last):
File "train_dreambooth.py", line 750, in <module>
main()
File "train_dreambooth.py", line 456, in main
tokenizer = CLIPTokenizer.from_pretrained(args.pretrained_model_name_or_path, subfolder="tokenizer", use_auth_token=True)
File "/usr/local/lib/python3.7/dist-packages/transformers/tokenization_utils_base.py", line 1748, in from_pretrained
_commit_hash=commit_hash,
File "/usr/local/lib/python3.7/dist-packages/transformers/utils/hub.py", line 420, in cached_file
local_files_only=local_files_only,
File "/usr/local/lib/python3.7/dist-packages/huggingface_hub/file_download.py", line 1022, in hf_hub_download
cache_dir, repo_folder_name(repo_id=repo_id, repo_type=repo_type)
File "/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py", line 92, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py", line 137, in validate_repo_id
"Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':
'/content/drive/MyDrive/jmp909/sd/stable-diffusion-weights/jmp909_2600'. Use `repo_type` argument if needed.
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/accelerate_cli.py", line 43, in main
args.func(args)
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 837, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 354, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
System Info
(latest training colab as of 2022-10-24)
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
1055132 – "yum repo-pkgs <repoid> list" doesn't work
Another bug: The output from "yum repo-pkgs <repoid> list" is incomplete. Here's an example: # yum list bash Loaded plugins: refresh-packagekit ...
Read more >Updating the CUDA Linux GPG Repository Key
NVIDIA is updating and rotating the signing keys used by apt, dnf/yum, and zypper package managers beginning April 27, 2022.
Read more >reposync(1) - Linux manual page - man7.org
reposync is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages. OPTIONS top. -h, --help...
Read more >Getting Started with Repositories - Hugging Face
Getting Started with Repositories. This beginner-friendly guide will help you get the basic skills you need to create and manage your repository on...
Read more >dnf Documentation - Read the Docs
any of the packages cannot be installed, the operation fails. ... --repoid=<repoid> Enable just specific repositories by an id or a glob.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@InB4DevOps latest version. the
repo_typelooks like is coming from the hugging face library rather than Shivam’s code?(just to note, it would be useful to check the path before training cell is started earlier when the setup cell is run though… the error was slightly misleading)
thanks