Skip to content

ziyangwang007/CV-WSL-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CV-WSL-Robot

Exploring CNN and ViT for Weakly-Supervised Surgical Tool Segmentation

Demo Picture

Requirements

  • [Pytorch]
  • Some basic python packages such as Numpy, Scikit-image, SimpleITK, Scipy, Medpy ......

Datasets

In this project, we use MICCAI Robotic Instrument Segmentation Challenge 2017 Official Link.

Usage

  1. Clone the repo:
git clone https://github.com/ziyangwang007/CV-WSL-Robot.git
cd CV-WSL-Robot
  1. Download the pre-processed data

Download the pre-processed data and put the data in ../data/robotic. You can download the pre-processed dataset for Weakly-Supervised Learning study purpose, i.e. scribble annotation. Google Drive Google Drive Link, or Baidu Netdisk Baidu Netdisk Link with passcode: '8zf8'.

  1. (Optional) Generate Scribble Annotations

We generate scribble annotations via previous work code/scribbles_generator.py. Please kindly check the code, the input is the pixel-level ground truth, and the output is the scribble annotation.

  1. Train the model
cd code

python train_Ours_Weakly_Consistency_Robot_2D.py 

We provide some baseline methods as well.

Fully Supervised - CNN (UNet) -> Paper Link

python train_fully_supervised_2D

Fully Supervised - ViT (SwinUNet) -> Paper Link

python test_2D_fully_ViT
  1. Test the model
python test_2D_fully_ViT.py

or 

python test_2D_fully.py

or 

python test_2D_vit.py

Reference

TBC

About

Weakly Supervised Robotic Surgery Segmentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages