[MNIST] Convert data to PNG for keras

Introduction

I think it is necessary to understand training data and test data. I created a tool (for Google Colab) to convert mnist data to PNG.

mnist_data2img The mnist_data2img tool is published on Github, and the environment construction procedure etc. are described in this README.md, so please refer to this.

Github : https://github.com/PoodleMaster/mnist_data2img

Google Colab: mnist_data2img.ipynb

Execution result

It is the conversion result from mnist data to png.

Conversion data storage location

The actual data is stored in the following folder of Google Drive.

【mnist_train_data】

/content/drive/My Drive/qiita_share/mnist_train_data/0                     ︙ /content/drive/My Drive/qiita_share/mnist_train_data/9

【mnist_test_data】

/content/drive/My Drive/qiita_share/mnist_test_data/0                     ︙ /content/drive/My Drive/qiita_share/mnist_test_data/9

Part of Train data (if 0)

download.png

Part of Train data (for 1)

download.png

Part of Train data (for 2)

download.png

Part of Train data (for 3)

download.png

Part of Train data (for 4)

download.png

Part of Train data (for 5)

download.png

Part of Train data (for 6)

download.png

Part of Train data (for 7)

download.png

Part of Train data (for 8)

download.png

Part of Train data (for 9)

download.png

that's all

Thank you for your hard work!

Recommended Posts

[MNIST] Convert data to PNG for keras
Convert the image data (png) at hand to a .pbm image
Convert xml format data to txt format data (yolov3)
Convert GFF3 to MSS for DDBJ submission
Convert psd file to png in Python
Convert Excel data to JSON with python
Use pandas to convert grid data to row-holding (?) Data
Convert FX 1-minute data to 5-minute data with Python
Convert PDF files to PNG files with GIMP
How to use "deque" for Python data
Convert HEIC files to PNG files with Python
Convert DICOM to PNG with Ascending and Descending
Convert data with shape (number of data, 1) to (number of data,) with numpy.
Convert PDF to image (JPEG / PNG) with Python
Convert to HSV
I tried to move GAN (mnist) with keras
[Python] Convert from DICOM to PNG or CSV
An introduction to statistical modeling for data analysis
How to use data analysis tools for beginners
[For recording] Keras image system Part 1: How to create your own data set?
How to convert SVG to PDF and PNG [Python]
Convert json format data to txt (using yolo)
Convert binary packages for windows to wheel format
I convert AWS JSON data to CSV like this
Procedure to load MNIST with python and output to png
How to convert Python # type for Python super beginners: str
[For beginners] How to study Python3 data analysis exam
How to convert horizontally held data to vertically held data with pandas
Convert Qiita articles to Jekyll post format for backup
I made a code to convert illustration2vec to keras model
Challenge image classification with TensorFlow2 + Keras 3 ~ Visualize MNIST data ~
Add convolution to MNIST
Convert 202003 to 2020-03 with pandas
Convert kanji to kana
Convert keras-yolo3 to onnx
Convert dict to array
Data set "Moving MNIST"
Convert json to excel
Looking for a data disk attached to Azure VM 3000 ri ……
Convert from Pandas DataFrame to System.Data.DataTable using Python for .NET
Made icrawler easier to use for machine learning data collection
How to implement 100 data science knocks for data science beginners (for windows10 Home)
How to convert Python # type for Python super beginners: int, float
Python code for writing CSV data to DSX object storage
For beginners, how to deal with common errors in keras
[Python] Introduction to graph creation using coronavirus data [For beginners]
Created a method to downsample for unbalanced data (for binary classification)
Introduction to Statistical Modeling for Data Analysis GLM Model Selection
Convert Excel file to text in Python for diff purposes
[tensorflow, keras, mnist] Take out n sheets for each label from the mnist data and create 10 * n sheets of data.