Examples contain hardcoded model names
See original GitHub issueDescribe the bug
Commit c18941b introduced hardcoded model names in the example scripts. Most of them should probably be replaced by args.pretrained_model_name_or_path
.
Reproduction
Run one of the scripts with a model in a local folder and the commandline option --pretrained_model_name_or_path model_folder
.
The script nevertheless tries to download stable diffusion and either downloads an unnecessary model or fails because of a missing huggingface token.
System Info
Version: 4625f04
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
c# - How do I create a hardcoded List? - Stack Overflow
var tempList = new List<string> { "Name", "DOB", "Address" };. With the collection initializer syntax, you don't even need the explicit ...
Read more >Hard-coded string literals | IntelliJ IDEA Documentation
Learn about the features of IntelliJ IDEA that help you with localization of string literals in your source code.
Read more >Hard coding - Wikipedia
Hard coding (also hard-coding or hardcoding) is the software development practice of embedding data directly into the source code of a program or...
Read more >What are Hardcoded Passwords/Embedded Credentials? Our…
Password hardcoding refers to the practice of embedding plain text (non-encrypted) passwords and other secrets (SSH Keys, DevOps secrets, etc.)
Read more >2.14. Hard-Coding — Foundations of Python Programming
For example, in this following code, if you're asked in an exercise to create a variable zx and assign it the value of...
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 FreeTop 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
Top GitHub Comments
Will try to allocate time for this
Here we go: https://github.com/huggingface/diffusers/pull/1778 -> won’t have time to do the same changes for Flax though.