Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeGitM committed Feb 1, 2018
1 parent ed8e078 commit 78eb752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion train_eval_image_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def parse_args(check=True):
print('change wording dir to [{0}]'.format(w_d))
os.chdir(w_d)

step_per_epoch = 10000 // FLAGS.batch_size
step_per_epoch = 70000 // FLAGS.batch_size
for i in range(30):
steps = int(step_per_epoch * (i + 1))
# train 1 epoch
Expand Down
2 changes: 1 addition & 1 deletion train_image_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
'weight_decay', 0.00004, 'The weight decay on the model weights.')

tf.app.flags.DEFINE_string(
'optimizer', 'adam',
'optimizer', 'rmsprop',
'The name of the optimizer, one of "adadelta", "adagrad", "adam",'
'"ftrl", "momentum", "sgd" or "rmsprop".')

Expand Down

0 comments on commit 78eb752

Please sign in to comment.