- Ubuntu 18.04.5 LTS
- Jetpack 4.5.1
- Docker Engine - https://docs.docker.com/engine/install/ubuntu/
- Docker Compose - https://docs.docker.com/compose/install/
sudo python3 docker_env.py --build
sudo python3 docker_env.py --run
cd src
python3 yolov5_jetson.py
It will download the model the first time you run the code
git clone https://github.com/ultralytics/yolov5.git
git clone https://github.com/wang-xinyu/tensorrtx.git
// download https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s.pt
cp tensorrtx/yolov5/gen_wts.py yolov5
cd yolov5
python gen_wts.py -w yolov5s.pt -o yolov5s.wts // a file 'yolov5s.wts' will be generated.
cd tensorrtx/yolov5/
mkdir build
cd build
cmake ..
make
sudo ./yolov5 -s yolov5s.wts yolov5s.engine s
sudo ./yolov5 -d yolov5s.engine ../samples