python - 如何将 .h5 模型转换为 .pb 模型
问题描述
我使用模型进行自动检测,但我无法读取模型 .pb
from imageai.Detection import VideoObjectDetection
import os
execution_path = os.getcwd()
detector = VideoObjectDetection()
detector.setModelTypeAsYOLOv3()
detector.setModelPath( os.path.join(execution_path , "saved_model.pb"))
detector.loadModel()
解决方案
推荐阅读
- javascript - 试图理解对象映射的 reduce 函数?
- ruby - 如何测试 DelayedJob 是否正在调用另一个类的方法?
- node.js - toObjectId 用于查找和聚合的字符串数组
- c# - 对 IDisposable 的弱引用
- activemq - 如何控制 Hub/Spoke 拓扑中的帧大小
- r - 为多个 geom_segments 添加图例,同时在 ggplot2 中保持“实线”线型
- python - 我应该在两个不同的虚拟环境中安装这两个包吗?
- css - 如何在避免 !important 的同时使用全局 styles.css 覆盖 Angular 材质样式?
- magento - 如何在管理产品网格 Magento2.3 中呈现 HTML 标签?
- python - TypeError:“函数”对象在查找最长公共子序列时不可下标