Skip to content

Instantly share code, notes, and snippets.

View Entersjkhdfkjdhfksjf's full-sized avatar

Somethong Entersjkhdfkjdhfksjf

View GitHub Profile
@aabobakr
aabobakr / extract_cifar.py
Created June 3, 2018 15:30
extract and save PNG images from CIFAR10/100 dataset
from __future__ import print_function
import numpy as np
import cPickle
import cv2
import os
def load_cifar_pickle(path, file):
f = open(os.path.join(path, file), 'rb')
dict = cPickle.load(f)
images = dict['data']