Just a small batch file to resize .safetensors loras in bulk.
The resize logic and its dependencies are taken from https://github.com/bmaltais/kohya_ss, i only added the batch file calling the python script.
Usage:
2.01: i dun goofed. ok, here is v2.0 in bug-free working condition.
2.0: Extract the archive to a location of your choice and place all files you want to get resized in either the big, med or small subfolder. Execute res-lora.bat. The conversion uses the suggested settings of firemanbrakeneck: big = sv 0.94 / rank 32, med = 0.92 / 24, small = 0.9 / 16.
1.0: Extract the archive to a location of your choice and place all files you want to get resized in the res-lora folder. Execute res-lora.bat. The conversion uses the default settings of kohya_ss' lora resizer: fp16 precision, cuda, method sv_fro with a value of 0.9, except for the rank, where i use 64, and places the resized files in the resized subfolder. all these settings can be changed in the batch call, together with the targeted file extension (in case you got loras in another format).
Known Issues:
Not all loras can be converted, my best guess is that newer types are not supported, yet.
if it cannot find your python.exe make sure its path was added to the PATH system variable of windows correctly.