# 0.Instruction
This Repos contains how to run yolov5 model in DeepStream 5.0
# 1.Geneate yolov5 engine model
We can use https://github.com/wang-xinyu/tensorrtx yolov5 to generate engine model
### Important Note:
You should replace yololayer.cu and hardswish.cu file in tensorrtx/yolov5
### How to Run, yolov5s as example
-- a). generate yolov5s.wts from pytorch with yolov5s.pt
```
git clone https://github.com/wang-xinyu/tensorrtx.git
git clone https://github.com/ultralytics/yolov5.git
// download its weights 'yolov5s.pt'
// copy tensorrtx/yolov5/gen_wts.py into ultralytics/yolov5
// ensure the file name is yolov5s.pt and yolov5s.wts in gen_wts.py
// go to ultralytics/yolov5
python gen_wts.py
// a file 'yolov5s.wts' will be generated.
```
-- b). build tensorrtx/yolov5 and run
```
// put yolov5s.wts into tensorrtx/yolov5
// go to tensorrtx/yolov5
// ensure the macro NET in yolov5.cpp is s
mkdir build
cd build
cmake ..
make
sudo ./yolov5 -s // serialize model to plan file i.e. 'yolov5s.engine'
```
We can get 'yolov5s.engine' and 'libmyplugin.so' here for the future use.
# 2.Build DeepStream 5.0 nvdsinfer_custom_impl_yolo plugin
In Deepstream 5.0/nvdsinfer_custom_impl_Yolo Directory, exec 'make' command.
We can get libnvdsinfer_custom_impl_Yolo.so here.
# 3.Modify configure file
After build yolov5 plugin, modify 'config_infer_primary_yoloV5.txt' in Deepstream 5.0 Directory.
-- a).In Line 58. "parse-bbox-func-name=NvDsInferParseCustomYoloV5" // This is the bbox parse function name.
-- b).In Line 59. "custom-lib-path" // This is DeepStream plugin path.
-- c).In Line 56. Comment "#cluster-mode=2". Becase we use custom NMS function.
# 4. How to run it
Running the application as
```
LD_PRELOAD=./libcustomOp.so deepstream-app -c <app-config>
```
没有合适的资源?快使用搜索试试~ 我知道了~
描述如何在Deepstream 5.0中使用yolov5.zip

共59个文件
h:39个
cpp:6个
txt:5个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 124 浏览量
2024-11-26
16:08:52
上传
评论
收藏 126KB ZIP 举报
温馨提示
描述如何在Deepstream 5.0中使用yolov50.使用说明此 Repos 包含如何在 DeepStream 5.0 中运行 yolov5 模型1.生成yolov5引擎模型我们可以使用https://github.com/wang-xinyu/tensorrtx yolov5来生成引擎模型重要提示你应该替换 tensorrtx/yolov5 中的 yololayer.cu 和 hardswish.cu 文件如何运行,以 yolov5s 为例-- a). 使用 yolov5s.pt 从 pytorch 生成 yolov5s.wtsgit clone https://github.com/wang-xinyu/tensorrtx.gitgit clone https://github.com/ultralytics/yolov5.git// download its weights 'yolov5s.pt'// copy tensorrtx/yolov5/gen_wts.py into ultralytics/yolov5// ensure
资源推荐
资源详情
资源评论



















收起资源包目录































































共 59 条
- 1
资源评论


徐浪老师
- 粉丝: 9478
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 3DSMax插件安装完全向导.doc
- 软件技术职业生涯规划.doc
- 单片机实用系统设计方案教学进度表、教案.doc
- 大数据视角下的人工智能技术应用探讨.docx
- 2017-2018学年高中数学-第二章-算法初步-2.2-算法框图的基本结构及设计-2.2.3-循环结构-北师大版必修3.ppt
- 医院财务管理信息化研究.docx
- 云计算在现代远程教育中的应用研究.docx
- 区块链视角的企业业财融合与财务共享研究.docx
- RSA数据加密算法分析与改进.docx
- 单片机汇编语言经典一百例.doc
- 以培养学生自觉意识为基础的计算机程序设计课程教学改革研究.docx
- JAVA计算器课程设计.docx
- 声源定位在智能语音识别中的应用-洞察研究.pptx
- 自学考试C--程序设计C--笔记.doc
- 基于云计算环境下数据存储安全的关键技术初探.docx
- C语言-第12章.ppt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
