-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflags.py
51 lines (28 loc) · 1.21 KB
/
flags.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
51
# -*- coding: utf-8 -*-
"""
@author: wi-ith
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
tf.app.flags.DEFINE_string('ckpt_save_path', "./ckpt/imagenet/",'')
tf.app.flags.DEFINE_string('pretrained_ckpt_path', "",'')
tf.app.flags.DEFINE_string('mode', "train",'')
tf.app.flags.DEFINE_string('tfrecords_dir', "",'')
tf.app.flags.DEFINE_integer('image_size', 224,'')
tf.app.flags.DEFINE_integer('val_image_size', 256,'')
tf.app.flags.DEFINE_integer('num_train', 1200000,'')
tf.app.flags.DEFINE_integer('max_steps', 10000000,'')
tf.app.flags.DEFINE_integer('num_readers', 4,'')
tf.app.flags.DEFINE_integer('num_preprocess_threads', 4,'')
tf.app.flags.DEFINE_integer('input_queue_memory_factor', 4,'')
tf.app.flags.DEFINE_integer('num_classes', 1000,"")
tf.app.flags.DEFINE_integer('batch_size', 224,"")
tf.app.flags.DEFINE_integer('num_gpus', 1,'')
tf.app.flags.DEFINE_float('learning_rate', 0.00001, '')
tf.app.flags.DEFINE_float('random_flip_prob', 0.5, '')
tf.app.flags.DEFINE_float('crop_prob', 0.00, '')
tf.app.flags.DEFINE_float('random_pad_prob', 0.0, '')
##validation
tf.app.flags.DEFINE_integer('num_validation', 50000,'')