如何在 iOS 应用程序中使用自定义 yolov4 权重
我按照以下步骤操作:
- 在自定义数据集上训练后获得 YOLO v4 权重
- 将权重转换为 TensorFlow 检查点
- 将 Tensorflow 检查点转换为 tflite
- 量化 tflite
- 我使用的是 tflite 示例 和将自定义 tflite 导入到 xcode 项目
但我遇到了崩溃:
Failed to create the interpreter with error: Failed to create the interpreter.
ObjectDetection/ViewController.swift:56: Fatal error: Failed to load model
2022-02-28 13:28:22.850305+0530 ObjectDetection[9505:3901451]
ObjectDetection/ViewController.swift:56: Fatal error: Failed to load model
我测试了我的 tflite 权重及其工作正常
I following these steps:
- Obtained YOLO v4 weights after training on my custom dataset
- Converted weights to TensorFlow checkpoints
- Converted Tensorflow checkpoint to tflite
- Quantized tflite
- I was using tflite samples and imported custom tflite to xcode project
But I'm getting a crash:
Failed to create the interpreter with error: Failed to create the interpreter.
ObjectDetection/ViewController.swift:56: Fatal error: Failed to load model
2022-02-28 13:28:22.850305+0530 ObjectDetection[9505:3901451]
ObjectDetection/ViewController.swift:56: Fatal error: Failed to load model
I tested my tflite weights and its working fine
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请关注此空间以获取解决方案 https://github.com/ankits16/CVRecorderFinal/blob /main/README.md
Follow this space for solution https://github.com/ankits16/CVRecorderFinal/blob/main/README.md