简体   繁体   English

如何在 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?

Basically I have been trying to train a custom object detection model with ssd_mobilenet_v1_coco and ssd_inception_v2_coco on google colab tensorflow 1.15.2 using tensorflow object detection api.基本上,我一直在尝试使用 tensorflow 对象检测 api 在 google colab tensorflow 1.15.2 上使用 ssd_mobilenet_v1_coco 和 ssd_inception_v2_coco 训练自定义对象检测模型。 As soon as I start training it throws error for both the models respectively.一旦我开始训练,它就会分别为两个模型抛出错误。

I also ran the python object_detection/builders/model_builder_tf1_test.py and it passed all the test without any errors or warnings.我还运行了python object_detection/builders/model_builder_tf1_test.py ,它通过了所有测试,没有任何错误或警告。

ValueError: ssd_inception_v2 is not supported. See ValueError: ssd_inception_v2 is not supported. See model_builder.py for features extractors compatible with different versions of Tensorflow. ValueError: ssd_inception_v2 is not supported. See for features extractors compatible with different versions of Tensorflow. ValueError: ssd_inception_v2 is not supported. See for features extractors compatible with different versions of Tensorflow.

ValueError: ssd_mobilenet_v1_coco is not supported. See ValueError: ssd_mobilenet_v1_coco is not supported. See model_builder.py for features extractors compatible with different versions of Tensorflow. ValueError: ssd_mobilenet_v1_coco is not supported. See for features extractors compatible with different versions of Tensorflow. ValueError: ssd_mobilenet_v1_coco is not supported. See for features extractors compatible with different versions of Tensorflow.

I have successfully changed the tensorflow to 1.15.2 by using below command this is my first step before installing any of the dependencies.我已经使用下面的命令成功地将 tensorflow 更改为 1.15.2,这是我安装任何依赖项之前的第一步。

%tensorflow_version 1.x
import tensorflow
print(tensorflow.__version__)

When I checked the model_builder.py I can see that they still have support for ssd_mobilenet_v1 and ssd_inception_v2.当我检查 model_builder.py 时,我可以看到他们仍然支持 ssd_mobilenet_v1 和 ssd_inception_v2。 I want to deploy my custom trained model ssd_mobilenet_v1 or ssd_inception_v2 on jetson tx2 by converting them into trt-tf models .我想通过将我的自定义训练模型 ssd_mobilenet_v1 或 ssd_inception_v2 转换为 trt-tf models 来部署在 jetson tx2 上。 In these 2 documents https://www.elinux.org/Jetson_Zoo and https://github.com/NVIDIA-AI-IOT/tf_trt_models#od_models we can see object detection models which can be converted to tf-trt models.在这两个文档https://www.elinux.org/Jetson_Zoohttps://github.com/NVIDIA-AI-IOT/tf_trt_models#od_models 中,我们可以看到可以转换为 tf-trt 模型的对象检测模型。 So my question is how can I train these models as they are supported on google colab on tensorflow 1.15.2 and deploy on jetson txt for converting them to tf-trt models?所以我的问题是如何训练这些模型,因为它们在 tensorflow 1.15.2 上的 google colab 上得到支持,并在 jetson txt 上部署以将它们转换为 tf-trt 模型? Can anyone guide me through it would be really helpful to conitue my learning and learn something interesting thanks任何人都可以指导我完成它对继续我的学习和学习一些有趣的东西真的很有帮助,谢谢

i think you downloaded both of the models from tensorflow v2 repository and tensorflow 1.15 will obviously not support them.我认为您从 tensorflow v2 存储库下载了这两个模型,而 tensorflow 1.15 显然不支持它们。 download models from here : https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1_detection_zoo.md and try again.good luck从这里下载模型: https : //github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1_detection_zoo.md然后再试一次。祝你好运

暂无
暂无

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

相关问题 如何在tensorflow.js上加载/重新训练/保存ssd_inception_v2_coco? - How can I load/retrain/save ssd_inception_v2_coco on tensorflow.js? 使用tensorflow时,在哪里可以找到ssd_mobilenet_v1_coco的标签映射文件(pbtxt)? - Where can I find the label map file(pbtxt) of ssd_mobilenet_v1_coco when using tensorflow? 如何将 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? 每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 Tensorflow 的 pb 和 pbtxt 文件在重新训练 MobileNet SSD V1 COCO 后不适用于 OpenCV - Tensorflow' pb and pbtxt files don't work with OpenCV after retraining MobileNet SSD V1 COCO Tensorflow v1 对象检测api mask_rcnn_inception_v2_coco 模型批量推理 - Tensorflow v1 object detection api mask_rcnn_inception_v2_coco model batch inferencing 无法使用 TensorFlow Object 检测 API 以更大的输入分辨率训练 SSD Inception-V2 - Can't Train SSD Inception-V2 with Larger Input Resolution with TensorFlow Object Detection API model_main.py 无法训练 mobilenet ssd v2 - tensorflow object 检测 api - model_main.py fails to traing mobilenet ssd v2 - tensorflow object detection api 对象检测tensorflow api中的ssd mobilenet v1可以尝试使用不同于默认值的调整大小形状吗? - Can ssd mobilenet v1 in object detection tensorflow api be tried with different resize shapes than the default ones? Tensorflow:SSD_mobilenet_v2_2 中的 TFLiteConverter(已保存模型 -> TFLite) - Tensorflow: TFLiteConverter (Saved Model -> TFLite) in SSD_mobilenet_v2_2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM