【发布时间】:2016-07-15 13:36:39
【问题描述】:
在 TensorFlow 示例中的 Cifar10 示例中,它们通过裁剪、翻转、增亮、对比和白化的随机组合来扭曲图像。这个概念是有道理的,除了裁剪对我来说有点奇怪。图像需要与网络的尺寸相同,裁剪代码如下所示:
height = IMAGE_SIZE
width = IMAGE_SIZE
# Image processing for training the network. Note the many random
# distortions applied to the image.
# Randomly crop a [height, width] section of the image.
distorted_image = tf.random_crop(reshaped_image, [height, width, 3])
由于高度和宽度是基于图像大小的,这实际上有什么作用吗?
【问题讨论】:
标签: machine-learning computer-vision neural-network tensorflow