-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-pipework-ckpt.sh
executable file
·55 lines (50 loc) · 1.78 KB
/
run-pipework-ckpt.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
#!/bin/bash
# train
# NUM_POINTS=(15000 8192 4096)
NUM_POINTS=(10000)
# BATCH_SIZES=(16 32)
BATCH_SIZES=("Unknown")
NUM_GPUs=2
# pospool_xyz_avg.yaml, pseudo_grid.yaml,
# pointwisemlp_dp_fi_df_fc1.yaml, adaptiveweight_dp_fc1_avg.yaml
# YAML_FILES=("pospool_xyz_avg.yaml" "pseudo_grid.yaml" "pointwisemlp_dp_fi_df_fc1.yaml" "adaptiveweight_dp_fc1_avg.yaml")
# new SE-CLoserLook3D: pospool_xyz_avg_se,
YAML_FILES=("pseudo_grid_se3.yaml")
# ce, smooth, wce, sqrt_ce
# LOSSES=('smooth' 'wce' 'sqrt_ce')
LOSSES=('wce')
# false use the default, true use my custom module
use_avg_max_pool='true'
# log dir
log_dir="pseudo_grid_se3_1630641193_wce"
epoch=113
for num_points in "${NUM_POINTS[@]}"; do
for yaml_file in "${YAML_FILES[@]}"; do
for loss in "${LOSSES[@]}"; do
# echo "batch_size: ${batch_size}"
echo "num_points: ${num_points}"
echo "yaml file: ${yaml_file}"
echo "loss type: ${loss}"
echo "log dir: ${log_dir}"
time python -m torch.distributed.launch \
--master_port 12345678 \
--nproc_per_node ${NUM_GPUs} \
function/train_pipework_dist.py \
--cfg cfgs/pipework/${yaml_file} \
--num_points ${num_points} \
--val_freq 20 \
--save_freq 50 \
--loss ${loss} \
--use_avg_max_pool ${use_avg_max_pool} \
--load_path log/pipework/${log_dir}/best.pth \
--start_epoch ${epoch} \
--log_dir log/pipework/${log_dir}
# --batch_size ${batch_size} \
# echo "batch_size: ${batch_size}"
echo "num_points: ${num_points}"
echo "yaml file: ${yaml_file}"
echo "loss type: ${loss}"
echo "log dir: ${log_dir}"
done
done
done