Skip to content

Commit 12aa10a

Browse files
authored
Update input_data.py
1 parent 18b6e5f commit 12aa10a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

01 cats vs dogs/input_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def get_batch(image, label, image_W, image_H, batch_size, capacity):
105105
image = tf.image.resize_image_with_crop_or_pad(image, image_W, image_H)
106106

107107
# if you want to test the generated batches of images, you might want to comment the following line.
108+
# 如果想看到正常的图片,请注释掉111行(标准化)和124行(转成float)
109+
# 训练时不要注释掉!
108110
image = tf.image.per_image_standardization(image)
109111

110112
image_batch, label_batch = tf.train.batch([image, label],

0 commit comments

Comments
 (0)