Skip to content

Commit b33c34d

Browse files
authored
Update input_train_val_split.py
1 parent e682666 commit b33c34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

01 cats vs dogs/new_version/input_train_val_split.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ 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
120+
# 如果想看到正常的图片,请注释掉111行(标准化)和 130行(image_batch = tf.cast(image_batch, tf.float32)
121121
# 训练时,不要注释掉!
122122
image = tf.image.per_image_standardization(image)
123123

0 commit comments

Comments
 (0)