-
Notifications
You must be signed in to change notification settings - Fork 25
/
eval_cor.sh
executable file
·34 lines (23 loc) · 1.37 KB
/
eval_cor.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
28
29
30
31
32
33
34
###
# @Description:
# @Autor: Jiachen Sun
# @Date: 2022-02-16 22:23:16
# @LastEditors: Jiachen Sun
# @LastEditTime: 2022-02-23 17:20:27
###
if [ ! -d "output" ]; then
mkdir "output"
fi
for model in 'gdanet'; do #'pointnet' 'pct' 'rscnn' 'pointnet2' 'simpleview' 'dgcnn' 'pointMLP' 'curvenet'; do
for cor in 'uniform' 'gaussian' 'background' 'impulse' 'upsampling' 'distortion_rbf' 'distortion_rbf_inv' 'density' 'density_inc' 'shear' 'rotation' 'cutout' 'distortion' 'occlusion' 'lidar'; do
for sev in 1 2 3 4 5; do
# for aug in 'rsmix' 'cutmix_r' 'cutmix_k' 'mixup' 'pgd'; do
# CUDA_VISIBLE_DEVICES=0 python main.py --entry test --model-path runs/${aug}_${model}_run_1/model_best_test.pth --exp-config configs/corruption/${model}.yaml --severity ${sev} --corruption ${cor} --output ./output/${model}_${aug}_${cor}_${sev}.txt
# done
# for adapt in 'tent' 'bn'; do
# CUDA_VISIBLE_DEVICES=0 python main.py --entry test --model-path cor_exp/dgcnn_${model}_run_1/model_best_test.pth --exp-config configs/${adapt}/${model}.yaml --severity ${sev} --corruption ${cor} --output ./output/${model}_${adapt}_${cor}_${sev}.txt
# done
CUDA_VISIBLE_DEVICES=0 python main.py --entry test --model-path runs/dgcnn_${model}_run_1/model_best_test.pth --exp-config configs/corruption/${model}.yaml --severity ${sev} --corruption ${cor} --output ./output/${model}_none_${cor}_${sev}.txt
done
done
done