Benign InnovationsCompany & role details

Instance Segmentation from Auto-Labeling to Edge Deployment

A SEEM and SAM2 annotation pipeline that turns class masks into YOLO polygons, trains instance segmentation, and exports the model for edge integration.

Owner-provided summary of instance segmentation, showing an outdoor scene with illustrative masks and the SEEM, SAM2, YOLO polygon, training, and ONNX export stages.
Project summary illustration

Tools & Skills

  • Auto-Labeling
  • SEEM
  • SAM2
  • Instance Segmentation
  • YOLOv11
  • ONNX
  • MLflow
  • Polygon Annotation
  • Model Evaluation

End-to-End Machine Learning

Engineering at a glance

Explore the evidence

The Challenge

Turn unlabeled lawn imagery into class-aware segmentation data and a compact model suitable for the robot’s perception runtime.

The Solution

Map SEEM masks to lawn-care classes, refine regions with SAM2, export YOLO polygons, train YOLOv11 segmentation, track validation in MLflow, and export 640 × 640 ONNX models.

Results and Impact

5 foreground classes → trained model → ONNX export

The implementation records box and mask metrics, including per-class validation. No numerical mAP or deployment latency is published. The linked lawn-care robot demonstration shows the wider perception workflow.

Project Status

Implemented and validated

Auto-labeling, model training, evaluation logging, and ONNX export are implemented. The project provides artifacts for edge integration; target-runtime performance is not quantified.

My contribution

SEEM and SAM2 annotation pipeline, YOLOv11 segmentation training, validation, and model export.

From unlabeled images to segmentation

I built a pipeline for the lawn-care robot that connects offline foundation-model labeling with task-specific YOLOv11 instance segmentation. SEEM supplies semantic categories, SAM2 refines selected regions, and the resulting polygons become training labels for the deployment model.

The annotation vocabulary covers grass, plants, road, people, and animals. Expensive teacher models run during dataset preparation; the robot uses the trained YOLO model.

Class-aware label generation

  1. SEEM creates the initial class masks. Its panoptic output is mapped into the lawn-care categories. Contours provide class-tagged bounding boxes for the next stage.
  2. SAM2 refines box-prompted regions. The implementation uses SAM2.1 Hiera Large and a second prediction pass with a mask prompt. Candidate masks are compared with the original SEEM class mask.
  3. A fallback preserves the original label. A SAM2 candidate is accepted only when its overlap exceeds the configured IoU threshold of 0.90. Otherwise the pipeline retains the SEEM mask. Plant regions retain their SEEM masks directly.
  4. Contours become YOLO polygons. The exporter writes normalized polygon coordinates and remaps the five foreground categories to training IDs 0–4. Raster masks are also saved for inspection.

Class identity comes from SEEM throughout this path. The labeling stages combine regions at class level, so the generated polygons still need review where touching objects or merged regions can blur instance boundaries.

Training, evaluation, and export

The training entry point accepts configurable YOLO segmentation weights, datasets, and image sizes; the checked-in configuration uses 640-pixel input. Validation records both bounding-box and mask precision, recall, and mAP in MLflow, including per-class measurements.

The inference utility can render individual predicted masks or combine them into a class map. The active export path produces ONNX at 640 × 640, providing a model artifact for integration with the target runtime.

Why the workflow matters

The pipeline makes dataset expansion repeatable while keeping annotation and runtime responsibilities separate. Its class conventions also connect to the sprayer-robot detection workflow, which combines multiple annotation sources.

The linked demonstration shows this perception work within the wider autonomous lawn-care robot.

Evidence & demonstration

Demos & project media

The lawn-care demo shows scene segmentation, stereo depth, and weed detection in outdoor footage.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.