from __future__ import print_function
import matplotlib.pyplot as pyplot
import PIL.Image as Image
import pickle
import numpy as np
import random
import os,re
def unpickle(file):
# data:a 10000x3072 numpy array of uint8s. Each row of the array stores a 32x32 colour image.
# The first 1024 entries contain the red channel values, the next 1024 the green,
将当前目录下cifar-10-batches-py转换成train图片和test图片,并同时生成train.txt 和 test.txt
最新推荐文章于 2024-06-27 10:55:55 发布