提示请使用tf.data来实现此功能,怎么搞

来源:3-1 TensorFlow结合mnist进行线性模型训练(1)

清泉888

2018-07-26 12:02

D:\Anaconda3\python.exe F:/Python/mnist_testdemo/mnist/regression.py

D:\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

WARNING:tensorflow:From F:/Python/mnist_testdemo/mnist/regression.py:4: 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\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\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.

Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.

Extracting MNIST_data\train-images-idx3-ubyte.gz

WARNING:tensorflow:From D:\Anaconda3\lib\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.


写回答 关注

5回答

  • 江魁
    2019-05-07 14:59:06

    这里报的是个警告,说这个mnist数据接口在后续版本里会删除掉。不影响正常使用的。

  • 星星_y
    2018-11-26 16:19:17

    多运行两次就可以了

  • sj8716643
    2018-09-06 15:13:31

    可以先把TensorFlow降级,弄到1.5左右应该可以。tf.data是相对新一些的API,或许是不兼容

  • qq_小飞侠_bruxJJ
    2018-09-03 17:13:52

    我的跟你的差不多下载数据集时一堆警告,不知道什么原因

  • Mr_Ricky
    2018-08-09 21:28:42

    首先看一下你的数据是否完全下载成功,怀疑是数据下载的问题

TensorFlow与Flask结合打造手写体数字识别

TensorFlow和flask结合识别自己的手写体数字

20428 学习 · 102 问题

查看课程

相似问题