This is a simple way to convert original mnist to TFRecord
for a geater effective.
Some packages is need
pip3 install tensorflow numpy opencv-python progressbar
- Need to download and unzip mnist by
python3 download_data.py
- Run the script to generate tfrecord.
python3 mnist2tfrecord.py
This contains several default options. -h
will show all infomation.
-
download_data.py
is directly cited from naturomics/CapsNet-Tensorflow -
mnist is a popular handwritten digits dataset.