Instructions to use Tenbatsu2424/Manekko_PanCancerCT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tenbatsu2424/Manekko_PanCancerCT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Tenbatsu2424/Manekko_PanCancerCT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Tenbatsu2424/Manekko_PanCancerCT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
PC-Manekko
Paper · Training code · Model collection
PC-Manekko is a 3D encoder pretrained on 21,802 multi-anatomy CT volumes from PanCancerCT. It uses a Primus-S backbone with 68.4 million parameters, 12 transformer blocks, 6 attention heads, and 384-dimensional features. During pretraining, a frozen NeCo reference on DINOv2-R (ViT-S/14) processes axial, coronal, and sagittal slices. The student learns to match the fused patch features and global-to-local affinities.
Extract features
Install the dependencies from requirements.txt using the PyTorch build for your hardware. Load the encoder with Transformers and pass a preprocessed, intensity-normalized volume. For pretraining-style CT inputs, use the anatomy-specific clipping and standardization described in the paper supplement.
import numpy as np
import torch
from transformers import AutoModel
model = AutoModel.from_pretrained(
"Tenbatsu2424/Manekko_PanCancerCT", trust_remote_code=True
).eval()
volume = np.load("preprocessed_volume.npy", allow_pickle=False) # [D, H, W]
x = torch.from_numpy(volume).float()[None, None] # [B, 1, D, H, W]
with torch.inference_mode():
features = model.forward_features(x)
global_features = features["latent"]
spatial_features = features["patch_latent"]
patch_tokens = features["patch_tokens"]
Use a single input channel. Each spatial dimension must be divisible by 8, with at least two patches overall. Rectangular volumes are supported. The encoder preserves the input axis order and leaves resampling and intensity normalization to the caller.
| Output | Shape | Description |
|---|---|---|
latent |
[B, 384] |
Global volume embedding |
patch_latent |
[B, 384, D/8, H/8, W/8] |
Spatial feature grid |
patch_tokens |
[B, N, 384] |
Flattened grid with the last spatial axis varying fastest, where N = (D/8) × (H/8) × (W/8) |
Evaluation
| Regime | Mean foreground DSC |
|---|---|
| Frozen encoder | 66.3% |
| Full fine-tuning | 71.9% |
Scores average 15 brain MRI, body MRI, and CT segmentation datasets. The study used a UNETR decoder with nnU-Net preprocessing and trained for 150 epochs in both regimes. The released checkpoint contains the pretrained encoder. A segmentation task requires training a task-specific decoder. Paper, Table 2
Citation
@article{vaish2026manekko,
title = {Manekko: Training Small but Foundational 3D Medical Models by Mimicking Natural Vision Model Features},
author = {Vaish, Puru and Baumgartner, Michael and Heimann, Tobias and Wolterink, Jelmer M. and Brune, Christoph},
journal = {arXiv preprint arXiv:2611.37538},
year = {2026},
doi = {10.48550/arXiv.2611.37538}
}
- Downloads last month
- 108