Closed feitianpig closed 1 year ago
So what you are tryying to do is downloading models to your drive and loading them in the colab or downloading models into the colab directly? But it seems like you put all models in the incorrect folder so the webUI have no idea where they are and they're not loading.
Thank you for your reply,And thank you so much for sharing. sorry,my english is not good, sometimes I want to downloading models into the colab directly if the models more than 7G,sometimes downloading models into the drive,For example the lora. I don't know if I made that clear
々Ж.ぁ隆.& @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年4月22日(星期六) 晚上7:37 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [camenduru/stable-diffusion-webui-colab] [Bug]: model loading bug (Issue #375)
So what you are tryying to do is downloading models to your drive and loading them in the colab or downloading models into the colab directly?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
So I never did drive installation but I think to download something to your drive you would need to use it like this: !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M {YourLink} -d /content/drive/MyDrive/examplefolder1/examplefolder2 -o {name of your file} And one to the VM would be like: !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M {YourLink} -d /content/examplefolder1/examplefolder2 -o {name of your file}
I'm not familiar with unionfs and Drive integration in the colab but here's an example that i think would work:
So in this example lora1 would be downloaded to your drive and lora 2 would be downloaded to the VM drive, then it would fuse them in the test2 folder and then can be accessed at launch.
If you want the models in the test2 folder to be detected you would need to add the argument: "--lora-dir /content/test2" . This argument would indicate that the folder it should be looking for when looking for loras is test2
You can also use "--ckpt-dir YourModelFolder" to set a model folder it needs to use
For your controlnet models, you are forced to have them in your drive if you want to use them.
What happened?
run in colab run.ipynb I want to load these models, downloaded them, but did not load, still loaded the original models.
![image](https://user-images.githubusercontent.com/46107347/233540076-ba94eb8c-952c-4551-99c4-1ad8e53c1406.png)
and i want to load controlnet models in colab,Is it right to write like this?
![image](https://user-images.githubusercontent.com/46107347/233540332-b75776cb-0aa6-435b-910b-45222505aabe.png)
Colab cell output
Which colab and model(s) were you using when the error occurred?
colab https://huggingface.co/hanafuusen2001/ReVAnimated/resolve/main/revAnimated_v12.safetensors https://huggingface.co/Yukihime256/840000/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt
https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/coadapter-canny-sd15v1.pth https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/coadapter-depth-sd15v1.pth https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_hed-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_mlsd-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_normal-fp16.safetensors https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_openpose_sd14v1.pth https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/control_scribble-fp16.safetensors https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_seg_sd14v1.pth https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_color-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_keypose-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_sketch-fp16.safetensors https://huggingface.co/webui/ControlNet-modules-safetensors/resolve/main/t2iadapter_style-fp16.safetensors https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/t2iadapter_zoedepth_sd15v1.pth https://huggingface.co/TencentARC/T2I-Adapter/resolve/main/models/coadapter-fuser-sd15v1.pth
Which Public WebUI Colab URL were you using when the error occurred?
trycloudflare.com
If you used HiRes mode when the error occurred, please provide the Hires info
No response