我正在尝试批量移动所有图像并进行“最近”插值。出于某种原因,生成的图像被黑色像素插值......这是一个错误吗?
translations = [100,0] * len(img_batch_list)
img_batch = tf.contrib.image.translate(img_batch,
translations,
interpolation='NEAREST',
name="shift")