【发布时间】:2020-06-28 03:46:07
【问题描述】:
我已经完成了训练过程并得到了 .hdf5 格式的模型
我使用的神经网络是孪生卷积神经网络。
验证时,预测图像是我的测试文件夹中的随机图像。 我在测试时使用这个
test_alphabets = glob('{}/TEST/*'.format(dataset_dirname))
testset={}
for alph in test_alphabets:
dirs = glob('{}/*'.format(alph))
alphabet = {}
for dirname in dirs:
alphabet[dirname] = glob('{}/*'.format(dirname))
testset[alph] = alphabet
然后,显示结果
display_validation_test(siamese_model1, testset)
【问题讨论】:
标签: keras siamese-network