-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_VAE.sh
More file actions
22 lines (19 loc) · 886 Bytes
/
Copy pathtest_VAE.sh
File metadata and controls
22 lines (19 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PYTHON_PATH="python /mnt/petrelfs/liuyidi/Code/dreamUHD"
EXP_PATH="/mnt/petrelfs/liuyidi/Code/dreamUHD/experiments"
EXP_NAMES=("RA_VAE_3_512")
# EXP_NAMES = adoenc_restormer
for EXP_NAME in "${EXP_NAMES[@]}"; do
COMMON_PATH="$EXP_PATH/$EXP_NAME"
# CONFIG_PATH=$(find "$COMMON_PATH" -type f -name "*.yml")
CONFIG_PATH=$(find "$COMMON_PATH" -maxdepth 1 -type f -name "*.yml")
echo "Found YAML files:"
echo "$CONFIG_PATH"
WEIGHT_PATH="$COMMON_PATH/models/net_g_latest.pth"
# WEIGHT_PATH='/mnt/petrelfs/liuyidi/Code/dreamUHD/experiments/IRtry3-lr8/models/net_g_12000.pth'
OUTPUT_PATH="$COMMON_PATH/result1"
$PYTHON_PATH/inference_uhdformer.py \
--config $CONFIG_PATH \
--input /mnt/petrelfs/liuyidi/data/UHD_deblur/test/input300 \
--weight $WEIGHT_PATH \
--output /mnt/petrelfs/liuyidi/Code/dreamUHD/output/latent_vis/LL/deg_rec \
done