-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrun_VLNBERT.bash
executable file
·58 lines (52 loc) · 1.51 KB
/
run_VLNBERT.bash
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
# # TRAINING
# flag="--exp_name cont-cwp-vlnbert-ori
# --run-type train
# --exp-config run_VLNBERT.yaml
# SIMULATOR_GPU_IDS [0]
# TORCH_GPU_ID 0
# TORCH_GPU_IDS [0]
# IL.batch_size 16
# IL.lr 1e-5
# IL.epochs 100
# IL.schedule_ratio 0.50
# IL.decay_time 20
# "
# python run.py $flag
# # TRAINING (Single node multiple GPUs)
# flag="--exp_name cont-cwp-vlnbert-ori
# --run-type train
# --exp-config run_VLNBERT.yaml
# GPU_NUMBERS 2
# SIMULATOR_GPU_IDS [0,1]
# TORCH_GPU_IDS [0,1]
# IL.batch_size 16
# IL.lr 1e-5
# IL.epochs 100
# IL.schedule_ratio 0.50
# IL.decay_time 20
# "
# python -m torch.distributed.launch --nproc_per_node=2 --master_port=$RANDOM run.py $flag
# # EVALUATION
flag="--exp_name cont-cwp-vlnbert-ori
--run-type eval
--exp-config run_VLNBERT.yaml
SIMULATOR_GPU_IDS [0]
TORCH_GPU_ID 0
TORCH_GPU_IDS [0]
EVAL.SPLIT val_unseen
EVAL_CKPT_PATH_DIR logs/checkpoints/cont-cwp-vlnbert-ori/vlnbert_ckpt_best.pth
"
python run.py $flag
# # INFERENCE
# flag="--exp_name cont-cwp-vlnbert-ori
# --run-type inference
# --exp-config run_VLNBERT.yaml
# SIMULATOR_GPU_IDS [0]
# TORCH_GPU_ID 0
# TORCH_GPU_IDS [0]
# EVAL.SAVE_RESULTS False
# INFERENCE.PREDICTIONS_FILE test
# INFERENCE.SPLIT test
# INFERENCE.CKPT_PATH logs/checkpoints/cont-cwp-vlnbert-ori/vlnbert_ckpt_best.pth
# "
# python run.py $flag