Skip to content

Yolo26 Segmentation - Bad Inference Result #436

@ZachCostello

Description

@ZachCostello

Search before asking

  • I checked the docs, issues, and discussions and could not find an answer.

Question

I recently trained a Yolo26 Segmentation model and am getting some crazy output in app. Below is my code in flutter and 3 images. I had this code running a Yolov11 model with no issues, then I just swapped the model for my new Yolo26 one and it seems to not be inferring properly. The Flutter Pub page for the plugin didn't indicate any changes that need to be made for Yolo26. When I run the the model in python on my computer, I get the very nicely detected image below. When I run it in my Flutter app, I get the unknown boxes with confidence values well over 100%. The image from my app is the 'annotedImage' that is part of the predict results (segmentResults['annotatedImage']).

Flutter Version: 0.2.0
Running on Android (physical device, Samsung S23)

try {
      //Current model (yolo26s-seg.pt) trained at imgsz=960 on 15 Jan 2026
      if (Platform.isIOS) {
        yolo = YOLO(
          modelPath: 'model.mlmodel',
          task: YOLOTask.segment,
          numItemsThreshold: 50,
        );
      } else {
        yolo = YOLO(
          modelPath: 'best_float32.tflite',
          task: YOLOTask.segment,
          numItemsThreshold: 50,
        );
      }

      await yolo!.loadModel();

      try {
      segmentResults = await yolo!.predict(widget.image);

Results from python (in Google Collab)
Image

Results from Flutter app on Android
Image

Image Tested On
Image

Additional

No response

Metadata

Metadata

Labels

StaleStale and schedule for closing soonexportsModel exports (ONNX, TensorRT, TFLite, etc.)questionFurther information is requestedsegmentInstance Segmentation issues, PR's

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions