LETT-NeXt
LETT-NeXt predicts 3D lesion masks from CT volumes and supplied RECIST markers. This release contains the submitted checkpoint, exported PyTorch inference weights, and a Linux AMD64 Docker image for the CVPR 2026 Foundation Models for Pan-cancer Segmentation in CT Images challenge. It is intended for research use.
Official source and reproducibility instructions
Load the PyTorch network
Start Python from the official LETT-NeXt GitHub checkout with the Hub dependencies.
uv run --extra hub python
from lett_next.hub import LETTNeXt
model = LETTNeXt.from_pretrained("Ahus-AIM/lett-next", strict=True)
The model takes a prepared float32 tensor shaped [N, 3, Z, Y, X] with CT
intensities, the RECIST line map, and the endpoint heatmap. It returns lesion
logits shaped [N, 1, Z, Y, X]. The checkpoint runner provides full CT-to-mask inference with RECIST preprocessing and AutoZoom.
The Hub weights were exported from the submitted checkpoint. Use
sha256sum -c WEIGHTS_SHA256SUMS to verify the checkpoint, weights, and config after downloading them.
Run full-volume prediction with the checkpoint
The original checkpoint.pt includes the normalization and crop settings used by
the official CPU inference code. From the LETT-NeXt checkout, download the
checkpoint and run inference on challenge-format .npz cases containing CT
volumes and RECIST annotations.
uv run --extra hub hf download Ahus-AIM/lett-next checkpoint.pt --local-dir results/hf-checkpoint
uv run --extra hub python validate_checkpoint.py \
--checkpoint results/hf-checkpoint/checkpoint.pt \
--inputs /path/to/recist-cases \
--outputs results/hf-predictions \
--output-format nii
The checkpoint runner applies the submitted threshold of 0.35 and adaptive AutoZoom and writes full-volume NIfTI masks.
Run the container
The archive contains a Linux AMD64 image tagged lett-next:latest. Use Docker on a Linux AMD64 host with 8 GB of memory available to the container.
Download lett-next.tar and SHA256SUMS into the same directory, then run:
sha256sum -c SHA256SUMS
docker load -i lett-next.tar
mkdir -p inputs outputs
Place one or more challenge-format .npz files containing CT volumes and RECIST markers in inputs/. Start with an empty outputs/ directory. The repository README links to the challenge data and describes how to obtain a validation case.
docker run --rm --network none --memory 8g \
-v "$PWD/inputs:/workspace/inputs:ro" \
-v "$PWD/outputs:/workspace/outputs" \
lett-next:latest
The container writes the predicted masks in NIfTI format to outputs/.
- Downloads last month
- -