【发布时间】:2020-09-23 06:09:44
【问题描述】:
我正在练习图像分类项目。我得到了
这是我使用的代码。任何人都可以建议我在哪里做错了。
# Predict
test_batch_x, test_batch_y = test_gen.next()
pred_batch = model.predict(test_batch_x)
test_labels = np.argmax(test_batch_y, axis=1)
test_pred = np.argmax(pred_batch, axis=1)
它在test_batch_x, test_batch_y = test_gen.next() 抛出这个错误
ValueError: too many values to unpack (expected 2)
有人可以对此提出建议吗?
【问题讨论】:
标签: python image-processing keras deep-learning transfer-learning