zbc f9c7009403 first commit | il y a 4 semaines | |
---|---|---|
code | il y a 4 semaines | |
readme.md | il y a 4 semaines |
code and data location url:192.168.20.250 directory:/data/object_detection
训练模型执行步骤 1、./object_detection.sh /data2/object_detection/data/image/项目名称/
2、训练结束,保存.pt格式:
3、.pt格式模型导出为.pb格式模型
获取pt文件路径:cat export.sh
进入yolov5文件夹 (/data/object_detection/code/yolov5/)后运行
python export.py --weights ./runs/train/helmet_fall_phone/weights/best.pt --include pb #修改项目名称
转换为.pb格式,并保存
4、测试: python detect.py --weights runs/train/safebelt_data/weights/best.pt --source /data2/object_detection/code/yolov5/safebelt_test --data /data2/object_detection/data/image/safebelt_data/yolo/safebelt_data.yaml --device 0