
I often dump everything I download in the lora folder. Turns out the LyCORIS models are supposed to go in a different folder.
I wrote this python script to find all the LyCORIS that were placed in the wrong folder.
e.g.
> python.exe find_lyco.py D:\\stable-diffusion-webui\\models\\lora
----------------------------------
| Looking for .safetensors files |
----------------------------------
D:\stable-diffusion-webui\models\lora\a.safetensors
D:\stable-diffusion-webui\models\lora\subdir\b.safetensors
D:\stable-diffusion-webui\models\lora\c.safetensors
----------------------------------
| Found the following LORA files |
----------------------------------
D:\stable-diffusion-webui\models\lora\a.safetensors
D:\stable-diffusion-webui\models\lora\subdir\b.safetensors
-------------------------------------
| Found the following LyCORIS files |
-------------------------------------
D:\stable-diffusion-webui\models\lora\c.safetensors
描述:
-
Now always checks model as the metadata sometimes lies and says lora when the file is lycoris.
-
Added feature to have the script move LyCORIS models to a target directory. It also moves related preview and info files and maintains the directory structure. The script prompts for confirmation before moving any files.
Now always checks model as the metadata sometimes lies and says lora when the file is lycoris.
Added feature to have the script move LyCORIS models to a target directory. It also moves related preview and info files and maintains the directory structure. The script prompts for confirmation before moving any files.
训练词语:
名称: sortLycorisFromLORA_v30.zip
大小 (KB): 2
类型: Archive
Pickle 扫描结果: Success
Pickle 扫描信息: No Pickle imports
病毒扫描结果: Success
原文链接:https://1111down.com/924337.html,转载请注明出处