Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AI and Deep Learning by (120 points)
im newbie in keras and neural network.

I have done the train process and got the model with the .h5 format

the neural network that I use is the siamese convolutional neural network.

when validating, the predicted image is a random image from my test folder.

i use this when test

```

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        

```

then, display the result with

```

display_validation_test(siamese_model1, testset)

```

How do I do the test process by inputting the image I want, then displaying the appropriate image using the .h5 model earlier?
Please log in to answer this question.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...