Python scripts performing instance segmentation using the YOLOv8 model in ONNX.
Original image: https://commons.wikimedia.org/wiki/File:Giraffes_at_west_midlands_safari_park.jpg
git clone https://github.com/ibaiGorordo/ONNX-YOLOv8-Instance-Segmentation.git
cd ONNX-YOLOv8-Instance-Segmentation
pip install -r requirements.txt
For Nvidia GPU computers:
pip install onnxruntime-gpu
Otherwise:
pip install onnxruntime
You can convert the Pytorch model to ONNX using the following Google Colab notebook:
The original YOLOv8 Instance Segmentation model can be found in this repository: YOLOv8 Instance Segmentation
Image inference:
python image_instance_segmentation.py
Webcam inference:
python webcam_instance_segmentation.py
Video inference: https://youtu.be/8j-FjTsLctA
python video_instance_segmentation.py
Original video: https://youtu.be/-bhSSispEcg