Giter Club home page Giter Club logo

ct-red_cnn_tensorflow's Introduction

CT-RED_CNN_tensorflow

Low-Dose CT with a Residual Encoder-Decoder Convolutional Neural Network (RED-CNN)

  • RED_CNN

I/O (DICOM file -> .npy)

  • Input data Directory
    • DICOM file extension = ['.IMA', '.dcm']

$ os.path.join(dcm_path, patient_no, [LDCT_path|NDCT_path], '*.' + extension)

Network architecture

Network architecture

  • 10 layers (5 conv + 5 deconv)
  • shortcut
  • remove pooling operation
  • filter size : 96 * 9 + 1* 1(last layer)
  • kernel size : 5 * 5
  • stride : 1 (no padding)

Training detail

  • patch size : 55 * 55
  • augumentation(patch? whole? // patch...)
  • rotation(45 degrees)
  • flipping (vertical & horizontal)
  • scaling (0.5, 2)
  • learning rate : 10e-4 (slowly decreased down(?))
  • initializer : random Gaussian distribution (0, 0.01)
  • loss function : MSE
  • optimizer : Adam

Main file(main.py) Parameters

  • Directory
  • dcm_path : dicom file directory
  • LDCT_path : LDCT image folder name
  • NDCT_path : NDCT image folder name
  • test_patient_no : test patient id list(p_id1,p_id2...) (train patient id : (patient id list - test patient id list)
  • checkpoint_dir : save directory - trained model
  • test_npy_save_dir : save directory - test numpy file
  • pretrained_vgg : pretrained vggnet directory
  • Image info
  • patch_size : patch size
  • whole_size : whole size
  • img_channel : image channel
  • img_vmax : max value
  • img_vmin : min value
  • Train/Test
  • model : red_cnn, wgan_vgg, cyclegan (for image preprocessing)
  • phase : train | test
  • others
  • is_mayo : summary ROI sample1,2
  • save_freq : save a model every save_freq (iterations)
  • print_freq : print_freq (iterations)
  • continue_train : load the latest model: true, false
  • gpu_no : visible devices(gpu no)
  • Training detail
  • num_iter : iterations (default = 200000)
  • alpha : learning rate (default=1e-4)
  • batch_size : batch size (default=128)

Run

  • train

python main.py

  • test

python main.py --phase=test

ct-red_cnn_tensorflow's People

Contributors

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