ValueError: Layer conv2d_1 was called with an input that isn't a symbolic tensor. Received type: . Full input: [(600, 600, 3)]. All inputs to the layer should be tensors.


加載模型,也就是如下操作:


發現報錯:

經過反復查看代碼並運行,發現代碼中已經封裝好了模型,即函數中return model

也就意味着在if __name__ == '__main__':中直接將已經封裝好的模型賦予你要可視化的模型就好,

又或者是ValueError: Unexpectedly found an instance of type <class 'tuple'>. Expected a symbolic tensor instance.
這種錯誤也既有可能是上述原因


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



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