import os input_path = "P:/path/to/sd-scripts/blora_for_kohya/input" input_list = os.listdir(input_path) print(f"Loras from input folder: {input_list}") for file in input_list: no_safetensors = file.replace('.safetensors', '') print(no_safetensors) os.system(f"python blora_slicer.py --loras ./input/{file} --traits out012345_in12356_te1_te2 --debug --output_path=./output/{no_safetensors}_out0to5_in12356_te1te2.safetensors") # you can add more presets to be run by adding new lines like this, they have to exist in blora_traits.json # just modify the target --traits + output name of your choice #os.system(f"python blora_slicer.py --loras ./input/{file} --traits some_other_preset --debug --output_path=./output/{no_safetensors}_some_other_preset.safetensors")