Giter Site home page Giter Site logo

ad3dmil's Introduction

Attention Based Deep 3D Multiple Instance Learning

Prerequisites:

  • Python3
  • PyTorch ==1.4.0 (with suitable CUDA and CuDNN version)
  • torchvision == 0.5.0
  • Numpy
  • argparse
  • PIL
  • tqdm
  • SimpleITK
  • cv2
  • skimage
  • scipy
  • pydicom

Dataset:

You need to provide the text lists of training, validation, and testing raw 3D CT files in "./dataset".

Training:

  1. Segmentation of lung masks: preprocess/seg.py for binary classification and preprocess/seg-multi-class.py for multi-class classification;
  2. Training AD3D-MIL models: train.py for binary classification and train-mc.py for multi-class classification;
  3. Testing: test.py for binary classification and test-mc.py for multi-class classification;

Note: You may modify the path or parameters in the corresponding locations.

Citation:

If you use this code for your research, please consider citing:

@ARTICLE{9098062, author={Z. {Han} and B. {Wei} and Y. {Hong} and T. {Li} and J. {Cong} and X. {Zhu} and H. {Wei} and W. {Zhang}}, journal={IEEE Transactions on Medical Imaging}, title={Accurate Screening of COVID-19 Using Attention-Based Deep 3D Multiple Instance Learning}, year={2020}, volume={39}, number={8}, pages={2584-2594},}

Contact

If you have any problem about our code, feel free to contact [email protected].

ad3dmil's People

Contributors

zhyhan 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.