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.

Save clip models to local directory?

See original GitHub issue

It looks like the clip models are stored in a cache on the local machine which works for most use cases; however if we use google colab it basically redownloads them each time when you reopen the notebook.

Is there a way to save them in a folder and then load them from there? Not sure if this is possible in progrock?

I also have gpu’s that I load stuff into remotely; which means they have to download the clip models over and over. The dd finetune model is in a folder. Can the clip models be loaded from a folder, not cache?

"RN50": "https://openaipublic.azureedge.net/clip/models/afeb0e10f9e5a86da6080e35cf09123aca3b358a0c3e3b6c78a7b63bc04b6762/RN50.pt",

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lowfuelcommented, Jul 28, 2022

Should have it checked in later today, just testing a few other things first

1reaction
lowfuelcommented, Jul 23, 2022

Probably should file an issue with them asking to support the download_root option ala CLIP, instead of relying soley on a hardcoded directory.

By the way I am probably going to make changing the directory an option in PRD, rather than the default. While I understand your use case, I’ve already discovered it’s not ideal to have to have copies of all the CLIP models in every directory I have for PRD, rather than all of them sharing one cache directory. I usually have 2 or 3 PRD directories I use for various reasons (testing new stuff, testing the current version, testing old versions), plus several other tools I’ve written that also use CLIP, and now I’m having to copy the models folder to every one of them. I know others who use PRD as well as Disco and other versions of Disco on their local machine who appreciate the shared models, too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I want to copy my custom settings for Clip Studio Paint to ...
You can manually copy the settings and material data customized in Clip Studio Paint folder by folder to another computer. This page will...
Read more >
Save and load models | TensorFlow Core
There are different ways to save TensorFlow models depending on the API you're using. This guide uses tf.keras—a high-level API to build and ......
Read more >
How to Save and Load Models in PyTorch - Wandb
This article is a tutorial that covers how to correctly save and load your trained machine learning models in PyTorch using Weights &...
Read more >
Saving and Loading Models (Coding TensorFlow) - YouTube
Training models can take a very long time, and you definitely don't want to have to retrain everything over a single mishap.
Read more >
Where is the file that is saved by model.save() command
Model will saved in the current directory and the model will overwrite the oldone when saving the same model with same name.if you...
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