YOLOv8 instance segmentation using Rust.

Andrei GermanovAndrei Germanov
1 min read

Few months ago I wrote an article and showed, that it's possible to run YOLOv8 object detection using not only Python, but any other language, that supports ONNX. I also provided an example of object detection web applications on Julia, JavaScript, Node.js, Go and Rust.

Surprisingly, the most useful and popular example was on Rust. I got a much bigger feedback about this, compared to other languages.

Furthermore, I received a question, is it possible to implement YOLOv8 instance segmentation on Rust too? My answer is DEFINITELY YES and here is it:

https://github.com/AndreyGermanov/yolov8_onnx_rust_segmentation

This is a web application on Rust that implements both object detection and instance segmentation. It displays both detected objects and their segmentation masks. See demo video:

https://youtu.be/hxtTkEJ7KL0

Read my YOLOv8 articles series to clarify how this code works:

https://dev.to/andreygermanov/how-to-create-yolov8-based-object-detection-web-service-using-python-julia-nodejs-javascript-go-and-rust-4o8e#rust

https://dev.to/andreygermanov/how-to-implement-instance-segmentation-using-yolov8-neural-network-3if9

Follow me for more insights about using Rust for different applications.

4
Subscribe to my newsletter

Read articles from Andrei Germanov directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Andrei Germanov
Andrei Germanov

Full-stack software developer