Giter VIP home page Giter VIP logo

test-alexnet-nodule-detection's Introduction

AlexNet CNN Lung Cancer Nodules Detection

  • Brief: Directory involve CT Lung Nodule Detection Scripts, testing accuracy of LUNG NODULE DETECTION using AlexNet convolutional neural network.
  • Requirements:
    • Python3.6,Python2.7(execute caffe pyscript)
    • caffe-windows
    • Windows 10
    • GPU

1. Preparation

i. Data collection

1584874962787

ii. Python configuration

  • make sure python 3.6 is available
  • packages : pip install pydicom opencv-python scikit-image

iii. Caffe installation

2. Generate Training Set

i. Before images preprocess

  • please remove all .gitkeep files in this project before start your experiment
  • generate a pickle pointer-file with python3.7: python .\pyprocessing\loadpath.py
  • make sure the existence of \TCIA_METADATA\tcia-diagnosis-data-2012-04-20.csv

ii. Parenchymal templates generation&candidate nodules cropping

  • python .\pyprocessing\start.py

    (This process will take a long time)

iii. Results

  • candidate lung nodules and healthy tissues will categorized under .\TrainingSet
  • process files & images will saved under .\pyprocessing\imageBasket\LPT

3. AlexNet CNN Training

i. Generate category texts

  • execute python .\pyprocessing\label_generate.py

    (test.txt train.txt val.txt will be created for Caffe training)

  • copy images training set to caffe :xcopy .\TrainingSet .\microsoft-caffe\caffe\data\nodulesdetect /e /q

  • copy 3 text files test.txt, train.txt, val.txt under .\pyprocessing to .\microsoft-caffe\caffe\data\nodulesdetect\

ii. Generate Lmdb & mean files (Caffe)

  • go to the directory of Caffe, such as cd .\microsoft-caffe\caffe\

  • Lmdb validation set : Build\x64\Release\convert_imageset.exe --shuffle --resize_height=64 --resize_width=64 data\nodulesdetect\ data\nodulesdetect\val.txt data\nodulesdetect\val_lmdb

  • Lmdb training set : Build\x64\Release\convert_imageset.exe --shuffle --resize_height=64 --resize_width=64 data\nodulesdetect\ data\nodulesdetect\train.txt data\nodulesdetect\train_lmdb

  • mean binary file : Build\x64\Release\compute_image_mean.exe data\nodulesdetect\train_lmdb data\nodulesdetect\mean.binaryproto

iii. Training

  • adjust model parameters under .\microsoft-caffe\caffe\models\noduledetectmt2 (important)

  • start training : Build\x64\Release\caffe.exe train --solver=models\noduledetectmt2\solver.prototxt >log\alexnet_noduledetection_round1.log 2>&1

    (This step will take a long time)

4. Testing

  • make sure the existence of .\microsoft-caffe\caffe\data\nodulesdetect\labels.txt

  • set using of python 2.7

  • start testing : Under directory .\microsoft-caffe\caffe\ and executepython testresult.py

  • check result under .\microsoft-caffe\caffe\data\nodulesdetect\test_re.npy

  • analysis : Under directory .\microsoft-caffe\caffe\ and executepython testresult.py display

5. Other

i. Process of lung parenchyma segmentation

ii. RGB 3 channels Stacking

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.