Giter Site home page Giter Site logo

kingardor / yolov4-deepstream Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 13.0 6.93 MB

YOLOv4 accelerated wtih TensorRT and multi-stream input using Deepstream

License: GNU General Public License v2.0

Makefile 2.52% Cuda 2.27% C++ 95.21%
yolov4 tensorrt deepstream cpp

yolov4-deepstream's Introduction

Deepstream 5.1 YOLOv4 App

This Deepstream application showcases YOLOv4 running at high FPS throughput!

FPS

P.S - Click the gif to watch the entire video!

Index

  1. Deepstream Setup
    1. Install System Dependencies
    2. Install Deepstream
  2. Running the Application
    1. Clone the repository
    2. Download the weights file
    3. Build the application
    4. Run with different input sources
  3. Citations

Deepstream Setup

This post assumes you have a fully functional Jetson device. If not, you can refer the documentation here.

1. Install System Dependencies

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. Then enter the command:

sudo apt install deepstream-5.1_5.1.0-1_arm64.deb

For more information, go to the get started page of Deepstream here.

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

sudo apt install git

Next, clone the repository

# Using HTTPS
https://github.com/aj-ames/YOLOv4-Deepstream.git
# Using SSH
[email protected]:aj-ames/YOLOv4-Deepstream.git

2. Download the weights file

Download the weights file from google-drive and place it in models/YOLOv4 directory.

3. Build the application

First, build the application by running the following command:

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.

file:///home/astr1x/Videos/sample.mp4
rtsp://admin:admin%[email protected]:554/stream

Now, run the application by running the following command:

./ds-yolo

Citations

yolov4-deepstream's People

Contributors

kingardor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yolov4-deepstream's Issues

Jetson device

Hi Sir,
This is a really nice project! Thank you for sharing it. I was wondering which Jetson device did you use to have this many streams at such high fps with tracking?
Thanks again

Jetson or dGPU?

Hi,
I saw your youtube stream in which you where running this on dGPU. But in repo it says jetson device. Its little confusing could you tell me the dependencies that need to be installed and the correct deepstream package required?
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.