Synthetic skin lesion image generation using GANs

版本 1.01 (597.9 MB) 作者: Oge Marques
Example of how to use MATLAB to generate synthetic images of skin lesions.
181.0 次下载
更新时间 2021/7/29

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.

引用格式

Oge Marques (2024). Synthetic skin lesion image generation using GANs (https://github.com/ogemarques/gan-skin-matlab/releases/tag/1.01), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.01

See release notes for this release on GitHub: https://github.com/ogemarques/gan-skin-matlab/releases/tag/1.01

1.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库