Skip to content

Commit

Permalink
normalize inputs for much better accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZotti authored Aug 30, 2016
1 parent e98bd08 commit 2d53ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train_conv_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def max_pool_2x2(x):
train_writer = tf.train.SummaryWriter(train_dir,sess.graph)
validation_writer = tf.train.SummaryWriter(validation_dir,sess.graph)


validation_predictors[:200] = validation_predictors[:200] / 255

sess.run(tf.initialize_all_variables())
batch_index = 0
Expand All @@ -154,6 +154,7 @@ def max_pool_2x2(x):
data_index = batch_index * 50
predictors = train_predictors[data_index:data_index+50]
target = train_targets[data_index:data_index+50]
predictors = predictors / 255

if i%425 == 0:

Expand Down

0 comments on commit 2d53ccd

Please sign in to comment.