作者tiger0105 (tiger0105)
看板DataScience
標題[問題] tensorflow 新手請教
時間Tue Sep 4 14:50:22 2018
http://i.imgur.com/dBc7DOz.jpg
http://i.imgur.com/zN3YUyt.jpg
http://i.imgur.com/7FH3Ee9.jpg
http://i.imgur.com/7ghkuTy.jpg
http://i.imgur.com/IDJ4H6n.jpg
這是我現在在Jupyter notebook 的程式碼
跑到最後要訓練的時候都會有:
The kernel appears to have died. It will restart automatically.
然後就停掉了(自己的電腦沒有顯卡)
上網查好像是記憶體不夠的樣子
可是我覺得我程式好像也有錯...
希望各位前輩提點一下QQ
謝謝各位
-----
Sent from JPTT on my Asus ASUS_Z012DA.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.140.75.65
※ 文章網址: https://webptt.com/m.aspx?n=bbs/DataScience/M.1536043825.A.6F8.html
1F:推 st1009: 試看看不要用Jupyter使用普通的py跑吧(?09/04 15:12
2F:推 st1009: 查了一下,聽說要更新cuDNN然後重新下載tensorflow,您可09/04 15:16
3F:→ st1009: 以試看看把用到的東西都更新一下09/04 15:17
我剛剛去更新一下 Python 是 3.6 5
tensorflow 是 1.9.0
直接用 Python 跑出了:
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
和
Allocation of 9494102016 exceeds 10% of system memory.
的錯誤(?
用 import os
os.environ[’TF_MIN_LOG_LEVEL’]='2'
後就沒了
但是之後也是跑到訓練的地方就停止了..
※ 編輯: tiger0105 (223.140.75.65), 09/04/2018 16:38:46
※ 編輯: tiger0105 (223.140.75.65), 09/04/2018 16:41:36
4F:→ Mchord: AVX2那個是提示而已,第二個訊息說你記憶體不足09/04 19:37
5F:→ Mchord: 你看起來把5900多張224x224的圖一次讀進記憶體,這樣不太09/04 19:42
6F:→ Mchord: 合理,建議看看tf.data的API練習做batch09/04 19:42
忘記設張數了orz
謝謝各位前輩
現在可以跑了!
※ 編輯: tiger0105 (223.140.75.65), 09/04/2018 22:08:27