1
在TensorFlow示例中的Cifar10示例中,他们使用裁剪,翻转,增亮,对比和美白的随机组合来扭曲图像。这个概念是有道理的,除了裁剪对我来说似乎有点奇怪。这些图像将需要对网络和裁剪代码相同的尺寸看起来是这样的:TensorFlow - Cifar10示例中的random_crop是什么?
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])
由于高度和宽度都是基于图像尺寸为这实际上做什么?
谢谢,这清除它! –
@bradden_gross很高兴能够提供帮助! –