Code Monkey home page Code Monkey logo

amrsegnet's Introduction

AMRSegNet:Adaptive Modality Recalibration Network for Lung Tumor Segmentation on Multi-modal MR Images

This is the Pytorch implementation of AMRSegNet for paper《Adaptive Modality Recalibration Network for Lung Tumor Segmentation on Multi-modal MR Images》.

Installation

  • Install pytorch with python 3.7, pytorch==1.4.0, torchvision==0.5.0, CUDA==10.1.
  • Python package requirement: SimpleITk, pydicom, tensorboardX
  • Clone this repository:
git clone https://github.com/Nicholasxin/AMRSegNet  
cd AMRSegNet  

Dataset

  • Our T2W-DWI MR dataset is private. For code implementation, the dataset for training and testing consist of T2W slices, DWI slices, label slices, which are all paired.

Training

  • In the folder of repository AMRSegNet, open terminal and run python train.py.
  • Note: adding --ngpu to alter to the number of GPUs, adding --batchSz to change the batch size, adding --nEpochs to set the number of training epochs.
  • For showing the training process on tensorboard, the folder runs will be created. The trained model will be saved in auto-created folder work.
  • To open the tensorboard, open terminal and run tensorboard --logdir runs.

Testing

  • run python train.py with --inference following the path of inference T2W data, --dwiinference following the path of inference DWI data, --target following the path of label of T2W data, --resume following the path of the best saved training model. All the added commands are requisite.

Note

  • 06/01/2021: code released

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.