Infer FreeYOLO for images and videos with onnx model.
pip install -U pip && pip install opencv-python onnxruntime
Taken from the official Github repository: FreeYOLO/deployment/ONNXRuntime
python onnx_inference.py --mode image --model model/yolo_free_tiny_opset_11.onnx -i test.jpg -s 0.3 --img_size 640
python onnx_inference.py --mode video --model model/yolo_free_tiny_opset_11.onnx -i sample.mp4 -s 0.3 --img_size 640