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很高興能夠提供幫助! –