File size: 717 Bytes
0691933 478c16c 0691933 478c16c 0691933 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/bin/bash
models=("e_sd15_ip2p" "e_sd15_shuffle" "p_sd15_canny" "f1p_sd15_depth" "p_sd15_inpaint"
"p_sd15_lineart" "p_sd15_mlsd" "p_sd15_normalbae" "p_sd15_openpose" "p_sd15_scribble"
"p_sd15_seg" "p_sd15_softedge" "p_sd15s2_lineart_anime" "f1e_sd15_tile")
for model in "${models[@]}"
do
file_base_name=../ControlNet-v1-1/control_v11$model
from_file=$file_base_name.pth
yaml_file=$file_base_name.yaml
to_folder=control_v11$model
echo $model
echo $from_file
echo $to_folder
python ../../diffusers/scripts/convert_original_controlnet_to_diffusers.py \
--original_config_file $yaml_file \
--checkpoint_path $from_file --to_safetensors --half --dump_path $to_folder
done
|