diff options
author | Keishi Hattori <keishi.hattori@gmail.com> | 2018-08-27 20:15:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 20:15:10 +0900 |
commit | 6db10487de1aabfd547aaf8a2cb72379ea9a4a8d (patch) | |
tree | 58649ff6ae6b6a52e1267973bd7ef190334c7c4b /tensorflow/contrib/eager | |
parent | e2c6ec9e86dd86e0dd56e0f11302a5bf5d9ed440 (diff) |
Fix pix2pix_eager.ipynb image resize method
2 was BICUBIC not NEAREST_NEIGHBOR
https://github.com/tensorflow/tensorflow/blob/r1.10/tensorflow/python/ops/image_ops_impl.py#L936
Diffstat (limited to 'tensorflow/contrib/eager')
-rw-r--r-- | tensorflow/contrib/eager/python/examples/pix2pix/pix2pix_eager.ipynb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/contrib/eager/python/examples/pix2pix/pix2pix_eager.ipynb b/tensorflow/contrib/eager/python/examples/pix2pix/pix2pix_eager.ipynb index ee25d25b52..d60ee18586 100644 --- a/tensorflow/contrib/eager/python/examples/pix2pix/pix2pix_eager.ipynb +++ b/tensorflow/contrib/eager/python/examples/pix2pix/pix2pix_eager.ipynb @@ -147,11 +147,12 @@ " # random jittering\n", " \n", " # resizing to 286 x 286 x 3\n", - " # method = 2 indicates using \"ResizeMethod.NEAREST_NEIGHBOR\"\n", " input_image = tf.image.resize_images(input_image, [286, 286], \n", - " align_corners=True, method=2)\n", + " align_corners=True, \n", + " method=tf.image.ResizeMethod.NEAREST_NEIGHBOR)\n", " real_image = tf.image.resize_images(real_image, [286, 286], \n", - " align_corners=True, method=2)\n", + " align_corners=True, \n", + " method=tf.image.ResizeMethod.NEAREST_NEIGHBOR)\n", " \n", " # randomly cropping to 256 x 256 x 3\n", " stacked_image = tf.stack([input_image, real_image], axis=0)\n", |