Skip to content

Infer yolov8-seg models from Ultralytics with ONNXRuntime (no torch required)

Notifications You must be signed in to change notification settings

PrinceB7/yolov8-seg-onnx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yolov8-onnx

Repository to infer Yolov8-seg models from Ultralytics.

1. Information

Put your exported ONNX model in weights/ directory

If you do not have a trained and converted model yet, you can follow Ultralytics Documentation

2. Requirements

  • numpy==1.24.2
  • onnxruntime_gpu==1.14.1
  • opencv_python==4.8.1.78

3. Usage

Run the script infer_onnx.py with the following cli:

python infer_onnx.py -c [checkpoint_path] -i [image_path]

where:

  • checkpoint_path: path to your ONNX model
  • image_path: path to an image

example:

python infer_onnx.py -c weights/yolov8n-seg-v1.onnx -i data/5.png

Releases

No releases published

Packages

No packages published

Languages