
在卷積神經網路模型訓練完存盤為h5檔案之后,再次讀取時報錯如下所示:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
報錯部分程式代碼如下:
#預先訓練好的模型的讀取
from keras.models import load_model
#model=load_model("E://DeepLearningCV/class7/model/My_Alexnet_mnist.h5")
model = load_model("model/My_Alexnet_mnist.h5")
model.summary()
程式員小白在線求救
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/284829.html
標籤:機器視覺
上一篇:PAT甲級輔導課拼團啦
