Code Monkey home page Code Monkey logo

segmentation-of-skin-lesion-using-dl's Introduction

Segmentation of skin lesion images using deep learning techniques

The paper used for this project is: Skin Lesion Segmentation: U-Nets versus Clustering, written by Bill S. Lin, Kevin Michael, Shivam Kalra, H.R. Tizhoosh.

Usage

To use this project:

  1. Install the requirements:
pip install -r requirements.txt
  1. Open the file preprocessing.py and follow the instructions in the docstring of the function build_training_set to create the data set (download images of ISIC challenge etc.). The data set is available here: https://challenge2018.isic-archive.com/task1/training/
  2. Run the file train.py to train a model. It will be saved in the saved_models folder.
  3. Run the file predict.py to predict some masks. The results will be displayed in the folder results/model_id. The model provided here has the id 2019-04-25_12-19-15.

Organization

  • preprocessing.py

In this file, we transform the RGB images into 5-channels images as indicated in the paper. We just take a size of 320 x 320 instead of 342 x 342.

  • data_generator.py

This file contains a class, DataGenerator, that allows us to manage the data set, which contains 5-channel images and binary masks.

  • train.py

This file contains the code to train our model. We did try to fully implement the U-Net or to use the library tf_unet but we focused on the segmentation_models library which yielded better results. Besides, this model takes a size divisible by 32!

  • predict.py

To predict a mask, see the last cell of the file to use your own images. The original images must be in the folder ISIC2018_Task1-2_Training_Input and the ground truth mask, if available, in the folder ISIC2018_Task1_Training_GroundTruth.

  • utils.py

This file contains some functions to save a model, to plot some results etc.

segmentation-of-skin-lesion-using-dl's People

Contributors

antoine-moulin avatar jvasso 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.