#!/bin/bash models=("e_sd15_ip2p" "e_sd15_shuffle" "p_sd15_canny" "p_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" "u_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