我在 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,这对我不起作用。
该错误消息表示模型文件存在损坏或不完整的问题。重新检查将模型文件输出到磁盘的脚本,检查文件大小以确保它是合理的,等等。