如何在tensorflow中对一批图像执行tf.image.per_image_standardization
How to perform tf.image.per_image_standardization on a batch of images in tensorflow
我想知道如何对一批图像进行图像美白。
根据 https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization 中的文档,据说 tf.image.per_image_standardization
将 3D 张量(即图像)作为输入,形状为:[height, width, channels]
。
是缺少功能还是有不同的方法?
非常感谢任何帮助。
这是对一批图像执行此操作的方法。
tf.map_fn(lambda frame: tf.image.per_image_standardization(frame), frames)
我想知道如何对一批图像进行图像美白。
根据 https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization 中的文档,据说 tf.image.per_image_standardization
将 3D 张量(即图像)作为输入,形状为:[height, width, channels]
。
是缺少功能还是有不同的方法?
非常感谢任何帮助。
这是对一批图像执行此操作的方法。
tf.map_fn(lambda frame: tf.image.per_image_standardization(frame), frames)