LeafTrack: leaftrack-yolo11n-seg
YOLO11-seg model that segments individual leaves in top-down plant images. Trained with LeafTrack on the KOMATSUNA dataset (Uchiyama et al., 2017), split by plant so test plants were never seen in training.
Usage
from leaftrack.segment import LeafSegmenter
segmenter = LeafSegmenter.from_hub("Awais05/leaftrack-yolo11n-seg")
leaves = segmenter.predict(rgb_image) # list of LeafInstance (mask, box, confidence)
Test-set results
| Mask mAP50 | Mask mAP50-95 | Box mAP50 | Box mAP50-95 |
|---|---|---|---|
| 0.987 | 0.825 | 0.988 | 0.830 |
Leaf metrics at confidence 0.30 (selected on val (240 images)), neighbour-leaf filter on:
| Subset | Images | SBD ↑ | FBD ↑ | |DiC| ↓ | DiC | Exact count |
|---|---|---|---|---|---|---|
| all | 240 | 0.930 ± 0.059 | 0.970 | 0.15 | +0.04 | 85% |
| multi | 180 | 0.931 ± 0.063 | 0.975 | 0.19 | +0.04 | 82% |
| rgbd | 60 | 0.926 ± 0.046 | 0.956 | 0.05 | +0.02 | 95% |
Effect of post-processing (test, all images):
| Setting | SBD ↑ | |DiC| ↓ | Exact count |
|---|---|---|---|
| conf 0.25 (Ultralytics default) | 0.746 | 1.38 | 26% |
| conf 0.3 (selected on val) | 0.756 | 1.27 | 28% |
| conf 0.3 + neighbour-leaf filter | 0.930 | 0.15 | 85% |
CPU latency (2 threads, imgsz 640): median 241 ms, p90 434 ms per image.
Training data and license
The weights are released under MIT. The KOMATSUNA dataset is credited to Uchiyama et al., "An Easy-to-Setup 3D Phenotyping Platform for KOMATSUNA Dataset", ICCV Workshops 2017.