简体   繁体   English

使用tensorflow时,在哪里可以找到ssd_mobilenet_v1_coco的标签映射文件(pbtxt)?

[英]Where can I find the label map file(pbtxt) of ssd_mobilenet_v1_coco when using tensorflow?

I learn object detection on windows 10 with tensorflow object detection .我使用tensorflow object detection在 windows 10 上学习对象检测

I download ssd_mobilenet_v1_coco_2018_01_28.tar.gz from https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md我从https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md下载 ssd_mobilenet_v1_coco_2018_01_28.tar.gz

After I unzipped the ssd_mobilenet_v1_coco_2018_01_28.tar.gz file, I didn't find the pbtxt file.我解压ssd_mobilenet_v1_coco_2018_01_28.tar.gz文件后,没有找到pbtxt文件。

Where can I find the related pbtxt file of ssd_mobilenet_v1_coco? ssd_mobilenet_v1_coco的相关pbtxt文件在哪里可以找到?

I know that there some pbtxt files in models-master\\research\\object_detection\\data folder, but which file is related to ssd_mobilenet_v1_coco?我知道在models-master\\research\\object_detection\\data文件夹中有一些 pbtxt 文件,但是哪个文件与 ssd_mobilenet_v1_coco 相关?

The label map is not specific to an architecture, but rather to a dataset (which classes you support, and accordingly you should set the number of channels of the classification layer).标签图并不特定于架构,而是特定于数据集(您支持哪些类,因此您应该设置分类层的通道数)。 Therefore, you simply need the label map which corresponds to coco, which is object_detection/data/mscoco_label_map.pbtxt .因此,您只需要与 coco 对应的标签图,即object_detection/data/mscoco_label_map.pbtxt

Dataset is implemented in the model.数据集在模型中实现。 Model is delivered by tar.gz or .zip.模型由 tar.gz 或 .zip 提供。 If you use pretrained basic model, then label map can be found code tree githup object_detection/data/mscoco_label_map.pbtxt as netanel-sam explains.如果您使用预训练的基本模型,则可以在代码树 githup object_detection/data/mscoco_label_map.pbtxt 中找到标签图,如 netanel-sam 解释的那样。

But if you start to train your pretrained model and add items to be detected to your dataset and start to deliver your modified model, then your must offer your label map also and there is no better way than include it to the .tar.gz or .zip.但是,如果您开始训练您的预训练模型并将要检测的项目添加到您的数据集中并开始交付您修改后的模型,那么您还必须提供您的标签地图,并且没有比将其包含到 .tar.gz 或。压缩。 Same situation is with lite-model, because conversion from trainable model to lite often loses items from dataset. lite-model 的情况相同,因为从可训练模型到 lite 的转换通常会丢失数据集中的项目。 Lite-model uses also other format to labelmap than basic model. Lite-model 还使用其他格式来标记地图而不是基本模型。 Confusing?令人困惑?

暂无
暂无

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

相关问题 如何在 google colab tensorflow 1.15.2 上训练自定义对象检测模型 ssd_mobilenet_v1_coco 和 ssd_inception_v2_coco? - how to train a custom object detection model ssd_mobilenet_v1_coco and ssd_inception_v2_coco on google colab tensorflow 1.15.2? Tensorflow 的 pb 和 pbtxt 文件在重新训练 MobileNet SSD V1 COCO 后不适用于 OpenCV - Tensorflow' pb and pbtxt files don't work with OpenCV after retraining MobileNet SSD V1 COCO ssd_mobilenet_v2_fpnlite_320x320 的 .pbtxt 文件 - .pbtxt file for ssd_mobilenet_v2_fpnlite_320x320 如何将 ssd_mobilenet_v1_COCO_2017_11_17 加载到本地的 object_detection_webcam? - How can I load the ssd_mobilenet_v1_COCO_2017_11_17 to the object_detection_webcam locally? 如何在tensorflow.js上加载/重新训练/保存ssd_inception_v2_coco? - How can I load/retrain/save ssd_inception_v2_coco on tensorflow.js? 对象检测tensorflow api中的ssd mobilenet v1可以尝试使用不同于默认值的调整大小形状吗? - Can ssd mobilenet v1 in object detection tensorflow api be tried with different resize shapes than the default ones? 张量流理解“ ssd_mobilenet_v1_pets.config” - tensorflow understanding “ssd_mobilenet_v1_pets.config” Tensorflow:SSD_mobilenet_v2_2 中的 TFLiteConverter(已保存模型 -> TFLite) - Tensorflow: TFLiteConverter (Saved Model -> TFLite) in SSD_mobilenet_v2_2 每10k-12k步骤使用ssd_mobilenet_v2_quantized_300x300_coco的对象检测模型的丢失增加 - Loss of Object detection model using ssd_mobilenet_v2_quantized_300x300_coco increases after every 10k-12k steps ssd mobilenet v1:更改功能 map 布局 - ssd mobilenet v1: change feature map layout
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM