Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: pre-download all models and LoRAs #3310

Open
mashb1t opened this issue Jul 18, 2024 · 4 comments
Open

[Feature Request]: pre-download all models and LoRAs #3310

mashb1t opened this issue Jul 18, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@mashb1t
Copy link
Collaborator

mashb1t commented Jul 18, 2024

Great update! i was wondering is it possible somehow to pre-download all required models and possible additional repos beforehand? now it will download each feature only during usage, like inpaint models while using inpainting or upscalers. it would be extremely useful if i could preload everything for example on machine with good internet and low specs and move all this glory to the machine where i will be running fooocus. something like --preload-all-features would be a life saver.

Originally posted by @toki-wartooth in #3293 (comment)

@mashb1t mashb1t added the enhancement New feature or request label Jul 18, 2024
@toki-wartooth
Copy link

toki-wartooth commented Jul 19, 2024

made very simple script that trys to download all required models.
https://gist.github.com/toki-wartooth/600a656e3c825fd00657aba8f933b65e

it will probably fail if there is many requests to huggingface but if restarted will try to continue to download.

@mashb1t
Copy link
Collaborator Author

mashb1t commented Jul 19, 2024

@toki-wartooth i've edited your comment and fixed the URL. Noticed that Juggernaut, the default model, is not added. Is this by intention?
Same for SAM, vit_b is default, vit_h is loaded in your script.

@toki-wartooth
Copy link

@mashb1t For some reason i missed Juggernaut, adding now. About SAM i found only this files - sam_vit_b_01ec64.pth sam_vit_l_0b3195.pth sam_vit_h_4b8939.pth , they are added. Cant find more sam links.

@gerroon
Copy link

gerroon commented Aug 20, 2024

Thanks for the script. Which folder do I run this from?

made very simple script that trys to download all required models. https://gist.github.com/toki-wartooth/600a656e3c825fd00657aba8f933b65e

it will probably fail if there is many requests to huggingface but if restarted will try to continue to download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants