【问题标题】:Projective transformations no longer available in TensorFlow 2.0 what can I do?TensorFlow 2.0 中不再提供投影变换我该怎么办?
【发布时间】:2019-09-08 16:37:54
【问题描述】:

我的团队正在切换到 TensorFlow 2.0。我正在研究数据增强管道。 TensorFlow 1.X 有 tf.contrib.image.transform 允许投影变换。 TensorFlow 在tf.image 中没有转换功能,当然也没有tf.contrib 模块。

我考虑了其他数据增强选项:

  • NVIDIA DALI 仅允许使用 6 个参数进行仿射变换。
  • Python 包 Augmentor 支持投影变换,但它对 PIL 图像而非张量进行操作。

【问题讨论】:

    标签: python tensorflow computer-vision


    【解决方案1】:

    之前包含在 tf.contrib.image.transform 中的功能正在升级到 TF 2.0 并迁移到 TensorFlow Addons (tfa.image)。如果您迫切需要尚未添加的特定端点,请将其作为问题提交到 Addons 存储库中。

    tf.contrib 端点的迁移、弃用和重命名命运在 TensorFlow 组织 RFC here 中有详细说明。

    【讨论】:

      猜你喜欢
      • 2011-06-28
      • 2012-07-27
      • 2021-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-14
      • 2018-10-07
      • 2011-04-25
      相关资源
      最近更新 更多