Repository navigation
Releases
Releases · mishel-0/omnia-sdk
omnia-sdk v1.0.0
Whole-slide image container for PyTorch training. Removes openslide's
JPEG-2000 decode from the training loop.
Install
pip install https://github.com/mishel-0/omnia-sdk/releases/download/v1.0.0/omnia_sdk-1.0.0-py3-none-any.whl
omnia trialFree 60-day evaluation, no account or email required.
Convert
import omnia_sdk
omnia_sdk.convert("slide.svs") # -> slide.omnia
omnia_sdk.convert("slides/", "out/") # a whole cohortMeasured on a Colab Tesla T4
Public 178 MB Aperio slide (46,000 x 32,914 px), ResNet-18, batch 64,
1,485 tiles/epoch, 4 epochs, epoch 1 discarded:
| Config | .svs |
.omnia |
End-to-end |
|---|---|---|---|
| fp32 | 18.91s | 5.17s | 3.66x |
| AMP + channels_last | 20.20s | 2.60s | 7.76x |
Data feeding alone: 35.2x. Lossless — level-0 tiles are byte-identical to
openslide, verified against 15 random tiles with a max pixel difference of 0.
Note the .svs column: mixed precision made it slower, because a pipeline
that is 97.6% JPEG-2000 decode pays autocast overhead with no compute to
accelerate. Optimising your model widens the gap.
Known limits
cache_mode="ram"holds decoded tiles: roughly 343 MB per slide at
--min-level 1. Use"mmap"past a few dozen slides.- Uncached random tile access is slower than openslide (0.9x); the speedup
comes from preloading or sequential access. - The licence check ships inside the wheel and can be bypassed. It marks the
evaluation window; it is not access control.