-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
50 lines (47 loc) · 1.19 KB
/
config.py
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
#!/usr/bin/env python3
class config_train(object):
mode = 'beta'
n_layers = 5
num_epochs = 512
batch_size = 128
ema_decay = 0.999
learning_rate = 1e-3
n_classes = 10
conv_keep_prob = 0.7
dense_keep_prob = 0.7
im_x = 32
im_y = 32
lr_decay_rate = 5e-3
momentum = 0.9
weight_decay = 5e-4
steps_per_epoch = 50000//batch_size
# entropy-sgd specific
g0 = 8e-3
g1 = 8e-4
L = 20
class config_test(object):
mode = 'alpha'
n_layers = 5
num_epochs = 512
batch_size = 256
ema_decay = 0.999
learning_rate = 8e-4
n_classes = 10
conv_keep_prob = 1.0
dense_keep_prob = 1.0
im_x = 32
im_y = 32
lr_decay_rate = 2e-5
momentum = 0.9
weight_decay = 5e-4
steps_per_epoch = 50000//batch_size
# entropy-sgd specific
g0 = 1e-3
g1 = 1e-4
L = 20
class directories(object):
train = 'tfrecords/cifar10/cifar10_train.tfrecord' #'/var/local/tmp/jtan/cifar10/cifar10_train.tfrecord'
test = 'tfrecords/cifar10/cifar10_test.tfrecord' #'/var/local/tmp/jtan/cifar10/cifar10_test.tfrecord'
tensorboard = 'tensorboard'
checkpoints = 'checkpoints'
checkpoints_best = 'checkpoints/best'