[英]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_Zoo和https://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.