1. 程式人生 > >tensorflow匯入mnist資料集出錯的解決辦法

tensorflow匯入mnist資料集出錯的解決辦法

from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)

這是官方文件給出的匯入程式碼,但我同很多人有一樣的問題,執行程式的時候發現並沒有講MNIST資料集匯入,so,在網上找了很多資料,最後找到了解決方法。

  • 先在你正在寫的專案下建立資料夾MNIST_data
  • 成功匯入資料集