From 2d53ccdeee001018af3e05e11a67f318ef0ead16 Mon Sep 17 00:00:00 2001 From: Ryan Zotti Date: Tue, 30 Aug 2016 13:22:30 -0400 Subject: [PATCH] normalize inputs for much better accuracy --- train_conv_net.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/train_conv_net.py b/train_conv_net.py index 387b714f..7bf1662f 100644 --- a/train_conv_net.py +++ b/train_conv_net.py @@ -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 @@ -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: