-
Notifications
You must be signed in to change notification settings - Fork 53
/
train_mnist.sh
executable file
·30 lines (25 loc) · 974 Bytes
/
train_mnist.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
#!/usr/bin/env bash
NOISE="u-50" # feature/noise (z) distribution is a 50-D uniform
# BiGAN objective
OBJECTIVE="--encode_gen_weight 1 --encode_weight 0 --discrim_weight 0 --joint_discrim_weight 1"
# Latent Regressor (LR) objective
# OBJECTIVE="--encode_gen_weight 0 --encode_weight 1 --discrim_weight 1 --joint_discrim_weight 0"
# Joint Latent Regressor (Joint LR) objective
# OBJECTIVE="--encode_gen_weight 0.25 --encode_weight 1 --discrim_weight 1 --joint_discrim_weight 0"
python train_gan.py \
--encode --encode_normalize \
--dataset mnist --crop_size 28 \
--encode_net mnist_mlp \
--discrim_net mnist_mlp \
--gen_net deconvnet_mnist_mlp \
--megabatch_gb 0.5 \
--classifier --classifier_deploy \
--nolog_gain --nogain --nobias --no_decay_gain \
--deploy_iters 1000 \
--disp_samples 400 \
--disp_interval 25 \
--epochs 200 --decay_epochs 200 \
--optimizer adam \
--noise ${NOISE} \
${OBJECTIVE} \
$@