Giter Site home page Giter Site logo

mcf-smsis's Introduction

MCF-SMSIS:Multi-tasking with complementary functions for stereo matching and surgical instrument segmentation

Renkai Wu, Changyu He, Pengchen Liang, Yinghao Liu, Yiqi Huang, Weiping Liu, Biao Shu, Panlong Xu, Qing Chang*

1. Shanghai University, Shanghai, China
2. Ruijin Hospital, Shanghai Jiao Tong University School of Medicine, Shanghai, China
3. Imperial College London, London, United Kingdom
4. Shanghai Microport Medbot (Group) Co.,Ltd., Shanghai, China

Demo.mp4

The manuscript is under review. We are providing validation codes to facilitate the review. We will continue to update our code and README.md.

How to run the code

Environment

  • NVIDIA GeForce RTX 4080 Laptop GPU (12GB)
  • Python 3.8
  • Pytorch 1.12

Install

Create a virtual environment and activate it.

conda create -n MCF python=3.8
conda activate MCF

Dependencies

conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch -c nvidia
pip install opencv-python
pip install scikit-image
pip install tensorboard
pip install matplotlib 
pip install tqdm
pip install timm==0.5.4

Data Preparation

The SCARED dataset should be obtained from the official website under a confidentiality agreement. The dataset also needs to be corrected and the correction toolkit is available at scared-toolkit.

Model weights for each stage

Validation and Testing

  • You can proceed to run the test_seg_depth.py and test_seg.py files to verify the parallax and segmentation performance of the model, respectively.
  • The test_only_depth.py file is needed to verify the model performance without combining the features in the segmentation and decoding part.
  • To output the parallax result plot, you can run the test_save_disp.py file and save the result to the test folder.
  • To output the segmentation results, run test_save_seg.py and save the results to the results folder.

Acknowledgements

Thank you for the help provided by these outstanding efforts.

mcf-smsis's People

Contributors

wurenkai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.