Keqi Chen, Vinkle Srivastav, Armine Vardazaryan, Cindy Rolland, Didier Mutter, Nicolas Padoy
- Training and inference code for video anonymization in the 4D-OR dataset.
- Trained models on the 4D-OR dataset.
- Clone this repo, and we'll call the directory that you cloned as ${ROOT_DIR}.
- Install dependencies.
> conda create -n anonymization python=3.10
> conda activate anonymization
(anonymization)> conda install pytorch==2.5.1 torchvision==0.20.1 pytorch-cuda=11.8 -c pytorch -c nvidia
(anonymization)> pip install -r requirements.txt- Install Torchreid following deep-person-reid.
- Install Iter-Deformable-DETR following p-d-detr.
- Install MMPOSE following mmpose.
- Install DEIM following deim.
- Download the 4D-OR dataset and place it in
./data/as:
${ROOT_DIR}
|-- data
|-- 4D-OR
|-- export_holistic_take1_processed
|-- colorimage
- Run command:
python ./data/generate_img_dicts.pyDownload the trained models (P-D-DETR, Multi-View Association, and DEIM respectively) as follows for direct inference.
> wget https://s3.unistra.fr/camma_public/github/OR_anonymization/4dor_iter1.pth
> wget https://s3.unistra.fr/camma_public/github/OR_anonymization/4dor_iter1_mva.pth.tar
> wget https://s3.unistra.fr/camma_public/github/OR_anonymization/deim_hgnetv2_x_4dor.pthbash scripts/train_4dor.sh ../data/4D-OR/export_holistic_take1_processed ../data/4D-OR/detections/export_holistic_take1_processed.lmdb export_holistic_take1_processed 0
bash scripts/inference_4dor.sh ../data/4D-OR/export_holistic_take1_processed ../data/4D-OR export_holistic_take1_processed_iter1 0
If you use our code or models in your research, please cite with:
@article{chen2026self,
title={Self-Supervised Uncalibrated Multi-View Video Anonymization in the Operating Room},
author={Chen, Keqi and Srivastav, Vinkle and Vardazaryan, Armine and Rolland, Cindy and Mutter, Didier and Padoy, Nicolas},
journal={arXiv preprint arXiv:2602.02850},
year={2026}
}The project uses deep-person-reid, p-d-detr, mmpose, and deim. We thank the authors for releasing their codes.
This code and models are available for non-commercial scientific research purposes as defined in the CC BY-NC-SA 4.0. By downloading and using this code you agree to the terms in the LICENSE. Third-party codes are subject to their respective licenses.