Skip to content

Commit

Permalink
dataset_utils bug for tf.image.resize_images
Browse files Browse the repository at this point in the history
  • Loading branch information
wrannaman committed Oct 29, 2016
1 parent 5511b31 commit 0fab4b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion session-3/libs/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_input_pipeline(files, batch_size, n_epochs, shape, crop_shape=None,
else:
rsz_shape = [int(crop_shape[0] / crop_factor),
int(shape[1] / shape[0] * crop_shape[1] / crop_factor)]
rszs = tf.image.resize_images(imgs, rsz_shape[0], rsz_shape[1])
rszs = tf.image.resize_images(imgs, rsz_shape)
crops = (tf.image.resize_image_with_crop_or_pad(
rszs, crop_shape[0], crop_shape[1])
if crop_shape is not None
Expand Down
2 changes: 1 addition & 1 deletion session-4/libs/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_input_pipeline(files, batch_size, n_epochs, shape, crop_shape=None,
else:
rsz_shape = [int(crop_shape[0] / crop_factor),
int(shape[1] / shape[0] * crop_shape[1] / crop_factor)]
rszs = tf.image.resize_images(imgs, rsz_shape[0], rsz_shape[1])
rszs = tf.image.resize_images(imgs, rsz_shape)
crops = (tf.image.resize_image_with_crop_or_pad(
rszs, crop_shape[0], crop_shape[1])
if crop_shape is not None
Expand Down
2 changes: 1 addition & 1 deletion session-5/libs/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_input_pipeline(files, batch_size, n_epochs, shape, crop_shape=None,
else:
rsz_shape = [int(crop_shape[0] / crop_factor),
int(shape[1] / shape[0] * crop_shape[1] / crop_factor)]
rszs = tf.image.resize_images(imgs, rsz_shape[0], rsz_shape[1])
rszs = tf.image.resize_images(imgs, rsz_shape)
crops = (tf.image.resize_image_with_crop_or_pad(
rszs, crop_shape[0], crop_shape[1])
if crop_shape is not None
Expand Down

0 comments on commit 0fab4b1

Please sign in to comment.