YOLO26x for mitotic figure detection (ONNX)
ONNX export of an Ultralytics YOLO26x detector trained on MIDOG++ to find mitotic figures in H&E-stained histopathology images. It is made to run inside the browser (onnxruntime-web, WebGPU or WASM).
- Demo (runs entirely in your browser): https://nakamura196.github.io/midog-detect/
- Code (training, evaluation, export, web viewer): https://github.com/nakamura196/midog-detect
Research prototype. Not a medical device. Do not use it for diagnosis.
Files
| File | Size | Notes |
|---|---|---|
midog-yolo26x.onnx | 223 MB | float32 |
midog-yolo26x-fp16.onnx | 112 MB | float16 weights; the box decoding / top-300 selection after the last conv is kept in float32 (otherwise it fails to load). Used by the demo on WebGPU with shader-f16 |
midog-yolo26x.json | input size, class names, threshold |
- Input:
imagesfloat32[1, 3, 640, 640], RGB, 0–1 - Output:
[1, 300, 6]=x1, y1, x2, y2, score, class(NMS-free; just cut by score) - Classes:
0 = mitotic_figure,1 = imposter(non-mitotic look-alike) - Threshold: 0.39 (F1-optimal on the validation split)
Evaluation (MIDOG++ official test split, 111 slides / 10,668 tiles of 640 px)
| Metric (mitotic figure) | Value |
|---|---|
| mAP50 (box) | 0.867 |
| F1, detection within 7.5 µm of the ground-truth centre (MIDOG protocol) | 0.803 (P 0.783 / R 0.825) |
For comparison, YOLOv8x: mAP50 0.862 / F1 0.808, YOLO11x: 0.877 / 0.803 (same data and settings). The ONNX output matches the PyTorch model on a test slide (55 boxes, max confidence diff 0.0000 for fp32 and 0.0031 for fp16).
Training
- Data: MIDOG++ (Aubreville et al., Scientific Data 10, 484, 2023), 503 slides, 7 tumour types, human and canine. CC0.
- Split: official train/test; 15% of train slides per tumour type held out as validation (seed 0).
- Ultralytics 8.4.170, imgsz 640, up to 100 epochs with patience 50 (stopped at 90, best 40), A100 40GB.
License
The weights are derived from Ultralytics YOLO and are released under AGPL-3.0, as is the code. The MIDOG++ images and labels are CC0.
Citation
If you use the data, cite: Aubreville, M. et al. A comprehensive multi-domain dataset for mitotic figure detection. Scientific Data 10, 484 (2023). https://doi.org/10.1038/s41597-023-02327-4
Model by Satoru Nakamura (The University of Tokyo).