Giter Site home page Giter Site logo

ogemarques / gan-skin-matlab Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 595.03 MB

Example of how to use MATLAB to generate synthetic images of skin lesions.

License: MIT License

gan skin-cancer image-processing medical-image-processing medical-image-analysis dermatology matlab deep-learning deep-neural-networks generative-adversarial-network

gan-skin-matlab's Introduction

View Synthetic skin lesion image generation using GANs on File Exchange

Synthetic skin lesion image generation using GANs

This repository shows an example of how to use MATLAB to generate synthetic images of skin lesions.

The training data set consists of annotated images from the ISIC 2016 challenge, Task 3 (Lesion classification) data set, containing 900 dermoscopic lesion images in JPEG format1.

The code is based on an example using the flowers dataset available online.

Snapshot of the GAN after training. (L) generated images; (R) generator (blue) and discriminator (red) curves showing score (between 0 and 1, where 0.5 is best) for each iteration.
Examples of synthetically generated images.

Requirements

Suggested steps

  1. Download or clone the repository.
  2. Open MATLAB.
  3. Edit the contents of the imageFolder variable in the skin_lesion_gan.mlx file to reflect the path to your selected dataset.
  4. Run the skin_lesion_gan.mlx script and inspect results.

Additional remarks

  • You are encouraged to expand and adapt the example to your needs.
  • The choice of network architectures for both the generator and discriminator was inspired by the DCGAN.
  • The choice of hyperparameters (learning rate, mini-batch size, number of epochs, etc.) is merely illustrative. You are encouraged to (use Experiment Manager to) tweak those choices and find a better solution 2.

Notes

[1] This example uses a fairly small subset of images to make it easier to get started without having to worry about large downloads and long training times.

[2] See this for ideas and example code for using MATLAB Experiment Manager.

gan-skin-matlab's People

Contributors

ogemarques avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

codedancode

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.