-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheval-pipework.sh
executable file
·71 lines (65 loc) · 1.87 KB
/
eval-pipework.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# evaluate
# pospool_xyz_avg.yaml, pseudo_grid.yaml,
# pointwisemlp_dp_fi_df_fc1.yaml, adaptiveweight_dp_fc1_avg.yaml
# YAML_FILES=(
# "pospool_xyz_avg.yaml"
# "pospool_sin_cos_avg.yaml"
# "pseudo_grid.yaml"
# "pointwisemlp_dp_fi_df_fc1.yaml"
# "adaptiveweight_dp_fc1_avg.yaml"
# "pseudo_grid.yaml"
# "pseudo_grid.yaml"
# "pseudo_grid.yaml"
# "pospool_xyz_avg_se.yaml"
# )
# CKPT_PATHS=(
# "pospool_xyz_avg_1628865624/best.pth"
# "pospool_sin_cos_avg_1629299159/best.pth"
# "pseudo_grid_1628925913/best.pth"
# "pointwisemlp_dp_fi_df_fc1_1628956762/best.pth"
# "adaptiveweight_dp_fc1_avg_1629013720/best.pth"
# "pseudo_grid_1629643587_new_better/best.pth"
# "pseudo_grid_1629733517_new_using_CE/best.pth"
# "pseudo_grid_1629819505_wce/best.pth"
# "pospool_xyz_avg_se_1629871168/best.pth"
# )
YAML_FILES=(
"pseudo_grid_se3.yaml"
"pseudo_grid_se3.yaml"
)
CKPT_PATHS=(
# "pospool_xyz_avg_1628865624/best.pth"
"pseudo_grid_se3_1630594159_final_se3_ce"
"pseudo_grid_se3_1630641193_final_se3_wce"
)
USE_AVG_MAX_POOLS=(
'true'
'true'
)
NUM_GPUs=1
DATA_AUGS=("true" "false")
# DATA_AUGS=("true")
# smooth, ce, wce, sqrt_ce
LOSS='smooth'
# false use the default, true use my custom module
for data_aug in "${DATA_AUGS[@]}"; do
for index in ${!YAML_FILES[*]}; do
echo "Current yaml: ${YAML_FILES[$index]}"
echo "Current ckpt: ${CKPT_PATHS[$index]}"
# we use the GPU 1, CUDA_VISIBLE_DEVICES=1
time python -m torch.distributed.launch \
--master_port 1286 \
--nproc_per_node ${NUM_GPUs} \
--local_rank 1 \
function/evaluate_pipework_dist.py \
--load_path log/pipework/${CKPT_PATHS[$index]}/best.pth \
--cfg cfgs/pipework/${YAML_FILES[$index]} \
--data_aug ${data_aug} \
--loss ${LOSS} \
--use_avg_max_pool ${USE_AVG_MAX_POOLS[$index]}
# --val_freq 10
echo "Current yaml: ${YAML_FILES[$index]}"
echo "Current ckpt: ${CKPT_PATHS[$index]}"
done
done