question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples contain hardcoded model names

See original GitHub issue

Describe 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:open
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickvonplatencommented, Nov 16, 2022

Will try to allocate time for this

0reactions
patrickvonplatencommented, Dec 19, 2022

Here we go: https://github.com/huggingface/diffusers/pull/1778 -> won’t have time to do the same changes for Flax though.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found