How can i upload a VAE directly to Colab?

#30
by Maoi - opened

I want to download the VAE via Colab (i use automatic 1111), any idea? I have to modify any command there?

deleted

Hello @Maoi ,

Not sure most provide a simple solution to downloading a VAE. You can obviously download it and upload to drive yourself, but that can take awhile.

The alternative would be to adjust the code and use wget or gdown to download it directly via the Colab.

hi @Maoi ,
on colab you can download all content by running this cell

!git lfs install
!git clone https://huggingface.co/WarriorMama777/OrangeMixs

or a specific file

!pip install huggingface-hub
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="WarriorMama777/OrangeMixs", filename="VAEs/orangemix.vae.pt", cache_dir="./")

this is how i did this

model_name = "model_name" #put your model name here {type:"string"}
model_link = "model_link" #put your model link here {type:"string"}
!wget {model_link} -O models/Stable-diffusion/{model_name}

Sign up or log in to comment