Views
No views yet
pip install colipri1>>> from colipri import load_sample_ct
2>>> image = load_sample_ct()
3>>> image
4ScalarImage(shape: (1, 512, 512, 139); spacing: (0.76, 0.76, 2.50); orientation: LPS+; dtype: torch.IntTensor; memory: 139.0 MiB)
1>>> from colipri import get_model
2>>> from colipri import get_processor
3>>> model = get_model().cuda()
4>>> processor = get_processor()1>>> from colipri import ZeroShotImageClassificationPipeline
2>>> pipeline = ZeroShotImageClassificationPipeline(model, processor)
3>>> pipeline(image, ["No lung nodules present", "Lung nodules present"])
4[
5 {'score': 0.0002, 'label': 'No lung nodules present'},
6 {'score': 0.9998, 'label': 'Lung nodules present'}
7]1>>> import torch
2>>> preprocessed_images = processor.process_images(image)
3>>> preprocessed_images[0]
4ScalarImage(shape: (1, 192, 192, 192); spacing: (2.00, 2.00, 2.00); orientation: SAR+; dtype: torch.FloatTensor; memory: 27.0 MiB)
5>>> images_batch = processor.to_images_batch(preprocessed_images)
6images_batch.shape
7torch.Size([1, 1, 192, 192, 192])
8>>> with torch.no_grad():
9... patch_embeddings = model.encode_image(images_batch)
10>>> patch_embeddings.shape
11torch.Size([1, 768, 24, 24, 24])
12>>> with torch.no_grad():
13... pooled_embeddings = model.encode_image(images_batch, pool=True, project=True)
14>>> pooled_embeddings.shape
15torch.Size([1, 768])| Stage | Node type | Num. nodes | GPU type | GPUs per node |
|---|---|---|---|---|
| Pre-training | Standard_NC96ads_A100_v4 | 1 | NVIDIA A100 (80 GB) | 4 |
| Evaluation | Standard_NC24ads_A100_v4 | 1 | NVIDIA A100 (80 GB) | 1 |
nifti-zarr-py for data loading, and nnU-Net for segmentation evaluation.1@misc{
2 wald2026_colipri,
3 title={Comprehensive language-image pre-training for 3D medical image understanding},
4 author={Tassilo Wald and Ibrahim Ethem Hamamci and Yuan Gao and Sam Bond-Taylor and Harshita Sharma and Maximilian Ilse and Cynthia Lo and Olesya Melnichenko and Anton Schwaighofer and Noel C. F. Codella and Maria Teodora Wetscherek and Klaus H. Maier-Hein and Panagiotis Korfiatis and Valentina Salvatelli and Javier Alvarez-Valle and P{\'e}rez-Garc{\'i}a},
5 year={2026},
6 eprint={2510.15042},
7 archivePrefix={arXiv},
8 primaryClass={cs.CV},
9 url={https://arxiv.org/abs/2510.15042},
10}Wald, T., Hamamci, I. E., Gao, Y., Bond-Taylor, S., Sharma, H., Ilse, M., Lo, C., Melnichenko, O., Schwaighofer, A., Codella, N. C. F., Wetscherek, M. T., Maier-Hein, K. H., Korfiatis, P., Salvatelli, V., Alvarez-Valle, J., & Pérez-García, F. (2026). Comprehensive language-image pre-training for 3D medical image understanding. arXiv. https://doi.org/10.48550/ARXIV.2510.15042
fperezgarcia@microsoft.com).