【问题标题】:Where do find out what preprocessing the models on tensorflow hub were trained on?在哪里可以找到 tensorflow hub 上的模型经过哪些预处理?
【发布时间】:2021-08-11 12:37:47
【问题描述】:

我发现 keras.applications 和 tensorflow hub 中可用的一些模型使用了不同的预处理。 例如,我读到 mobilenetv2 模型期望图像从 tensorflow hub 缩放 [0,1] 并在 keras.applications 中缩放 [-1, 1]。

现在 keras.applications 模型都带有预处理功能,或者至少带有有关如何预处理的信息。 我可以在 tensorflow hub 上查找相同的信息吗?

很遗憾,我找不到任何东西。

【问题讨论】:

    标签: tensorflow keras transfer-learning tensorflow-hub


    【解决方案1】:

    TF Hub 依赖模型的发布者来记录模型支持的预处理(如果有的话)。虽然有些发布者可能会遵循他们自己的约定,但也鼓励对接口进行通用使用 (https://www.tensorflow.org/hub/common_signatures)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-22
      • 1970-01-01
      • 2017-07-24
      • 2020-06-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多