win7 环境报错 File "C:/DCGAN/main.py", line 63, in main sample_dir=FLAGS.sample_dir) File "C:\DCGAN\model.py", line 74, in __init__ self.data_X, self.data_y = self.load_mnist()
为什么标题是尝试呢,因为结果并不理想,所以只能是尝试。 1、准备数据 (1)下载MNIST数据集:下载地址 train-images-idx3-ubyte.gz: training set images (9912422 bytes)train-labels-idx1-ubyte.gz: training set labels (28881 bytes)t10k-images-idx
一、DNN结构实现mnist手写数字图片 import osimport structimport numpy as npimport tensorflow as tf#数据加载函数def load_mnist(path, kind='train'):"""load mnist dateArgs:path: date pathkind: train or testReturns:imag