原文:TensorFlow 目标检测模型转换为 OpenCV DNN 可调用格式 - AIUAI
在 OpenCV4.X 版本(OpenCV3.4.1之后版本) 可以采用 cv2.dnn.readNetFromTensorflow(pbmodel, pbtxt)
函数直接调用 TensorFlow 训练的目标检测模型.
1. TensorFlow Detection Model Zoo
TensorFlow 目标检测预训练模型:
1.1. 基于 COCO 数据训练的模型
注:
[1] - 带五角星符号(☆) 表示模型支持 TPU 训练.
[2] - 下载 quantized 模型的 .tar.gz
文件并解压后,会得到不同的文件,包括:checkpoint
文件,config
配置文件和 tfile frozen graphs(txt/binary)
文件.
1.2. 基于 Kitti 数据集训练的模型
Model name | Speed (ms) | Pascal mAP@0.5 | Outputs |
---|---|---|---|
faster_rcnn_resnet101_kitti | 79 | 87 | Boxes |
1.3. 基于 Open Images 数据集训练的模型
Model name | Speed (ms) | Open Images mAP@0.5[^2] | Outputs |
---|---|---|---|
faster_rcnn_inception_resnet_v2_atrous_oidv2 | 727 | 37 | Boxes |
faster_rcnn_inception_resnet_v2_atrous_lowproposals_oidv2 | 347 | Boxes | |
facessd_mobilenet_v2_quantized_open_image_v4 [^3] | 20 | 73 (faces) | Bo |