Run the latest object-detection SOTA model YOLOv8 with DeepStream!
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
git clone https://github.com/NMadhub/deepstream6.1-yolov8.git
You can run the download-models.sh
script to download onnx
yolov8 models
cd models
chmod 0777 download-models.sh
./download-models.sh
This repository is tested and used with docker
. For docker setup with nvidia
, click here.
cd docker/dgpu
docker build . -t ds-6.1:custom-1
xhost +
export DISPLAY=:0
sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix -v <local-dir>/yolov8-deepstream-6-1:/app ds-6.1:custom-1
make clean && make -j$(nproc)
Next, create a file called inputsources.txt
and paste the path of videos or rtsp url.
file:///home/nmadhab/Videos/sample_qHD.mp4
rtsp://admin:admin%[email protected]:554/stream
Now, run the application by running the following command:
# For barebones
./ds-yolov8
# For system76 hybrid graphics
__NV_PRIME_RENDER_OFFLOAD=1 ./ds-yolov8