【发布时间】:2021-01-14 02:07:52
【问题描述】:
背景: 我正在尝试将来自官方 tf zoo 的 tf2 模型转换为 SSD MobileNet V2 FPNLite 320x320(例如)。该模型最终应该在树莓派上运行,所以我希望它在 tflite 解释器上运行(没有完整的 tf)。文档暗示支持 ssd 模型转换。
发生了什么: 该过程在this colab notebook 中有详细说明。它因错误而失败:
ConverterError: <unknown>:0: error: loc(callsite(callsite("Postprocessor/BatchMultiClassNonMaxSuppression/MultiClassNonMaxSuppression/SortByField_1/Size@__inference___call___23519" at "StatefulPartitionedCall@__inference_signature_wrapper_25508") at "StatefulPartitionedCall")): 'tf.Size' op is neither a custom op nor a flex op
<unknown>:0: note: loc("StatefulPartitionedCall"): called from
<unknown>:0: error: failed while converting: 'main': Ops that can be supported by the flex runtime (enabled via setting the -emit-select-tf-ops flag):
tf.Size {device = ""}
如果我添加标志 tf.lite.OpsSet.SELECT_TF_OPS,它可以工作但不会在 rpi 上运行,因为它没有操作。
这可以吗?有人成功了吗?
【问题讨论】:
标签: tensorflow raspberry-pi tensorflow2.0 tensorflow-lite