-
Notifications
You must be signed in to change notification settings - Fork 82
/
run_market_train.sh
executable file
·30 lines (26 loc) · 1015 Bytes
/
run_market_train.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
source ~/.bashrc
if [ ! -d ./data/Market_train_data ]; then
cd data
wget homes.esat.kuleuven.be/~liqianma/NIPS17_PG2/data/Market_train_data.zip
unzip Market_train_data.zip
mv data4tf_GAN_attr_pose_onlyPosPair_128x64PoseRCV_Mask_sparse_Attr_partBbox7_maskR4R6 Market_train_data
rm -f Market_train_data.zip
cd -
fi
#######################################################################
################################ Training #############################
gpu=0
D_arch='DCGAN'
model_dir=path_to_directory_of_model
## Make sure dataset name appear in --dataset (i.e. 'Market' or 'DF')
python main.py --dataset=Market_train_data \
--img_H=128 --img_W=64 \
--batch_size=16 --max_step=60000 \
--d_lr=0.00002 --g_lr=0.00002 \
--lr_update_step=50000 \
--is_train=True \
--model=1 \
--D_arch=${D_arch} \
--gpu=${gpu} \
--z_num=64 \
--model_dir=${model_dir} \