/ Модель

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

Лицензия
Своя лицензия
Базовая модель
lmd-vitl-p8-simmim-lvd
Опубликована
6 ноя 2026

lmd-vitl-p8-cellmap-lvd

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

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

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

Модель размечает объёмные изображения FIB-SEM, присваивая вокселям классы органелл и других структур из схемы CellMap.

ai-hhmi разработала модель сегментации органелл в объёмных данных электронной микроскопии. Это дообученный на задаче сегментации энкодер DINOv3 ViT-L с декодером UNETR: энкодер содержит 303 млн параметров, декодер — 1,85 млн. Модель принимает одноканальный объём FIB-SEM и выдаёт 75 каналов оценок для классов схемы CellMap; для получения метки каждого вокселя выбирают класс с наибольшей оценкой.

Модель предназначена для разметки клеточных структур и органелл в объёмах с исходным разрешением вокселей 2–8 нм. Она обучена на 226 размеченных фрагментах из 22 объёмов CellMap; использовались 38 из 53 классов-листьев. В README приведены результаты проверки на 43 фрагментах, включая метрики IoU для классов бенчмарка.

Для входа требуется один канал, оси в порядке x, y, z, интенсивности в диапазоне [0, 1] и размеры сторон, кратные 8. Авторы проверяли модель на данных с разрешением 2, 4 и 8 нм и окнами 256³; другие разрешения и размеры окон не проверялись. Для работы нужны PyTorch, safetensors, huggingface_hub и код mia-train указанного коммита. Лицензия в метаданных обозначена как other, поэтому условия использования следует сверить с карточкой репозитория.

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

  • сегментация органелл в объёмах электронной микроскопии
  • разметка клеточных структур в данных FIB-SEM
  • получение воксельных меток для бенчмарка CellMap

Ограничения

Модель проверена на входах с собственным разрешением данных CellMap 2–8 нм, одним каналом и размерами сторон, кратными 8; другие разрешения не тестировались. В обучающих данных представлены 38 из 53 классов-листьев, а составные классы не были непосредственными целями обучения.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

lmd-vitl-p8-cellmap-lvd

Organelle segmentation model for volumetric EM data. It has one output channel per class of the CellMap Segmentation Challenge's label scheme for a total of 75 output channels, where channel k corresponds to the CellMap class id k (see below for a list of all organelle classes and their indices). The encoder is ai-hhmi/lmd-vitl-p8-simmim-lvd (DINOv3 LVD-1689M, then SimMIM on LMD). We fine-tuned it end to end with a UNETR decoder on 226 annotated crops from 22 CellMap volumes, each at its native voxel size (2 to 8 nm). This model holds the step-15,000 checkpoint of a 25k-step run.

ModelStarts fromTraining
ai-hhmi/lmd-vitl-p8-simmim-lvdDINOv3 ViT-L/16, LVD-1689MSimMIM on LMD, 100k steps
ai-hhmi/lmd-vitl-p8-simmim-scratchrandomSimMIM on LMD, 100k steps
ai-hhmi/lmd-vitl-p8-affinity-lvdlmd-vitl-p8-simmim-lvdneuron affinities, 100k steps
ai-hhmi/lmd-vitl-p8-affinity-scratchlmd-vitl-p8-simmim-scratchneuron affinities, 75k steps
ai-hhmi/lmd-vitl-p8-cellmap-lvd (this one)lmd-vitl-p8-simmim-lvdCellMap organelle classes, 15k steps

Use

import json
import sys
from pathlib import Path

import torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file

sys.path.insert(0, "mia-train/src")  # git clone https://github.com/AI-HHMI/mia-train && git -C mia-train checkout 4e71956
from layers.common.dense_heads import UNETRHead
from models.dinov3_vit3d import DinoVisionTransformer3D


class SemanticNet(torch.nn.Module):
    """(B, 1, X, Y, Z) image in [0, 1] -> (B, 75, X, Y, Z) logits; channel k = CellMap class id k."""

    def __init__(self, config):
        super().__init__()
        self.encoder = DinoVisionTransformer3D(**config["model"]["kwargs"])
        self.decoder_out = UNETRHead(**config["head"]["kwargs"])
        self.skip_layers = config["skip_layers"]

    def forward(self, x):
        maps = self.encoder.get_intermediate_layers(x, n=self.skip_layers, reshape=True)
        return self.decoder_out(list(maps), x)


root = Path(snapshot_download("ai-hhmi/lmd-vitl-p8-cellmap-lvd"))
config = json.loads((root / "config.json").read_text())
net = SemanticNet(config)
net.load_state_dict(load_file(root / "model.safetensors"))
names = [c["name"] for c in config["classes"]]  # names[k] = CellMap class with id k, e.g. names[4] = "mito_lum"

device = "cuda" if torch.cuda.is_available() else "cpu"
net = net.to(device).eval()

# (batch, channel, x, y, z): the data's own voxel size (see Input), intensities in [0, 1], every side a multiple of 8
x = torch.rand(1, 1, 128, 128, 128, device=device)
with torch.no_grad(), torch.autocast(device, dtype=torch.bfloat16, enabled=device == "cuda"):
    logits = net(x)  # (1, 75, 128, 128, 128)
labels = logits.float().argmax(dim=1)  # CellMap class id per voxel
mito = torch.isin(labels, torch.tensor(config["classes"][50]["members"], device=device))  # mito = ids 3, 4, 5
print(tuple(labels.shape), names[50], config["classes"][50]["members"])

Requirements: PyTorch (we used 2.13), NumPy, safetensors, huggingface_hub, and the model code from mia-train at commit 4e71956. Put mia-train/src on the path as above rather than installing mia-train. Its top-level packages have generic names (models, layers, utils, distributed, data), and they shadow packages of the same name, such as Dask's distributed.

  • Outputs. The network gives 75 logits per voxel, and channel k is CellMap class id k. The table under Classes and config["classes"] name every channel. logits.argmax(1) gives each voxel's CellMap id.
  • Which channels the model uses. The training targets were CellMap's leaf classes, and 38 of its 53 leaf classes occur in the training crops. On our 43 test crops the argmax chose 36 channels, all of them leaf classes. It never chose channel 0 (unannotated, ignored in training), a composite channel, or a leaf class missing from the training crops.
  • Composite classes. A composite class such as mito (mito_mem ∪ mito_lum ∪ mito_ribo) is a union of leaf classes; config["classes"][k]["members"] lists its leaves. To get one, take the union of its leaves' labels, as the snippet does for mito. The composite channels themselves were never a training target.
  • Weights. The file holds the encoder under encoder. and the decoder under decoder_out., so net.encoder can also start a different head.
  • Inside mia-train. To use the model with mia-train's own trainer or predict.py, build SemanticSegmentation from config["algorithm"] and load the file with safetensors.torch.load_model. That function copes with the encoder's two names in that class. This route needs mia-train's own dependencies (its pyproject.toml).

Whole volumes

To score our benchmark, we predicted each test crop at its dataset's native voxel size, in 256³ windows at a stride of 128 voxels under bf16 autocast. We mapped each window's logits to softmax probabilities, averaged overlapping windows with weights that rise linearly from a window's faces to its center, and took the argmax (mia-train's predict.py --argmax).

Input

  • One channel, with axes ordered (x, y, z). Arrays stored (z, y, x), as OME-Zarr and N5 volumes usually are, need array.transpose(2, 1, 0).
  • The data's own voxel size, not resampled. Training and our evaluation read each CellMap dataset at its native voxel size: 2 nm isotropic, 4 × 4 × 3.24–5.24 nm (x × y × z) or 8 nm isotropic. We did not test other voxel sizes.
  • Intensities in [0, 1]: 8-bit FIB-SEM divided by 255, as CellMap publishes it (membranes dark). Every training and test volume was 8-bit, and none was rescaled otherwise.
  • Every side a multiple of 8 voxels. Training and our evaluation used 256³ windows. The model runs at other sizes, but we did not test them.

Classes

Channel k is CellMap class id k (classes.csv of the CellMap Segmentation Challenge, plus 0 for unannotated voxels). Columns:

  • Kind. A leaf class, or a composite class (the union of the leaves listed).
  • Training crops. How many of the 226 training crops contain the class in their labels, counted on CellMap's label arrays at their own resolution. For a composite class, the count covers crops annotated only at the composite level.
  • Test voxels predicted. The class's share of all voxels in our 43 test predictions.
  • Test IoU. Given for the 48 classes the benchmark scores (CellMap's scored classes). Composite classes are scored as the union of their leaves' predictions.
ChannelClassDescriptionKindTraining cropsTest voxels predictedTest IoU
0unannotatedunannotated or unknown voxels (ignored in training)ignored—0
1ecsextracellular spaceleaf11333.79%0.945
2pmplasma membraneleaf892.10%0.370
3mito_memmitochondrial membraneleaf994.11%0.666
4mito_lummitochondrial lumenleaf994.53%0.830
5mito_ribomitochondrial ribosomeleaf470.01%0.373
6golgi_memGolgi membraneleaf150.15%0.333
7golgi_lumGolgi lumenleaf150.17%0.531
8ves_memvesicle membraneleaf1320.11%0.250
9ves_lumvesicle lumenleaf1320.03%0.246
10endo_memendosome membraneleaf1250.34%0.326
11endo_lumendosome lumenleaf1240.45%0.638
12lyso_memlysosome membraneleaf500.09%0.246
13lyso_lumlysosome lumenleaf500.16%0.317
14ld_memlipid droplet membraneleaf200.08%0.322
15ld_lumlipid droplet lumenleaf200.46%0.847
16er_memendoplasmic reticulum membraneleaf1363.66%0.419
17er_lumendoplasmic reticulum lumenleaf1362.84%0.560
18eres_memendoplasmic reticulum exit site membraneleaf250.02%0.246
19eres_lumendoplasmic reticulum exit site lumenleaf25<0.01%0.261
20ne_memnuclear envelope membraneleaf330.26%0.355
21ne_lumnuclear envelope lumenleaf320.23%0.471
22np_outnuclear pore outleaf300.02%0.167
23np_innuclear pore inleaf30<0.01%0.280
24hchromheterochromatinleaf301.45%0.737
25nhchromnucleolus-associated heterochromatinleaf10.03%
26echromeuchromatinleaf260.08%0.004
27nechromnucleolus-associated euchromatinleaf20
28nucplnucleoplasmleaf323.61%0.874
29nucleonucleolusleaf10.04%
30mt_outmicrotubule outleaf560.09%0.193
31centcentrosomeleaf00
32cent_dappcentrosome distal appendageleaf2<0.01%
33cent_sdappcentrosome subdistal appendageleaf2<0.01%
34riboribosomesleaf00
35cytocytosolleaf14040.25%0.900
36mt_inmicrotubule inleaf560.03%0.215
37nucnucleusunion of 20, 21, 22, 23, 24, 25, 26, 27, 28, 293500.961
38vimvimentinleaf00
39glycoglycogenleaf00
40golgiGolgiunion of 6, 7000.633
41vesvesicleunion of 8, 9000.366
42endoendosomeunion of 10, 11000.639
43lysolysosomeunion of 12, 13000.338
44ldlipid dropletunion of 14, 15700.835
45rbcred blood cellsleaf00
46eresendoplasmic reticulum exit siteunion of 18, 19000.368
47perox_memperoxisome membraneleaf240.38%0.227
48perox_lumperoxisome lumenleaf240.33%0.739
49peroxperoxisomeunion of 47, 481200.645
50mitomitochondriaunion of 3, 4, 51300.945
51erendoplasmic reticulumunion of 16, 17, 18, 19, 20, 21, 22, 23000.759
52nenuclear envelopeunion of 20, 21, 22, 23000.683
53npnuclear poreunion of 22, 23000.371
54chromchromatinunion of 24, 25, 26, 27000.740
55mtmicrotubuleunion of 30, 36000.316
56isg_meminsulin secretory granule membraneleaf00
57isg_luminsulin secretory granule lumenleaf00
58isg_insinsulin secretory granule insulinleaf00
59isginsulin secretory granuleunion of 56, 57, 5800
60cellcellunion of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 47, 48, 56, 57, 58, 61, 62000.980
61actinactinleaf00
62tbart-barleaf10
63bmbasement membraneleaf70.10%
64er_mem_allendoplasmic reticulum membrane collectiveunion of 16, 18, 20000.416
65ne_mem_allnuclear envelope membrane collectiveunion of 20, 22, 23000.393
66cent_allcentrosome collectiveunion of 31, 32, 3300
67chloroplast_memchloroplast membraneleaf00
68chloroplast_lumchloroplast lumenleaf00
69chloroplast_sgchloroplast starch granuleleaf00
70chloroplastchloroplastunion of 67, 68, 6900
71vacuole_memvacuole membraneleaf00
72vacuole_lumvacuole lumenleaf00
73vacuolevacuoleunion of 71, 7200
74plasmodesmataplasmodesmataleaf00

Model details

  • Encoder: as in lmd-vitl-p8-simmim-lvd (DINOv3 ViT-L, 8³-voxel patches, 303 M parameters).
  • Decoder: UNETR, 1.85 M parameters. It reads blocks 8, 16 and 24 (skip_layers = [7, 15, 23], 0-based) and the raw image. It upsamples three times by 2, with 64, 32 and 16 channels at strides 4, 2 and 1, and ends in 75 output channels.
  • model.safetensors: fp32, 1.22 GB.
  • config.json: the constructor arguments of the encoder (model) and the decoder (head), skip_layers, classes (all 75 channels, as in the table), mia-train's algorithm settings, the input conventions and the source training run.

Training

  • Initialization. Encoder from lmd-vitl-p8-simmim-lvd (step 100k); decoder random.
  • Data. 226 annotated crops from 22 CellMap FIB-SEM datasets, each read at its dataset's native voxel size: 123 crops at 8 nm, 86 at 4 × 4 × 3.24–5.24 nm and 17 at 2 nm. They include cultured cells (COS-7, HeLa, Jurkat, macrophages, SUM159 and others) and tissues (mouse kidney, liver, heart and nucleus accumbens; fly mushroom body and ventral nerve cord; zebrafish heart). These are the fit split of our cellmap_organelle_semantic benchmark. Each training window was 256³ voxels, centered on a crop.
  • Labels. CellMap's per-voxel class ids. Training ignored voxels outside the crop and voxels labeled 0 (unannotated). Some crops are annotated only at the level of composite classes (nucleus, mitochondria, peroxisome, lipid droplet). There the loss rewarded the summed probability of the composite's leaf classes, and a crop with only composite labels was sampled a quarter as often as the others.
  • Loss. Cross-entropy, averaged within each window and then over windows, plus a soft Dice term at equal weight. The Dice term is computed per class over all windows of a batch and averaged over the 74 classes other than unannotated; voxels labeled only at the composite level are left out of it.
  • Optimization. A 25k-step run at a global batch of 8 on 8 GPUs; this checkpoint is from step 15,000. AdamW (β = 0.9, 0.95; weight decay 0.05, none on norms and biases). Learning rate 3e-4 after 3k warm-up steps, decaying linearly to 3e-7 at step 25k. Gradient clipping at 1.0, bf16 autocast. Augmentation: in-plane rotations, intensity scaling and shifts, noise, and dropped or shifted sections.

Evaluation

The test split of our cellmap_organelle_semantic benchmark has 43 completely annotated crops from 16 of the training datasets; no test crop overlaps a training crop. It scores the 48 classes of the CellMap Segmentation Challenge (31 leaf, 17 composite) on each crop's own label grid. The score is the mean IoU over classes, with each class's voxels pooled over all crops; unannotated voxels are ignored.

MetricTest
mean IoU (48 classes)0.506
mean Dice0.633
voxel accuracy0.900

Per-class IoU is in the Classes table, and the other models are on the leaderboard. We scored all five checkpoints of this run on the test split: steps 5k, 10k, 15k, 20k and 25k scored 0.312, 0.460, 0.506, 0.472 and 0.458. We release the best one, so 0.506 is a best-of-five on the test split. The benchmark's fit split is the training crops themselves, so it cannot choose a checkpoint.

A known weakness: the model labels some cytosol as mitochondrial membrane, mostly in mouse liver and kidney crops (this affects ~1.1% of cytosol voxels).

License

DINOv3 License (LICENSE.md). This model is a derivative of Meta's DINOv3 weights and code, so that agreement governs its use and redistribution. Publications that use the model must acknowledge DINOv3. The training crops come from the CellMap Segmentation Challenge, published under CC BY 4.0; please credit it as below.

References

  • O. Siméoni et al. DINOv3. arXiv:2508.10104, 2025.
  • Z. Xie et al. SimMIM: A Simple Framework for Masked Image Modeling. CVPR 2022.
  • A. Hatamizadeh et al. UNETR: Transformers for 3D Medical Image Segmentation. WACV 2022.
  • CellMap Project Team. CellMap Segmentation Challenge. Janelia Research Campus, 2024. doi:10.25378/janelia.28034561.
  • L. Heinrich et al. Whole-cell organelle segmentation in volume electron microscopy. Nature 599, 2021.

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

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

GPU в ailist

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

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

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
17e45df

0 моделей