-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
27 lines (22 loc) · 1.31 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# export CUDA_VISIBLE_DEVICES=$1
# ================================================================================
# Test WFEN on Helen and CelebA test dataset
# ================================================================================
python test.py --gpus 1 --model wfen --name wfen \
--load_size 128 --dataset_name single --dataroot /path/to/datasets/test_datasets/Helen50/LR_x8_up/ \
--pretrain_model_path ./check_points/WFEN.pth \
--save_as_dir results_helen/wfen
python test.py --gpus 1 --model wfen --name wfen \
--load_size 128 --dataset_name single --dataroot /path/to/datasets/test_datasets/CelebA1000/LR_x8_up/ \
--pretrain_model_path ./check_points/WFEN.pth \
--save_as_dir results_celeba/wfen
# ----------------- calculate PSNR/SSIM scores ----------------------------------
python psnr_ssim.py
# -------------------------------------------------------------------------------
# ----------------- calculate LPIPS/VIF scores ----------------------------------
python vif_lpips/lpips_2dirs.py --use_gpu
python vif_lpips/VIF.py
# -------------------------------------------------------------------------------
# ----------------- calculate Parmas/FLOPS scores -------------------------------
python calc_flops.py
# -------------------------------------------------------------------------------