oneir0mancer / stable-diffusion-diffusers-colab-ui

Run stable diffusion in Colab with UI on IPython widgets (no gradio)
MIT License
19 stars 4 forks source link

support for civitai #2

Closed phineas-pta closed 1 year ago

phineas-pta commented 1 year ago

url from civitai dont work

in fact we need additional conversion to diffusers with these scripts

oneir0mancer commented 1 year ago

Diffusers can handle those models out of the box now, so there's really no need for the scripts. (Besides, they are already in colab at the bottom.)

You can't load models from civitai directly, but you can download them first with something like:

!wget https://civitai.com/api/download/models/XXXXXX --content-disposition

and then put path to the model into the UI and check ✅ A1111 format. The model will load just fine.

Same deal with loras really, just download and use

pipe.load_lora_weights("path/to/folder", weight_name="lora_filename.safetensors")
phineas-pta commented 1 year ago

oh i thought it's auto handled when i paste a link, i can send a PR if u want

oneir0mancer commented 1 year ago

Sure.