错误:提供的模型具有模型标识符“ctyp”,应为“TFL3”

问题描述 投票:0回答:1

我在 python 中创建了一个 tflite 模型,但现在我需要为 EdgeTPU 编译模型。当我在 google colab 中使用

!edgetpu_compiler modelname.tflite
时,我仍然得到这个:

Edge TPU Compiler version 16.0.384591198
ERROR: Model provided has model identifier 'ctyp', should be 'TFL3'

Invalid model: modelname.tflite
Model could not be parsed

我一直在网上搜索,但在 github 上只找到了这个帖子:https://github.com/synesthesiam/de_deepspeech-aashishag/issues/2,这对我不起作用。

python google-colaboratory tensorflow-lite tpu
1个回答
0
投票

该错误消息表示模型文件存在损坏或不完整的问题。重新检查将模型文件输出到磁盘的脚本,检查文件大小以确保它是合理的,等等。

© www.soinside.com 2019 - 2024. All rights reserved.