相当于 tensorflow 2.0 中的 tf.contrib.image.transform?



tensorflow 2.0中的tf.contrib.image.transform相当于什么?当我使用tf_upgrade_v2转换脚本时,出现错误:

ERROR: Using member tf.contrib.image.transform in deprecated module tf.contrib. tf.contrib.image.transform cannot be converted automatically. tf.contrib will not be distributed with TensorFlow 2.0, please consider an alternative in non-contrib TensorFlow, a community-maintained repository such as tensorflow/addons, or fork the required code.

没有等价物。一些操作是在tensorflow插件中实现的,尽管目前仅在Linux中不可用,而不是Windows。

这是张量流加法器的链接: https://github.com/tensorflow/addons

这是他们的图像操作之一的链接,类似于tf.contrib.image.transform: https://github.com/tensorflow/addons/blob/master/docs/tutorials/image_ops.ipynb

希望这有帮助。

正如 Amir 所说,这似乎不是新 API 的一部分。

也许你可以看看TensorFlow Graphics库。我暂时没有找到任何等效的transform,但我认为这样的实现可以适合这个库。

最新更新