简体   繁体   English

分段错误(核心转储) - TFLite

[英]Segmentation fault (core dumped) - TFLite

Describe the problem描述问题

To read a model from official TensorFlow source (COCO SSD MobileNet v1) and perform inference with minimal.cc , we get the error below.要从官方TensorFlow 源(COCO SSD MobileNet v1)读取 model 并使用minimum.cc执行推理,我们得到以下错误。

System information系统信息

  • Host OS Platform and Distribution: Linux Ubuntu 16.04主机操作系统平台和分布:Linux Ubuntu 16.04
  • TensorFlow installed from (source or binary): From source (branch r1.12) TensorFlow 从(源代码或二进制文件)安装:从源代码(分支 r1.12)
  • Target platform: iMX.6 (Arm v7)目标平台:iMX.6(Arm v7)

Please provide the exact sequence of commands/steps when you ran into the problem当您遇到问题时,请提供确切的命令/步骤顺序

root@analytics:~# ./minimal ssd_mobilenet_v1_1_metadata_1.tflite
minimal: /usr/src/debug/tensorflow-lite/1.0-r0/git/tensorflow/contrib/lite/tools/make/downloads/eigen/unsupported/Eigen/CXX11/src/util/
MaxSizeVector.h:84: T& EigenForTFLite::MaxSizeVector<T>::operator[](std::size_t) [with T = EigenForTFLite::RunQueue
<EigenForTFLite::StlThreadEnvironment::Task, 1024u>*; std::size_t = unsigned int]: 
Assertion `i < size_' failed. 
Segmentation fault (core dumped)

Do you have any idea or suggestion about why we are facing this error (because of versions, TFlite binaries or the model etc.)?您对我们为什么会遇到此错误有任何想法或建议(因为版本、TFlite 二进制文件或 model 等)? Thank you in advance.先感谢您。

Looks like the TensorFlow Lite version is too old to be supported.看起来 TensorFlow Lite 版本太旧,无法支持。 Please consider using TF 2.5 or beyonds.请考虑使用 TF 2.5 或更高版本。

hello,you should care tflite where come from, it is error that tflite version你好,你应该关心tflite来自哪里,tflite版本是错误的

I faced something similar, my interpreter object was giving Segmentation fault (core dumped) error.我遇到了类似的情况,我的解释器 object 给出了Segmentation fault (core dumped)错误。 On debugging I found out that the issue was in在调试时我发现问题出在

  • .so file of tflite_runtime, got corrupted while uploading on the server. tflite_runtime 的 .so 文件,在服务器上上传时损坏。
  • model files, got corrupted because of same reason. model 文件,由于同样的原因而损坏。

Then I used git to transfer files between servers, it helped.然后我使用 git 在服务器之间传输文件,它有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM