File size: 940 Bytes
9b6ab2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cd ~/sd/kohya-sd-scripts
# ./venv/bin/pip install --upgrade pip
# ./venv/bin/pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
# ./venv/bin/pip install --upgrade xformers

# ./venv/bin/python networks/extract_lora_from_models.py -h
./venv/bin/python networks/extract_lora_from_models.py \
--model_org ~/sd/ComfyUI/models/checkpoints/v1-5-pruned-emaonly.safetensors \
--model_tuned ~/sd/ComfyUI/models/checkpoints/spin-diffusion-v3-sd15.safetensors \
--dim 256 \
--save_precision fp16 \
--save_to ~/sd/ComfyUI/models/loras/spin-diffusion-v3-256.ckpt


./venv/bin/python networks/extract_lora_from_models.py \
--model_org ~/sd/ComfyUI/models/checkpoints/v1-5-pruned-emaonly.safetensors \
--model_tuned ~/sd/ComfyUI/models/checkpoints/spin-diffusion-v3-sd15.safetensors \
--dim 128 \
--save_precision fp16 \
--save_to ~/sd/ComfyUI/models/loras/spin-diffusion-v3-128.ckpt