使用mobilenet_v1---使用SSD-MobileNet训练模型

本文详细介绍了如何使用Mobilenet_v1进行目标检测模型训练的过程,包括环境配置、命令执行、常见错误解决方法及数据集处理技巧,并提供了一个可以直接运行的示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用mobilenet_v1训练mobilenet
主要参考了[1],还是很详细的,跟着教程来可以很容易跑起来,有几个问题需要注意


★执行命令路径举例
cd /host/models/research/
protoc object_detection/protos/*.proto --python_out=.
export PYTHONPATH="${PYTHONPATH}:/host/models:/host/models/research/slim/"
python setup.py build
python setup.py install
★protoc安装
apt-get install protobuf-compiler libprotobuf-dev libprotoc-dev
apt-get install libprotobuf-c0-dev protobuf-c-compiler
★错误 object_detection/protos/model.proto:12:5: "Ssd" is not defined.
1.下载https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
2.unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
3. cd protoc3 | cd bin | chmod +x protoc |export PATH=$PATH:/host/protoc3/bin
4. protoc 要编译的
★解压数据集的时候出现错误
gzip: stdin: not in gzip format tar.gz
使用 $ tar -xvf xxxx.tar.gz 命令
★出现错误
ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: 'Tensor("arg0:0", shape=(), dtype=float32)'
查看ssd_mobilenet_v1_pets.config的数据集record是否对得上

 

可以参考我将我分享的这个东西直接放到models/research/object detection中,直接

python object_detection/train.py --train_dir object_detection/train --pipeline_config_path object_detection/ssd_model/ssd_mobilenet_v1_pets.config

 

就可以运行

 

链接:https://pan.baidu.com/s/12YbCbGej4X_PRoChHxWrHA 密码:ymif

[1] 非常好的一个跑mobilenet_v1的例子 

-----------------------------------------------------------------------------------------------

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

andeyeluguo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值