原文:Debug 路漫漫-10:AttributeError: 'Embedding' object has no attribute 'get_shape'

CNN的Embedding層報錯: 報錯:AttributeError: Embedding object has no attribute get shape 查了下是這個問題: https: stackoverflow.com questions attributeerror embedding object has no attribute get shape with tensorflow ...

2019-07-22 12:01 0 1152 推薦指數:

查看詳情

'NoneType' object has no attribute shape

使用cv2讀取圖片時,輸出圖片形狀大小時出現報錯“ 'NoneType' object has no attribute shape”,后來排查發現讀取圖片的返回值image為None, 這就說明圖片根本就沒有被讀取。 經過Google發現是imread不支持有中文路徑,改為英文路徑,此問題可解。 ...

Thu Apr 04 04:56:00 CST 2019 0 3102
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM