Sign In

Sort LyCORIS from LORA script

174
1.3k
11
Updated: Feb 14, 2025
toolscriptsorting
Type
Other
Stats
730
0
Reviews
Published
Jul 11, 2023
Base Model
Other
Hash
AutoV2
FE009E849D
default creator card background decoration
First Birthday Badge
M9
m99

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