-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
64 lines (61 loc) · 1.44 KB
/
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
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
#!/bin/bash
# PARAMETERS
ROOTPATH="."
HS="256"
ES="32"
GS="512 512 512 512"
FS="512 1024 29"
EP=30
BS=64
SEED=2111192
PATIANCE=8
DECAYRATE=0.9
LR=1e-4
GC=60.0
OPTIM="Adam"
PDROP="0.0 0.2 0.0"
VALIDATEPER=20000
EXPDATE=`date "+day_%m_%d_%y-time_%H_%M_%S"`
BESTMODEL=${ROOTPATH}/saved_models/bestmodel_${EXPDATE}.jld2
LOGFILE=${ROOTPATH}/saved_models/logfile_${EXPDATE}.out
DATAPATH="data/processed"
SCENEPATH="data/CLEVR_v1.0/scenes"
mkdir -p ${ROOTPATH}/saved_models
# To print the command
echo ${ROOTPATH}/src/relnet.jl --logfile ${LOGFILE}\
--bestmodel ${BESTMODEL}\
--datapath ${DATAPATH}\
--scenepath ${SCENEPATH}\
--epoch ${EP}\
--hidden ${HS}\
--embed ${ES}\
--batchsize ${BS}\
--seed ${SEED}\
--pdrop ${PDROP}\
--gclip ${GC}\
--lr ${LR}\
--optim ${OPTIM}\
--patiance ${PATIANCE}\
--decayrate ${DECAYRATE}\
--gs ${GS}\
--fs ${FS}\
--validate_per ${VALIDATEPER}
# START EXPERIMENT
julia ${ROOTPATH}/src/relnet.jl --logfile ${LOGFILE}\
--bestmodel ${BESTMODEL}\
--datapath ${DATAPATH}\
--scenepath ${SCENEPATH}\
--epoch ${EP}\
--hidden ${HS}\
--embed ${ES}\
--batchsize ${BS}\
--seed ${SEED}\
--pdrop ${PDROP}\
--gclip ${GC}\
--lr ${LR}\
--optim ${OPTIM}\
--patiance ${PATIANCE}\
--decayrate ${DECAYRATE}\
--gs ${GS}\
--fs ${FS}\
--validate_per ${VALIDATEPER}