在测试模型时出现值错误

时间:2020-05-14 10:01:17

标签: python keras

我收到此错误代码,并在显示的行周围包含了相关代码

File "test_network.py", line 28, in <module>
    (Airplane, F15,F16, Bird, MIG, J15) = model.predict(image)[0]
ValueError: not enough values to unpack (expected 6, got 4)

这是相关的代码,是否需要更改才能解决此错误。

(Airplane, F15,F16, Bird, MIG, J15) = model.predict(image)[0] 
print("F15: ", F15)
print("F16: ", F16)
print("Bird: ", Bird)
print("Airplane: ", Airplane)
print("MIG: ", MIG)
print("J15: ", J15)
classes =["F15", "F16", "Bird", "Airplane", "MIG", "J15"]
results = [F15, F16, Bird, Airplane, MIG, J15]

0 个答案:

没有答案