zoukankan      html  css  js  c++  java
  • tensorflow 运行 python convolutional.py时

    Traceback (most recent call last):
    File "convolutional.py", line 326, in <module>
    tf.app.run()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
    sys.exit(main(sys.argv))
    File "convolutional.py", line 138, in main
    train_data = extract_data(train_data_filename, 60000)
    File "convolutional.py", line 85, in extract_data
    buf = bytestream.read(IMAGE_SIZE * IMAGE_SIZE * num_images * NUM_CHANNELS)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 268, in read
    self._read(readsize)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 315, in _read
    self._read_eof()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 354, in _read_eof
    hex(self.crc)))
    IOError: CRC check failed 0xd87082d != 0x6f522beL

    是由于数据集不完整,去官网下载 

    http://yann.lecun.com/exdb/mnist/

    然后复制到tensorflow minist下的data文件夹下覆盖

  • 相关阅读:
    程序员修炼之道:从小工到专家
    2020.12.16收获
    2020.12.15收获
    2020.12.14收获
    2020.12.13收获
    Android学习第二天——对Android的简单了解
    Java学习12.18
    考试加分项
    Java学习12.17
    Java建议
  • 原文地址:https://www.cnblogs.com/xqnq2007/p/6683958.html
Copyright © 2011-2022 走看看