Conditional GAN and CNN classification with Fashion MNIST

Version 1.0.2 (5.12 MB) by Kenta
This demo shows how to classify fashion item data (fashion MNIST) and synthesize those images using conditional GAN. fashion MNISTの分類及び生成


Updated 14 May 2020

View License

This example shows how to classify fashion item images (fashion MNIST) and to train a conditional generative adversarial network (CGAN) to generate fashion item images.
This demo was created based on the Matlab official document entitled Train Conditional Generative Adversarial Network (CGAN) [1].
Conditinal Generative Adversarial Network (CGAN) was proposed in the paper [2]. This livescript was made with the references such as [3].
A open dataset called fashion MNIST was used in this demo [4]. A helper function to process fashion MNIST data was created in the official document [5].
This demo is a modified version of the file entitled 'Conditional GAN with MNIST' [6].

このデモでは、1)深層学習を用いた、fashion MNISTデータの分類や、2)conditional GAN (CGAN)を用いたfashion MNISTデータの生成を行います。ここでは、公式ドキュメント [1] を参考にしました。また、conditional GANの論文は [2]です。生成結果はサムネイルのgif画像になります。

[Key Words]
adversarial generative network, CGAN, classification, cnn, conditional GAN, deep learning, fashion MNIST, GAN, MNIST

[2] Mirza M, Osindero S. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784. 2014 Nov 6.
[3] 山下隆義、イラストで学ぶ ディープラーニング 改訂第2版、KS情報科学専門書、2018年
[4] Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. Han Xiao, Kashif Rasul, Roland Vollgraf. arXiv:1708.07747
[5] Matlab official document: Visualize High-Dimensional Data Using t-SNE
[6] Conditional GAN with MNIST (

Cite As

Kenta (2023). Conditional GAN and CNN classification with Fashion MNIST (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

title changed


description added