Coder Social home page Coder Social logo

ibm_livercancer's Introduction

liver_cancer_project

Viable tumor segmentation in liver cancer histopathology Images.

Using Auto encoders to improve the liver cancer segmentation. Possibly as a submission to MICCAI 2019 challenge

Author: Mousumi Roy Date: 08.28.2019

This repository contains the network architectures, and the training and testing modules for segmentation of liver cancer images. Different architecture included

  1. HistoCAE: our designed model
  2. ResNet
  3. UNet

First install the required packages provided in reqirements.txt file.

File Descriptions in liver_cancer_project/LiverCancer_Segmentation/byClassification/HistoCAE/final_codes/

  • liverImages_main_10x_V3.py - contains code for reconstruction followed by classification, the dataset used is 10x resolution images.

  • liverImages_main_10x_V3_MSESSIMMAEloss.py - the similar like abouve with reconstruction loss as custom loss function defined as joint loss of MSE + SSIM + MAE

  • liverImages_main_bottleneck_withoutFlatten_MultiRes_FCV1.py - Multi resolution 10x, 20x an 5x dataset used for classification. FCV1 stans for the classifier architecture version1.

  • batchTest.py - To generate the prediction image by using the trained model for batch of test data and prediction result save in disc.

To train the model HistoCAE model go to the path liver_cancer_project/LiverCancer_Segmentation/byClassification/HistoCAE/final_codes/

python liverImages_main_10x_V3.py

For Resnet go to the Resnet folder

  • Put the images of training set into {PATH}/ResNet/train/{class_name}/
  • If you have testing set, put it into {PATH}/ResNet/test/
  • Modify the class name in resize.py

Execute the below command for Training

  • Set parameters
  • set number of layers for ResNet
  • set loading pretrain weights of ImageNet or not
  • set adding validation set into training set or not
python train.py --layers [50|101|152] --pretrain [0|1] --val [0|1]  

eg,

python train.py --pretrain 1 --val 1

For testing

python test.py --layers [50|101|152] --batch 1 --recover [0+]

eg,

python test.py --layers 101 --batch 1 --recover 50

For UNet: training

python train.py --data_path ./datasets --checkpoint_path ./checkpoints/

testing

python eval.py --data_path ./datasets/test/ --load_from_checkpoint ./checkpoints/model-7049  --batch_size 1

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.