Explorar o código

Merge pull request #1011 from jihobak/cifar10_input

correct order of argument for tf.image.resize_image_with_crop_or_pad
Neal Wu %!s(int64=8) %!d(string=hai) anos
pai
achega
7e465e4ad6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/image/cifar10/cifar10_input.py

+ 1 - 1
tutorials/image/cifar10/cifar10_input.py

@@ -237,7 +237,7 @@ def inputs(eval_data, data_dir, batch_size):
   # Image processing for evaluation.
   # Crop the central [height, width] of the image.
   resized_image = tf.image.resize_image_with_crop_or_pad(reshaped_image,
-                                                         width, height)
+                                                         height, width)
 
   # Subtract off the mean and divide by the variance of the pixels.
   float_image = tf.image.per_image_standardization(resized_image)