Giter VIP home page Giter VIP logo

lilianmallardeau / skin-lesion-classification Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 10 KB

Skin lesion classification, using Keras and the ISIC 2020 dataset

Home Page: https://mallarde.iiens.net/NTNU/Image_processing_and_analysis_report.pdf

Python 56.37% Jupyter Notebook 41.87% Shell 1.76%
skin-cancer skin-cancer-detection skin-lesion-classification skin-lesion-segmentation skin-lesion isic-challenge isic-2020 keras efficientnet

skin-lesion-classification's Introduction

Skin lesion classification

Skin lesion binary classification using Keras and the ISIC 2020 dataset.

Setup the Python environment and download the dataset

All the required packages can be installed with pip:

pip install -r requirements.txt

It's better to use a virtual env to prevent version conflicts between packages.

Then you'll have to download the ISIC 2020 train dataset as well as the metadata as CSV files. This can be done automatically with the setup_dataset.sh script:

./setup_dataset.sh

How to train a model

./train.py [--remove-artifacts] [--segmentation] [--checkpoint-folder FOLDER] [--epochs EPOCHS] [--batch-size BATCH_SIZE]

Available options:

  • --remove-artifacts to perform artifacts removal with morphological closing
  • --segmentation to segment the images with the K-means algorithm
  • --checkpoint-folder folder to save model checkpoints and final model. Default is checkpoints/
  • --epochs maximum number of epochs to train for. Default is 300
  • --batch-size batch size to use for training. Default is 256
  • --notifier-prefix header to send in Telegram messages when sending training progress
  • --help, -h show available options

How make a prediction using a trained model

Pretrained models can be downloaded in the Releases page.

./test.py image model [--segment] [--remove-artifacts]

image must be the path to the image to evaluate
model must be the path of the saved Keras model

The output is the probability that the input image is malignant.


Project report

skin-lesion-classification's People

Contributors

lilianmallardeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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