# Deepstream 5.1 YOLOv4 App
This Deepstream application showcases YOLOv4 running at high FPS throughput!
[![FPS](resources/fps.gif)](https://youtu.be/NNTB4Q_aHS4)
P.S - Click the gif to watch the entire video!
## Index
1. [Deepstream Setup](#Deepstream-Setup)
1. [Install System Dependencies](#Install-System-Dependencies)
2. [Install Deepstream](#Install-Deepstream)
2. [Running the Application](#Running-the-Application)
1. [Clone the repository](#Cloning-the-repository)
2. [Download the weights file](#download-the-weights-file)
3. [Build the application](#build-the-application)
4. [Run with different input sources](#Run-with-different-input-sources)
3. [Citations](#citations)
## Deepstream Setup
This post assumes you have a fully functional Jetson device. If not, you can refer the documentation [here](https://docs.nvidia.com/jetson/jetpack/install-jetpack/index.html).
### 1. Install System Dependencies
```sh
sudo apt install \
libssl1.0.0 \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-0 \
libjansson4=2.11-1
```
### 2. Install Deepstream
Download the DeepStream 5.1 Jetson Debian package `deepstream-5.1_5.1.0-1_arm64.deb`, to the Jetson device from [here](https://developer.nvidia.com/deepstream-getting-started). Then enter the command:
```sh
sudo apt install deepstream-5.1_5.1.0-1_arm64.deb
```
For more information, go to the get started page of Deepstream [here](https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html).
## Running the Application
### 1. Clone the repository
This is a straightforward step, however, if you are new to git, I recommend glancing threw the steps.
First, install git
```sh
sudo apt install git
```
Next, clone the repository
```sh
# Using HTTPS
https://github.com/aj-ames/YOLOv4-Deepstream.git
# Using SSH
git@github.com:aj-ames/YOLOv4-Deepstream.git
```
### 2. Download the weights file
Download the weights file from [google-drive](https://drive.google.com/file/d/1nZds8loc4XdG4KQGdgoU-xyOgwJqv9m-/view?usp=sharing) and place it in `models/YOLOv4` directory.
### 3. Build the application
First, build the application by running the following command:
```sh
make clean && make -j$(nproc)
```
This will generate the binary called `ds-yolo`. This is a one-time step and you need to do this only when you make source-code changes.
### 4. Run with different input sources
Next, create a file called `inputsources.txt` and paste the path of videos or rtsp url.
```sh
file:///home/astr1x/Videos/sample.mp4
rtsp://admin:admin%40123@192.168.1.1:554/stream
```
Now, run the application by running the following command:
```sh
./ds-yolo
```
## Citations
* [AlexeyAB/darknet](https://github.com/AlexeyAB/darknet)
没有合适的资源?快使用搜索试试~ 我知道了~
YOLOv4-Deepstream:使用Deepstream通过TensorRT和多流输入加速YOLOv4
共23个文件
cpp:6个
txt:4个
h:3个
需积分: 42 43 下载量 17 浏览量
2021-04-16
12:04:00
上传
评论 1
收藏 6.93MB ZIP 举报
温馨提示
Deepstream 5.1 YOLOv4应用 该Deepstream应用程序展示了以高FPS吞吐量运行的YOLOv4! PS-单击gif观看整个视频! 指数 深度流设置 这篇文章假设您拥有功能齐全的Jetson设备。 如果没有,您可以在参考文档。 1.安装系统依赖项 sudo apt install \ libssl1.0.0 \ libgstreamer1.0-0 \ gstreamer1.0-tools \ gstreamer1.0-plugins-good \ gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-ugly \ gstreamer1.0-libav \ libgstrtspserver-1.0-0 \ libjansson4=2.11-1 2.安装Deepstream 从此处将DeepStream 5.1 Jetson
资源详情
资源评论
资源推荐
收起资源包目录
YOLOv4-Deepstream-main.zip (23个子文件)
YOLOv4-Deepstream-main
.gitignore 499B
Makefile 1KB
resources
fps.gif 6.98MB
models
Trackers
DCF
ds_tracker_config.txt 2KB
tracker_config.yml 7KB
KLT
ds_tracker_config.txt 2KB
YOLOv4
config_infer_primary_yolov4.txt 713B
labels.txt 625B
yolov4.cfg 12KB
LICENSE 18KB
ds_src
deepstream_yolov4_app.hpp 5KB
deepstream_yolov4_app.cpp 24KB
README.md 3KB
custom_parsers
nvds_customparser_yolov4
yoloPlugins.h 5KB
nvdsparsebbox_Yolo.cpp 23KB
Makefile 2KB
yolo.cpp 25KB
yoloPlugins.cpp 4KB
nvdsinfer_yolo_engine.cpp 4KB
trt_utils.cpp 41KB
kernels.cu 3KB
yolo.h 3KB
trt_utils.h 5KB
共 23 条
- 1
易行健
- 粉丝: 24
- 资源: 4593
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0