tensorflow - 如何在 coco 数据集上获得预训练模型(Faster RCNN inception v2)的准确性
问题描述
将 tf1 修补到utils.ops
utils_ops.tf = tf.compat.v1
修补gfile的位置
tf.gfile = tf.io.gfile
用于为每个框添加正确标签的字符串列表。
PATH_TO_LABELS ='/content/models/research/object_detection/data/mscoco_label_map.pbtxt' category_index = label_map_util.create_category_index_from_labelmap(PATH_TO_LABELS, use_display_name=True)
model_name = 'faster_rcnn_inception_v2_coco_2018_01_28' detection_model = load_model(model_name)
解决方案
推荐阅读
- xamarin - 在 Xamarin.Forms 中使用 ToptabbedPage 时出现意外的白色按钮
- flutter - 在颤振应用程序的发布模式下,文本变灰
- python - csv 文件转换成表格 - Python 编程
- php - 如何从这个数组制作一个表格?
- xamarin - Xamarin 按钮未启用
- javascript - 单击时更改元素索引(两侧)
- javascript - 为什么这个数组在看起来正确的范围内被记录为未定义?
- python - 给定 3 个非负整数 n、m 和 a,找到满足 (x*a) % n = m % n 的最小 x 的最快方法是什么?
- java - 如何检查 2d 点是否在 Java 中的 2D 多边形内?
- java - 如何将 HashMap 作为参数传递