# this repository
This repository builds docker image for object detection using Yolov5 on Nvidia Jetson platform.
All operations below should be done on Jetson platform.
## build
This operation build docker image named 'yolov5'.
```bash
./build.sh
```
If the build fails, use `--no-cache` option to clean the docker build cache.
```bash
./build.sh --no-cache
```
## run
This operation detects objects with camera connected to /dev/video0.
```bash
./run.sh
```
## run with your own weights
You can use your own weights(my-weights.pt), as follows:
```bash
mkdir -p /path/to/weights
cp my-weights.pt /path/to/weights
xhost +local:
docker run -it --rm \
--runtime nvidia \
--network host \
--device /dev/video0:/dev/video0:mrw \
-e DISPLAY=$DISPLAY \
-e LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1 \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v /path/to/weights:/weights \
yolov5 python3.8 detect.py --source 0 --weights /weights/my-weights.pt
```
## CSI Camera support
CSI Camera is not supported for this docker environment.

赵闪闪168
- 粉丝: 1746
最新资源
- 微信小程序-从零开始Demo(1).zip
- 合同审查要点及质量标准.doc
- 畜禽产品监测项目和检测依据.docx
- 别墅项目销售前景分析.doc
- 韩语四级考试单词.docx
- 青海振动挤密碎石桩施工组织设计方案.doc
- 微信小程序反编译.zip
- 浙江省建设工程造价咨询服务基准收费标准.doc
- 第4篇第2章楼地层、屋盖及阳台、雨篷的基本构造.ppt
- 湖北水厂原水管道安装施工组织设计.doc
- 企业人事管理制度.doc
- 微信小程序:周公解梦境(1).zip
- Taro + Redux + 本地 Mock Server 微信小程序示例项目.zip
- 安装工程货物买卖合同.doc
- 关于地下车库采用机械停车系统造价分析.doc
- 污水处理菌种培植试运行方案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


