Open TikPapyan opened 8 months ago
Hello.
what brand and model is your camera? That rtsp link you have seems fishy.
I have an Axis M1125 with a custom trained model. I run the model with these parameters:
python detect.py --weights runs\train\exp3\weights\best_striped.pt --conf 0.5 --source "rtsp://user:password@ip.ip.ip.ip:8554/axis-media/media.amp" --device 0 --nosave.
And it works fine.
Do not forget to create a clean environment and apply pip install -r requirements.txt
Have a great day.
I want to run an inference on an RTSP stream, for person detection. I have cloned the repo, downloaded model C - yolov9-c.pt, and stored it in the weights directory.
I am running the code with the following command:
python3 detect.py --weights weights/yolov9-c.pt --conf 0.1 --source rtsp://mystream
But it throws an error:
I have installed all the required packages from requirements.txt and I have GUI support on my server