Skip to content

Commit 123d317

Browse files
authored
Update input_train_val_split.py
1 parent 12aa10a commit 123d317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

01 cats vs dogs/new_version/input_train_val_split.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def get_batch(image, label, image_W, image_H, batch_size, capacity):
117117
image = tf.image.resize_image_with_crop_or_pad(image, image_W, image_H)
118118
# if you want to test the generated batches of images, you might want to comment the following line.
119119

120+
# 如果想要看到正常的图片,请注释掉121行(标准化)和129行(转成float)
121+
# 训练时,不要注释掉!
120122
image = tf.image.per_image_standardization(image)
121123

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

0 commit comments

Comments
 (0)