百度盘下载
链接: https://pan.baidu.com/s/10PslqCXqKaZw9MmR-pJnFg 提取码: ftvr
尝试下载
数据集默认会从网上自动下载,但是下载失败后依然会创建存放目录MNIST_data
v@v:~/tutorials/python_tutorial/demo$ cat main.py
...
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
...
v@v:~/tutorials/python_tutorial/demo$ python3 main.py
...
v@v:~/tutorials/python_tutorial/demo$ ls
main.py MNIST_data tf19_saver.py
将下载后的数据拷贝到MNIST_data
v@v:~/tutorials/python_tutorial/demo$ cp /path/to/file/*.gz MNIST_data
v@v:~/tutorials/python_tutorial/demo$ ls MNIST_data/
t10k-images-idx3-ubyte.gz t10k-labels-idx1-ubyte.gz train-images-idx3-ubyte.gz train-labels-idx1-ubyte.gz
再次执行即可
v@v:~/tutorials/python_tutorial/demo$ python3 main.py
WARNING:tensorflow:From main.py:13: 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 /home/v/.local/lib/python3.5/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 /home/v/.local/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting MNIST_data/train-images-idx3-ubyte.gz
WARNING:tensorflow:From /home/v/.local/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting MNIST_data/train-labels-idx1-ubyte.gz
WARNING:tensorflow:From /home/v/.local/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.one_hot on tensors.
Extracting MNIST_data/t10k-images-idx3-ubyte.gz
Extracting MNIST_data/t10k-labels-idx1-ubyte.gz
WARNING:tensorflow:From /home/v/.local/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:290: DataSet.__init__ (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.
2018-11-19 19:04:06.837783: W tensorflow/core/framework/allocator.cc:113] Allocation of 100352000 exceeds 10% of system memory.
2018-11-19 19:04:07.072856: W tensorflow/core/framework/allocator.cc:113] Allocation of 50176000 exceeds 10% of system memory.
0.107
2018-11-19 19:04:21.330203: W tensorflow/core/framework/allocator.cc:113] Allocation of 100352000 exceeds 10% of system memory.
2018-11-19 19:04:21.558637: W tensorflow/core/framework/allocator.cc:113] Allocation of 50176000 exceeds 10% of system memory.
0.704
2018-11-19 19:04:35.773540: W tensorflow/core/framework/allocator.cc:113] Allocation of 100352000 exceeds 10% of system memory.
0.837
0.876
0.9
0.916
0.922
20.927
0.935
0.939
0.943
0.94
0.947
0.949
0.952
0.949
0.957
0.961
0.962
0.966