成功解决ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,103
成功解決ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,1034] and [100,1024]. for 'Assign_8' (op: 'Assign') with input shapes: [100,1034], [100,1024].
?
?
目錄
解決問題
解決思路
解決方法
?
?
?
?
解決問題
ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,1034] and [100,1024]. for 'Assign_8' (op: 'Assign') with input shapes: [100,1034], [100,1024].
?
?
?
解決思路
值錯誤:兩種形狀的維度1必須相等,但是是1034和1024。形狀為[100,1034]和[100,1024]。對于具有輸入形狀的'Assign_8' (op: 'Assign'):[100,1034],[100,1024]。
?
?
?
解決方法
讀入的h5文件本身錯誤,需要重新訓練得到最新的h5文件,然后導入讀取即可!
g.load_weights('models/DCGAN1123.h5')?
?
?
?
?
?
?
?
?
總結
以上是生活随笔為你收集整理的成功解决ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,103的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 成功解决 Exception: URL
- 下一篇: 成功解决RuntimeError: fi