代码拉取完成,页面将自动刷新
#!/bin/bash
models=("gcdn")
sigmas=("25")
this_folder=`pwd`
for model in ${models[@]}; do
for sigma in ${sigmas[@]}; do
# check if it is already trained or we want to retrain
if [[ -f "$this_folder/log_dir/$model/$sigma/start_iter" ]]; then
start_iter=`cat "$this_folder/log_dir/$model/$sigma/start_iter"`
else
start_iter=1
fi
train_data_dir="$this_folder/Dataset/Gray/trainset/"
val_data_file="$this_folder/Dataset/Gray/validationset/val_patches48_sigma_25.mat"
test_data_file="$this_folder/Dataset/Gray/testset/Set12/08.png"
log_dir="$this_folder/log_dir/$model/$sigma/"
save_dir="$this_folder/Results/$model/$sigma/saved_models/"
CUDA_VISIBLE_DEVICES=0,1 python "Code/$model/main.py" --start_iter $start_iter --train_data_dir $train_data_dir --val_data_file $val_data_file --test_data_file $test_data_file --log_dir $log_dir --save_dir $save_dir
done
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。