I’m in trouble!
I used NVIDIA L4T PyTorch to get YOLO v5 working.
In YOLO v5, object detection from images worked.
Next, I tried to detect the object from the image from the webcam.
I have added the --device option to the following command.
sudo docker run --runtime nvidia -it --rm --net host --device /dev/video0 -v /home/User/Desktop/work/1/yolov5:/yolov5 nvcr.io/nvidia/l4t-pytorch:r32.7.1-pth1.9-py3 bash
The container creation is successful.
Then I installed the required libraries for YOLO v5 in the container.
I entered the webcam as source 0 and started YOLO v5.
python3 detect.py --source 0 --weights yolov5s.pt
However, it fails as shown in the image below.
Could you please tell me what is missing?
I want the support of people all over the world!!