/ Модель

Характеристики

Лицензия
AGPL 3.0
Библиотека
ultralytics
Опубликована
7 окт 2026

lm3_specimen_segmenter__yolo26x_seg_1280

Сегментация изображенийИзображение → mask3 профессии
8скачиваний за 30 дней0лайковвеса обновлены7 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель YOLO26x-seg выделяет растительный материал на изображениях гербарных листов для удаления фона в LeafMachine3.

YOLO26x-seg — модель сегментации, обученная для выделения растительного материала на гербарных листах. Её разработал автор репозитория phyloforfun для использования в LeafMachine3 как альтернативу стандартной модели specimen_segmenter. Модель строит отдельные маски объектов класса plant, которые объединяются в маску переднего плана для удаления фона.

Модель принимает изображения гербарных листов и рассчитана на обработку с размером входа 1280 пикселей. В репозитории приведены веса PyTorch и экспорты ONNX и TorchScript; в метаданных также отмечены Core ML и OpenVINO. Обучение проводилось на 18 904 листах с автоматически созданными и очищенными масками из 75 проектов разметки; изображения и метки не распространяются. Проверка измеряет согласие с этими машинными масками, а не с экспертной разметкой: на тестовой выборке средний Dice составил 0,919 до последующей обработки бумаги в LeafMachine3.

Модель предназначена для сегментации гербарных образцов и подготовки изображений к удалению фона. Маски могут включать участки бумаги, обрамлённые стеблями и ветвями, поэтому качество зависит от последующего этапа удаления бумаги в LeafMachine3. Лицензия репозитория — AGPL-3.0.

Сценарии применения

  • выделение растений на сканах гербарных листов
  • создание масок образцов для удаления фона
  • подготовка гербарных изображений к анализу в LeafMachine3

Ограничения

Оценка отражает согласие с автоматически созданными масками, а не с экспертной разметкой; некоторые тестовые листы имеют Dice ниже 0,5. Маски могут захватывать бумагу между стеблями и ветвями, поэтому для её удаления предусмотрена последующая обработка LeafMachine3.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

lm3_specimen_segmenter__yolo26x_seg_1280

YOLO26x-seg trained to segment plant material on a herbarium specimen sheet; the union of its instance masks is the foreground used for background removal. Alternative to the LeafMachine3 default specimen_segmenter model (lm3_specimen_segmenter__unetpp_effb7_1024).

LM3 metadata

FieldValue
LM3 actionspecimen_segmenter
LM3_default_modelfalse
LM3_versionTBD: supported from the LM3 release that adds model keys to the specimen_segmenter stage
Model keyyolo26x_seg_1280 (training run yolo26x-seg-1280-paperclean)
ArchitectureYOLO26x segment, end-to-end (NMS-free)
Base weightsyolo26x-seg.pt (Ultralytics, AGPL-3.0)
Inputwhole sheet image, 1280 letterbox, RGB
Outputinstance boxes + masks for one class; foreground = union of instance masks at confidence >= 0.25
Classes (1)plant
Trained2026-07-31

Files

FolderFileUse
pytorch/best.ptUltralytics, retraining
onnx/model.onnxonnxruntime (same export form as the LeafMachine3 YOLO26 leaf segmenter)
torchscript/model.torchscriptlibtorch
openvino/model_openvino_model/Intel CPU/iGPU
coreml/model.mlpackage/Apple devices
docs/compare_*.jpgexample panels (see Examples)

SHA-256 of every file is in manifest.json.

Training data

There is no hand-drawn ground truth for this task. The training targets are machine-generated masks, refined in three steps:

  1. Boxes to masks. Specimen boxes from the LeafMachine3 plant detection set prompt SAM 3; the per-box masks are unioned, holes filled, and failed masks gated out. 21,098 sheets kept.
  2. Self-training. A first UNet++ trained on those masks re-predicts every herbarium sheet; its cleaner predictions replace the SAM 3 masks. 2,193 field photographs are excluded as out of domain. 18,904 sheets.
  3. Paper removal. A color rule samples the mounting paper around each mask and deletes large in-mask regions that match it.

The result is dataset LM3_Specimen_Segmentation-specimen-unetMasksFromSam3-paperclean: 18,904 sheet images from 75 labeling projects, one plant class. Masks were converted to instance polygons for this model. Images and labels are not distributed.

SplitImages
train15,154
val1,910
test1,840

Training

300 epochs planned with early-stopping patience 50; stopped at epoch 151, best checkpoint from epoch 101. Batch 16, 1280 letterbox, cosine LR from 0.01, close_mosaic=15, overlap_mask, mask_ratio=4. Augmentation: hsv 0.015/0.7/0.4, degrees 15, translate 0.1, scale 0.5, flipud 0.5, fliplr 0.5, mosaic 1.0, mixup 0.15, copy_paste 0.3 (flip), erasing 0.4, randaugment.

Evaluation

Scores are agreement with the machine-generated masks described above, not with human annotation. They measure how well the model reproduces its training targets on held-out sheets; a model that corrects a flawed target is penalized for it. Read them as a consistency check and judge quality from the examples. Every LeafMachine3 specimen-segmenter card is scored on the same random 150-sheet sample of each split, so the numbers are comparable across models.

SplitSheets scoredDice (mean)Dice (median)IoU (mean)
val, LM3 production path150 of 1,9100.9150.9610.865
test, LM3 production path150 of 1,8400.9190.9590.870
val, plus paper removal150 of 1,9100.9430.9790.913
test, plus paper removal150 of 1,8400.9480.9780.916

Scored at native sheet resolution on the union mask, through LeafMachine3's own YOLO path (full-resolution instance masks); 2% of test sheets score below 0.5 Dice. LeafMachine3's paper-removal follow-up lifts test Dice from 0.919 to 0.948, because it deletes the mounting paper the polygon masks enclose. Validation during training at the best epoch (instance metrics against the same machine-generated polygons): box mAP50 0.864, mask mAP50 0.860, mask mAP50-95 0.725. Polygon masks tend to fill paper enclosed by stems and branches, which keeps more of the sheet than the pixel-wise models (see Examples).

Examples

Background removal on the same sheets by this model (YOLO26x-seg) and by the other LeafMachine3 specimen segmenters trained on the same data, for comparison. Black marks what each model removed; the percentage is the share of the sheet kept. Raw model masks, before LeafMachine3's paper-removal follow-up. File names give each sheet's dataset split. Panels 1 to 12 are a standing comparison set that includes deliberately hard sheets (several from the training split); panels 13 to 20 are random held-out test sheets.

Use in LeafMachine3

Supported from the LM3 release that adds model keys to the specimen_segmenter stage (version TBD). The stage then runs this model with its own training-time input (1280 letterbox) and joins the instance masks into one specimen mask before paper removal. Install and select it:

lm3 models install --model specimen_segmenter=yolo26x_seg_1280
modules:
  specimen_segmenter:
    model: { key: "yolo26x_seg_1280", path: "models/specimen_segmenter/yolo26x_seg_1280/model.onnx", format: "onnx" }
    yolo: { conf: 0.25, iou: 0.5, max_det: 300 }
    paperclean: true
from huggingface_hub import hf_hub_download
path = hf_hub_download("phyloforfun/lm3_specimen_segmenter__yolo26x_seg_1280", "onnx/model.onnx")

Citation

Weaver, W. N. (2026) LeafMachine3. https://leafmachine.org

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · ultralytics

Нельзя запустить

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
a990ed8

0 моделей