Skip to content

gesource/convert_emnist_data_to_imagefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

convert_emnist_data_to_imagefile

emnistのデータをpng画像に変換して保存する

Description

emnistのファイルを読み込んでpng画像に変換します。

emnistの画像の向きがおかしかったので、修正してから出力しています。

Usage

引数に画像ファイル、ラベルファイル、作成した画像ファイルを保存するディレクトリを指定して、parse_mnist.pyを実行します。

python parse_emnist.py --image=emnist-mnist-train-images-idx3-ubyte --label=emnist-mnist-train-labels-idx1-ubyte --dir=images

引数dirで指定したディレクトリが作成され、その中にラベルごとのディレクトリが作成されます。 画像ファイルはラベルのディレクトリ内に作成されます。

Requirement

Python 3.6.7で作成しました。

About

emnistのデータをpng画像に変換して保存する

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages