原文:AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'

conda環境中的Keras版本比例子程序中的版本高,因此沒有K.image data format 這個變量 用 K.image data format channels first 替換K.image dim ordering th 成功解決,前面K.image data format channels first 是相對於低版本的keras,后者是針對高版本的Keras,出現錯誤時候兩者互換 ...

2020-08-08 23:56 0 826 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM