The code is tested with python=3.8 and torch=1.10.0+cu111
git clone --recurse-submodules https://github.com/zhanbh1019/SurgicalMotion.git
cd SurgicalMotion/
conda create -n surgicalmotion python=3.8
conda activate surgicalmotion
pip install torch==1.10.0+cu111 torchvision==0.11.0+cu111 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install matplotlib tensorboard scipy opencv-python tqdm tensorboardX configargparse ipdb kornia imageio[ffmpeg]
We provide our data, including image, mask and annotation. The data structure is as follows:
├──data
├──sequence_name/
├──color/
├──00000.jpg
├──00001.jpg
.....
├──mask/
├──00000.png
├──00001.png
.....
├──Anotation
├──sequence_name.pkl
- Please refer to the preprocessing instructions for preparing input data for training SurgicalMotion.
- With processed input data, run the following command to start training:
You can view visualizations on tensorboard by running
python train.py --config configs/default.txt --data_dir {sequence_directory}tensorboard --logdir logs/.
python evaluation.py --config configs/default.txt --data_dir {sequence_directory}
Our work based on OmniMotion. We appreciate the authors of relevant repository and paper.
@article{zhan2024tracking,
title={Tracking Everything in Robotic-Assisted Surgery},
author={Zhan, Bohan and Zhao, Wang and Fang, Yi and Du, Bo and Vasconcelos, Francisco and Stoyanov, Danail and Elson, Daniel S and Huang, Baoru},
journal={arXiv preprint arXiv:2409.19821},
year={2024}
}
