hollowstrawberry / kohya-colab

Accessible Google Colab notebooks for Stable Diffusion Lora training, based on the work of kohya-ss and Linaqruf
GNU General Public License v3.0
599 stars 86 forks source link

unable to download custom model #159

Closed elouannd closed 1 month ago

elouannd commented 4 months ago

when i try to train with a custom model im hitted with that log

🔄 Downloading model... /bin/bash: line 1: aria2c: command not found mv: cannot stat '/content/downloaded_model.safetensors': No such file or directory Renamed model to /content/downloaded_model.ckpt

💥 Error: The model you selected is invalid or corrupted, or couldn't be downloaded. You can use a civitai or huggingface link, or any direct download link.

heres the model link that i try to use

https://civitai.com/api/download/models/465903?type=Model&format=SafeTensor&size=pruned&fp=fp16

gwhitez commented 4 months ago

this would be the correct link: https://civitai.com/api/download/models/465903 after the “?” you must remove everything or it will give an error.

elouannd commented 4 months ago

getting the same error: `✅ Installation finished in 272 seconds.

🔄 Downloading model...

06/02 19:08:05 [ERROR] CUID#7 - Download aborted. URI=https://civitai.com/api/download/models/535328 Exception: [AbstractCommand.cc:351] errorCode=24 URI=https://civitai.com/api/download/models/535328 -> [HttpSkipResponseCommand.cc:215] errorCode=24 Authorization failed.

Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 114648|ERR | 0B/s|//content/downloaded_model.safetensors

Status Legend: (ERR):error occurred.

aria2 will resume download if the transfer is restarted. If there are any errors, then see the log file. See '-l' option in help/man page for details. mv: cannot stat '/content/downloaded_model.safetensors': No such file or directory Renamed model to /content/downloaded_model.ckpt

💥 Error: The model you selected is invalid or corrupted, or couldn't be downloaded. You can use a civitai or huggingface link, or any direct download link.`

hollowstrawberry commented 4 months ago

@elouannd the model failed to download because it can only be downloaded while logged in. This is configured by the model author.

hollowstrawberry commented 1 month ago

You can now use a model in your Google Drive to train in the XL colab, if everything else fails. The path must start like: /content/drive/MyDrive/