-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
35 lines (31 loc) · 832 Bytes
/
run.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
expname="rVE8_L0.3_seq12_lr1_e100_pcce_MBT_b1_a36_e400_1e-4_Ve_pal_clsrec_test_sep_att_adaMratio_cross_lanAtt"
savedir="results/"
GPU_ID="0"
echo ${expname}
echo ${GPU_ID}
path=${savedir}${expname}"/"
if [ ! -d ${path} ];then
mkdir ${path}
echo 'create filepath'
else
echo "filepath already exits"
fi
main_py="main.py"
opt_py="opts.py"
train_py="train.py"
validation_py="validation.py"
mae_py="MART.py"
cp ${opt_py} ${path}${opt_py}
cp ${train_py} ${path}${train_py}
cp ${validation_py} ${path}${validation_py}
cp ${main_py} ${path}${main_py}
cp ${mae_py} ${path}${mae_py}
resultdir=${path}'result.txt'
if [ ! -f ${resultdir} ];then
touch ${resultdir}
echo "create result.txt"
else
echo "result.txt already exits"
fi
export CUDA_VISIBLE_DEVICES=${GPU_ID}
nohup python ${main_py} --exp_name ${path} > ${resultdir}