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

auto download civitai model #3

Closed phineas-pta closed 1 year ago

phineas-pta commented 1 year ago

solve #2

phineas-pta commented 1 year ago

wait a sec, i want to figure out how to add progress bar

phineas-pta commented 1 year ago

it should be good now, 3 packages requests werkzeug tqdm already included in dependencies

oneir0mancer commented 1 year ago

I'm gonna clean up a little, and let diffusers handle cases when you put huggingface model_id or local path into url field.

phineas-pta commented 1 year ago

oh i just realize u can also reuse the function to download lora embedding vae from civitai, maybe an UI to download those things ?

oneir0mancer commented 1 year ago

Yes, it would make sense to move this function to some utility class to be able to use it from anywhere.

Not sure about UI for downloading. Embeddings - maybe, but you can just upload them manually and put into the folder. Vae - you will have to also run the script for conversion, I don't think Diffusers can handle just vae automatically.

As for loras, it makes sense to make UI for handling them as well, like calling pipe.fuse_lora(), pipe.unfuse_lora(), keeping track of scale, etc. And I'm honestly not sure if it's worth the effort, I find it easier to just do it through code.