-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_debug.sh
58 lines (49 loc) · 1.47 KB
/
run_debug.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
#!/bin/bash
DATASET=$1
METHOD=$2
NOTE=$3
TRMODE=$4
EVALMODE=$5
USE_RAND_LOADER=$6
SAMP_STRATEGY=$7
USE_TF=$8
FOLLOW_GT=$9
DA_STRATEGY=${10}
ROOTDIR="./test/${DATASET}/neuralese/${TRMODE}/${METHOD}/${NOTE}/${DA_STRATEGY}"
SUBDIR="/${EVALMODE}_us-rd_ld-${USE_RAND_LOADER}_${SAMP_STRATEGY}_${DATASET}_FG${FOLLOW_GT}"
CPTDIR="${ROOTDIR}/checkpoints/${SUBDIR}/"
RESULTDIR="${ROOTDIR}/results/${SUBDIR}/"
TBDIR="${ROOTDIR}/tensorboard_logs/${SUBDIR}/"
LOG="${ROOTDIR}/logs/${SUBDIR}.txt.`date +'%Y-%m-%d_%H-%M-%S'`.log"
mkdir -p "${ROOTDIR}/logs"
mkdir -p ${CPTDIR}
mkdir -p ${RESULTDIR}
mkdir -p ${TBDIR}
exec &> >(tee -a "$LOG")
echo Logging output to "$LOG"
CUDA_VISIBLE_DEVICES=0 python tasks/R2R-pano/main.py \
--exp_name ${NOTE} \
--batch_size 64 \
--img_fc_use_angle 1 \
--img_feat_input_dim 2176 \
--img_fc_dim 1024 \
--rnn_hidden_size 512 \
--train_iters_epoch 3 \
--eval_every_epochs 1 \
--use_ignore_index 1 \
--arch ${METHOD} \
--fix_action_ended 0 \
--use_end_token 0 \
--results_dir ${RESULTDIR} \
--checkpoint_dir ${CPTDIR} \
--log_dir ${TBDIR} \
--training_mode ${TRMODE} \
--evaluation_mode ${EVALMODE} \
--use_random_loader ${USE_RAND_LOADER} \
--sampling_strategy ${SAMP_STRATEGY} \
--dataset_name ${DATASET} \
--use_teacher_forcing ${USE_TF} \
--follow_gt_traj ${FOLLOW_GT} \
--speaker_DA_strategy ${DA_STRATEGY} \
echo 'Done'
# bash run_neuralese_agent.sh R2R cogrounding test_proxy_neuralese