Giter Site home page Giter Site logo

three-stage-curriculum-learning's Introduction

Three-stage-Curriculum-Training-for-Tumor-Segmentation

0. Introduction

This repository contains Pytorch code for the paper entitled with"A New Curriculum Learning Approach to Deep Network Based Liver Tumor Segmentation" . This paper was initially described in arXiv (https://arxiv.org/abs/1910.07895).

1. Getting Started

Clone the repo: https://github.com/Huiyu-Li/Three-stage-Curriculum-Learning.git

Requirements

python>=3.6
torch>=0.4.0
torchvision
csv
pandas
json
scipy
SimpleITK
medpy
numpy
time
shutil
sys
os

2. Data Prepare

You need to have downloaded at least the LiTS 2017 training dataset. First, you are supposed to make a dataset directory. Second, you may need to preprocess the data by https://github.com/Huiyu-Li/Preprocess-of-CT-data Third, change the file path in the hyperparameters part in the Main.py

3. Usage

To train the model:

• Stage 1:

Step1: split the data into training and valid dataset, respectively. LiTS_TumorNet_without_Source _on_wholeData>split_data.py Step2: Training

##########hyperparameters##########
if_test = False
if_resume = False# changed as True if you have saved model
##########hyperparameters##########

• Stage 2:

Step1: Extract tumor patches form the whole input GetTumorPathes>LiTSGetNegtiveTumorPatches.py and LiTSGetPositiveTumorPatches.py Step2: split the data into training and valid dataset, respectively. LiTS_TumorNet_without_Source_on_tumorPatches>split_datawithNegtive.py Step3: Training

##########hyperparameters##########
if_test = False
if_resume = True
##########hyperparameters##########

• Stage 3:

Just like the Stage 1.

##########hyperparameters##########
if_test = False
if_resume = True
##########hyperparameters##########

To Test and evaluate model:

Step1:

##########hyperparameters##########
if_test = True
if_resume = True
##########hyperparameters##########

Step2: LiTS_Evaluation>evaluator1.py

three-stage-curriculum-learning's People

Contributors

huiyu-li avatar

Stargazers

lucian avatar  avatar Xin avatar  avatar Tian ss git avatar  avatar  avatar IronMan avatar  avatar  avatar  avatar  avatar

Watchers

 avatar paper2code - bot avatar

three-stage-curriculum-learning's Issues

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.