Skip to content

Repository files navigation

🧠 SurgeNetDINO: Towards Effective Surgical Representation Learning with DINO Models

This repository contains the official code and pretrained model weights for the paper:

“Towards Effective Surgical Representation Learning with DINO Models”
(Accepted for Medical Imaging with Deep Learning (MIDL) 2026)

Find the paper here!

⚙️ Requirements

  • Python 3.9+
  • torch
  • timm

🐍 Installation example using Conda

# Create a new conda environment with Python 3.9
conda create -n SurgeNetDINO python=3.9 -y

# Activate the environment
conda activate SurgeNetDINO

# Install PyTorch and timm
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
pip install timm

💾 Loading models

After installations, you can use load_weights.py to load the pretrained DINO models.

⬇️ Download the model weights here

Alternatively, you can download the model weights using the provided links below.

Model Variant Download
DINOv1 ViT-s Download
DINOv1 ViT-b Download
DINOv2 ViT-s Download
DINOv2 ViT-b Download
DINOv2 ViT-l Download
DINOv3 ViT-s Download
DINOv3 ViT-b Download
DINOv3 ViT-l Download

📄 Pretraining configurations

The pretraining configurations can be found in dinov1_configs, dinov2_configs, and dinov3_configs. Note that for dinov1, we provide a .sh file instead of a configuration file following the original implementation. For further pretraining instructions, please refer to the original implementations of DINO: DINOv1, DINOv2, and DINOv3.

🎯 Finetuning

  • Semantic segmentation: The code for finetuning the pretrained models on semantic segmentation can be found in segmentation_finetuning, which is based on EoMT. Additional Python packages are required, which can be installed with pip install -r segmentation_finetuning/requirements.txt.
  • Surgical phase recognition: For finetuning on surgical phase recognition, please refer to SurgPhaseBench.

📊 Main results

Dice score for semantic segmentation, accuracy (%) for surgical phase recognition, and online inference efficiency on a single NVIDIA H100 GPU (parameters of the segmentation models). Best results per DINO version are shown in bold.

DINOModelPretrainingSegmentation (Dice ↑)Phase recognition (Acc ↑)Efficiency
CholecSeg8kRAMIE-segAutoLaparoRAMIE-phaseParams (M)Seg. FPSPhase FPS
v1ViT-SImageNet0.660.5781.874.123222104
SurgeNetXL0.730.6285.377.4
ViT-BImageNet0.680.6181.175.49221389
SurgeNetXL0.730.6785.077.2
v2ViT-SLVD-142M0.700.6083.076.62322792
SurgeNetXL0.660.5984.576.0
ViT-BLVD-142M0.710.6785.377.49022475
SurgeNetXL0.750.7385.978.2
ViT-LLVD-142M0.630.7086.177.931112335
SurgeNetXL0.770.7984.180.8
v3ViT-SLVD-1689M0.730.6381.175.42315369
SurgeNetXL0.740.6982.274.4
ViT-BLVD-1689M0.710.6783.475.89214760
SurgeNetXL0.750.7383.376.3
ViT-LLVD-1689M0.760.7086.077.83149331
SurgeNetXL0.780.7486.478.0

📚 Citation

If you use these models or the dataset in your work, please cite our paper:

@inproceedings{
  jong2026towards,
  title={Towards Effective Surgical Representation Learning with {DINO} Models},
  author={Ronald L.P.D. de Jong and Yiping Li and Tim J. M. Jaspers and Romy C. van Jaarsveld and Gino M. Kuiper and Franco Badaloni and Richard van Hillegersberg and Jelle P. Ruurda and Fons van der Sommen and Josien P.W. Pluim and Marcel Breeuwer},
  booktitle={Medical Imaging with Deep Learning},
  year={2026},
  url={https://openreview.net/forum?id=6FoIDPKzRV}
}

📬 Contact

For questions or issues regarding this repository, please contact the corresponding author:

Ronald L.P.D. de Jong
Email: r.l.p.d.d.jong@tue.nl

⚖️ License

  • Code: MIT — see LICENSE (permissive; commercial use permitted).
  • Pretrained model weights: CC-BY-NC-SA — non-commercial share-alike. The weights and any derivative models that include these weights are NOT cleared for commercial use. See LICENSE_MODELS for details and the precise license text.

🙏 Acknowledgements

We would like to thank the authors and maintainers of SurgeNetXL and the original DINO repositories for making their work publicly available:

Their open-source contributions provided the foundation for our work on surgical representation learning.

About

[MIDL 2026] - Official repo for the paper: "SurgeNetDINO: Towards Effective Surgical Representation Learning with DINO Models""

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages