Skip to content

Commit

Permalink
ascii lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
JackonYang committed Mar 29, 2017
1 parent 5f88ed7 commit 86bddc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conv_captcha.py
Expand Up @@ -9,7 +9,7 @@
IMAGE_WIDTH = 60
IMAGE_HEIGHT = 100
IMAGE_SIZE = IMAGE_WIDTH * IMAGE_HEIGHT
LABEL_SIZE = 10 # range(0, 10)
LABEL_SIZE = 36

MAX_STEPS = 20000
BATCH_SIZE = 50
Expand Down Expand Up @@ -47,7 +47,7 @@ def conv2d(x, W):


def max_pool_2x2(x):
return tf.nn.avg_pool(x, ksize=[1, 8, 8, 1],
return tf.nn.avg_pool(x, ksize=[1, 5, 5, 1],
strides=[1, 2, 2, 1], padding='SAME')


Expand Down Expand Up @@ -142,7 +142,7 @@ def main(_):
# final check after looping
test_x, test_y = test_data.next_batch(2000)
test_summary, test_accuracy = sess.run([merged, accuracy], feed_dict={x: test_x, y_: test_y, keep_prob: 1.0})
train_writer.add_summary(test_summary, i)
test_writer.add_summary(test_summary, i)

print 'step %s, training accuracy = %.2f%%, testing accuracy = %.2f%%' % (i, train_accuracy * 100, test_accuracy * 100)

Expand Down

0 comments on commit 86bddc2

Please sign in to comment.