Skip to content

Instantly share code, notes, and snippets.

View skypather's full-sized avatar

skypather skypather

View GitHub Profile
@fukuroder
fukuroder / mnist_save_png.py
Last active April 6, 2022 09:20
Save MNIST data as PNG.
import os
import cv2
import numpy as np
train_image = 'train-images-idx3-ubyte'
train_label = 'train-labels-idx1-ubyte'
test_image = 't10k-images-idx3-ubyte'
test_label = 't10k-labels-idx1-ubyte'
for f in [train_image, train_label, test_image, test_label]: