AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
131.67k stars 25.27k forks source link

[Bug]: LORA's with .zip extension do not display in list with other LORA's #15621

Open Jeffpiatt2k4 opened 3 weeks ago

Jeffpiatt2k4 commented 3 weeks ago

Checklist

What happened?

Downloading a lora From Civital that is listed as a Diffusers ends up not showing in the list of other Loras. file has a zip extension instead of Safetensors.
https://civitai.com/models/154278/beauty-booties?modelVersionId=172866

Steps to reproduce the problem

1 download file from https://civitai.com/models/154278/beauty-booties?modelVersionId=172866 2 add to folder 3 file refuses to show up.

What should have happened?

file shoulkd show up as a diffuser lora.

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-04-24-23-04.json

Console logs

Civitai Helper: Getting model info by: https://civitai.com/models/343583/ankle-platform-heel-booties?modelVersionId=384614
Civitai Helper: Run get_model_id_from_url
Civitai Helper: Request model info from civitai: 343583
Civitai Helper: Get subfolder for: D:\sd.webui\webui\models\Lora
Civitai Helper: Got following info for downloading:
   model_name: 'Ankle platform heel booties'
   model_type: 'lora'
   version_strs: ['v1.0_384614']
   subfolders: ['/']
   previews: {'v1.0_384614': [{'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/622c7dc4-7e7c-43c0-a3dc-cb0f39e2fd6f/width: 450/7732957.jpeg', 'nsfwLevel': 1, 'width': 2048, 'height': 2048, 'hash': 'UUL;sqM{~qxuofof?bM{?bofxuxuD*ofRjof', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/f1d47cfe-84c2-4196-b84c-4211decfa65b/width: 450/7733772.jpeg', 'nsfwLevel': 1, 'width': 2048, 'height': 2048, 'hash': 'UAFr|woa00xv00?bxUW?4.f5~WtStmM{slbI', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/98dfe602-018e-4983-8d33-4963c5e1d371/width: 450/7733867.jpeg', 'nsfwLevel': 1, 'width': 2048, 'height': 2048, 'hash': 'UDI|zd00haiwQ7Md^kV?00x];lNG,0WUJ6R+', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/388c6339-b0a9-4c94-aaf8-517b5737e1c6/width: 450/7787633.jpeg', 'nsfwLevel': 2, 'width': 1024, 'height': 1024, 'hash': 'U9F~Kx?G_N_3: ]00NH-;OY4o4.-;Mw%M%M?H', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/30fdbb7b-2597-4bce-a8eb-0d66ccb41f09/width: 450/7787631.jpeg', 'nsfwLevel': 1, 'width': 1024, 'height': 1024, 'hash': 'UIHxZ?00EL0daI%3M|IntkV@t8%2_M4n%Mxb', 'type': 'image'}]}
Civitai Helper: Searching local model by version id
Civitai Helper: folder: D:\sd.webui\webui\models\Lora\
Civitai Helper: version_id: 384614
Civitai Helper: Start downloading from: https://civitai.com/api/download/models/384614
Civitai Helper: Target file path: D:\sd.webui\webui\models\Lora\booties-15-1.safetensors
Civitai Helper: File size: 18989168 (18.11M)
Civitai Helper: Downloading to temp file: D:\sd.webui\webui\models\Lora\booties-15-1.safetensors.downloading
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 18.1M/18.1M [00:02<00:00, 7.09MiB/s]
Civitai Helper: File Downloaded to: D:\sd.webui\webui\models\Lora\booties-15-1.safetensors
Civitai Helper: Request version info from civitai
Civitai Helper: Fetching Parent Model Information
Civitai Helper: Request model info from civitai: 343583
Civitai Helper: Write model civitai info to file: D:\sd.webui\webui\models\Lora\booties-15-1.civitai.info
Civitai Helper: Write model webui info to file: D:\sd.webui\webui\models\Lora\booties-15-1.json
Civitai Helper: Downloading model image.
Civitai Helper: Checking preview image for model: D:\sd.webui\webui\models\Lora\booties-15-1.safetensors
Civitai Helper: Start downloading from: https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/30fdbb7b-2597-4bce-a8eb-0d66ccb41f09/width=1024/7787631.jpeg
Civitai Helper: Target file path: D:\sd.webui\webui\models\Lora\booties-15-1.preview.png
Civitai Helper: File size: 128932 (125.91K)
Civitai Helper: Downloading to temp file: D:\sd.webui\webui\models\Lora\booties-15-1.preview.png.downloading
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 126k/126k [00:00<00:00, 2.53MiB/s]
Civitai Helper: File Downloaded to: D:\sd.webui\webui\models\Lora\booties-15-1.preview.png
Civitai Helper: Done. Downloaded to: D:\sd.webui\webui\models\Lora\booties-15-1.safetensors
Civitai Helper: Getting model info by: https://civitai.com/models/154278/beauty-booties?modelVersionId=172866
Civitai Helper: Run get_model_id_from_url
Civitai Helper: Request model info from civitai: 154278
Civitai Helper: Get subfolder for: D:\sd.webui\webui\models\Lora
Civitai Helper: Got following info for downloading:
   model_name: 'Beauty booties'
   model_type: 'lora'
   version_strs: ['v1.0_172866']
   subfolders: ['/']
   previews: {'v1.0_172866': [{'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/df644740-7350-41e0-81d7-ddf594979bbc/width: 450/2727161.jpeg', 'nsfwLevel': 1, 'width': 1024, 'height': 1536, 'hash': 'UKFYJi-o_2-o00E201%2~pNHxuofbGofWBt7', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6955d7d2-045d-4beb-a57b-0ba0c1ba92a0/width: 450/2727160.jpeg', 'nsfwLevel': 1, 'width': 1024, 'height': 1536, 'hash': 'UIGudtJW~pD*_3tSozIVs+oft7-pxaM{RjoL', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/af4983c2-f283-4ffb-b3f4-45276c4fc250/width: 450/2727158.jpeg', 'nsfwLevel': 1, 'width': 1024, 'height': 1536, 'hash': 'UMH1[4xa~VE14U4:4.xu~VM|oyRjt6xtt6xa', 'type': 'image'}, {'url': 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/3f51d3b3-ff88-4bad-a4e3-fa7f97e69d56/width: 450/2727159.jpeg', 'nsfwLevel': 2, 'width': 1024, 'height': 1536, 'hash': 'U9Ef1ps:000LIV0LIp-p00D*%M?HMw%2~qNG', 'type': 'image'}]}
Civitai Helper: Searching local model by version id
Civitai Helper: folder: D:\sd.webui\webui\models\Lora\
Civitai Helper: version_id: 172866
Civitai Helper: This model version already exists
Civitai Helper: Start open_model_url
Civitai Helper: Start parse js msg
Civitai Helper: End parse js msg
Civitai Helper: Load model info of /booties-15-1.safetensors 7a59d806f9bd5144de646ff623244d801473f7eb1a16947ddc294bc19e1dfb93 in lora
Civitai Helper: Send Url to js
Civitai Helper: Start build_msg
Civitai Helper: End build_msg
Civitai Helper: End open_model_url

Additional information

No response

missionfloyd commented 3 weeks ago

Unzip it. https://support.microsoft.com/en-us/windows/zip-and-unzip-files-f6dde0a7-0fec-8294-e1d3-703ed85e7ebc