python-tensorflow下载mnist数据集(遇到的问题)
2019-04-10 17:12
489 查看
#运行会自动下载mnist数据集 mnist = input_data.read_data_sets("MNIST/", one_hot=True) ''' 但是存在一个问题: 原python文件里默认的下载地址是外网,没翻墙的话会一直下载不了 会提示: WARNING:tensorflow:From C:/Users/TongDist/Desktop/python_tensorflow/代码/5-1 mnist数据集.py:9: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version. Instructions for updating: Please use alternatives such as official/mnist/dataset.py from tensorflow/models. WARNING:tensorflow:From D:\Anaconda3\envs\py35\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version. Instructions for updating: Please write your own downloading logic. WARNING:tensorflow:From D:\Anaconda3\envs\py35\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py:252: _internal_retry.<locals>.wrap.<locals>.wrapped_fn (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version. Instructions for updating: Please use urllib or similar directly. 所以: 1、找到: 我在anaconda的base环境外又建了一个py35环境(直接用本地环境的话路径为: Anaconda3\Lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py) Anaconda3\envs\py35\Lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py 2、找到: DEFAULT_SOURCE_URL(我的是第38行) 后边网址改为:http://yann.lecun.com/exdb/mnist/ 3、保存,重新运行 '''
相关文章推荐
- 遇到代理问题时自动下载MNIST数据集的Python代码
- 求助Tensorflow下跑mnist手写体数据集遇到Cuda compute capability问题
- python脚本下载并解码MNIST数据遇到的问题
- 解决Tensorflow读取MNIST数据集时网络超时问题
- 【keras】解决 example 案例中 MNIST 数据集下载不了的问题
- winpython升级tensorflow遇到的小问题
- 4000 神经网络 tensorflow教程 2.2 下载MNIST 数据集 (自动版)
- 【keras】解决 example 案例中 MNIST 数据集下载不了的问题
- 【keras】解决 example 案例中 MNIST 数据集下载不了的问题
- TensorFlow mnist数据集路径 MNIST_data 数据下载问题
- 写个python脚本下载并解压 MNIST, CIFAR10, SVHN 数据集(2)
- python 安装包 如果遇到问题可以参考下面的网址下载whl文件安装
- tensorflow下数据集MNIST下载源代码
- 【keras】解决 example 案例中 MNIST 数据集下载不了的问题
- python3环境下 tensorflow环境中经常遇到'*' has type str, but expected one of: bytes问题的解决
- 写个python脚本下载并解压 MNIST 数据集(1)
- 写个python脚本下载并解压 MNIST, CIFAR10, SVHN 数据集(2)
- tensorflow 手动下载mnist数据集及报错的解决方法
- 【keras】解决 example 案例中 MNIST 数据集下载不了的问题
- 使用pip安装tensorflow 0.80,python 使用tensorflow 0.80遇到的问题及处理方法