SVHNClassifier icon indicating copy to clipboard operation
SVHNClassifier copied to clipboard

Change input size

Open caleale90 opened this issue 7 years ago • 0 comments

I saw that the code saves images with a shape of 64x64 pixels into TFRecords. Then donkey.py reshapes data first into 64x64 then it extracts a random crop of 54x54.

I tried to change these dimensions because I want to use larger size. I changed the line: image = tf.reshape(image, [64, 64, 3]) with image = tf.reshape(image, [128, 128, 3])

But I obtain the following error

ValueError: Dimensions must be equal, but are 128 and 32 for 'sparse_softmax_cross_entropy_loss/xentropy/xentropy' (op: 'SparseSoftmaxCrossEntropyWithLogits') with input shapes: [128,7], [32].

How can I achieve my goal?

caleale90 avatar Mar 05 '18 13:03 caleale90