CivArchive
    Resize Loras Batch Script - v2.0
    Preview 3317491

    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.

    Description

    second version implementing three templates suggested by firemanbrakeneck

    FAQ

    Comments (3)

    1212449Nov 1, 2023
    CivitAI

    this has absolutely nothing to do with your offer here, but it reminded me of something about xl-loras:

    does anyone know what happened to that guy that collected those xl-loras and made one big file out of them? didn't read anything of it the last few weeks.

    thanks in advance.

    PixVizNov 2, 2023· 1 reaction
    CivitAI

    On a related note:
    Is it possible to resize a lora made for SDXL down so that it works with SD 1.5 (with 1.5 models and other 1.5 loras) ?

    eurotaku
    Author
    Nov 2, 2023· 1 reaction

    sadly not, got nothing to do with the size. different architecture :(

    Other
    Other

    Details

    Downloads
    108
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/1/2023
    Updated
    5/13/2026
    Deleted
    -

    Files

    resizeLorasBatch_v20.zip

    Mirrors

    CivitAI (1 mirrors)

    Available On (1 platform)

    Same model published on other platforms. May have additional downloads or version variants.