Hi @Zhiyi_Li2
As I mentioned in your previous question - you don’t need the for
loop here.
Take a look at what your Exercise 01 Siamese(..)
function accomplishes - it returns v1 and v2 concatenated. So what you need is pred = model.predict(..)
- specify correct arguments, first one should be your input, the second one is verbose for illustration.
The next three lines essentially separates the v1
and v2
out from pred
(which have them concatenated). Similar question how to get these.
Let me know if that is clear.
Cheers