神经网络训练过程中出现bug
print('[INFO] Inference time: {}'.format(inference))
report = classification_report(y_test,
predictions.argmax(axis=1),
target_names=classNames)
# save the classification report to file
reportPath = os.path.join(result_path, "{}.txt".format(os.path.basename(model_path).split('.')[-2]))
f = open(reportPath, "w")
f.write(os.path.basename(model_path).split('.')[-2] + "\n")
f.write(report + "\n")
f.write("Duration : {}\n".format(Duration))
f.write("Inference time : {}\n".format(inference))
f.close()
程序能够跑通,也能出结果。但训练好像是被提前终止了。程序出现问题的部分应该是上述部分的代码。因为上述部门的代码没有实现。
好像是pyqt5的问题,是不是缺少什么学习库阿?