Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

Colab: added the ability to download models from civitai

Open uptotec opened this issue 1 year ago • 6 comments

its hard and time consuming to download models and putting them in the right directory in google colab so I added the ability to download checkpoints and LoRAs from civitai using model URL. the code uses civitai api to get model info and downloads it in the right directory. please let me know if this change is acceptable and if any changes is required.

uptotec avatar Jan 05 '24 03:01 uptotec

Civitai now requires token auth for automated downloads, see https://github.com/lllyasviel/Fooocus/issues/2041#issuecomment-1911319750

mashb1t avatar Jan 28 '24 12:01 mashb1t

It works with me without issue. Please give it a try and tell me if any problem arise.

uptotec avatar Feb 04 '24 21:02 uptotec

made the required changes and added a check to make sure the downloaded model is SDXL.

uptotec avatar Feb 05 '24 11:02 uptotec

this code is for colab and colab has the refiner disabled by default.

uptotec avatar Feb 05 '24 12:02 uptotec

@uptotec please check out https://github.com/lllyasviel/Fooocus/pull/2423 and feel free to provide your feedback / learnings

mashb1t avatar Mar 03 '24 21:03 mashb1t