akarshzingade / image-similarity-deep-ranking

369 stars 103 forks source link

Typo in Lambda layer #29

Open Witiko opened 5 years ago

Witiko commented 5 years ago

Line 28 of deepRanking.py contains the following:

x = Lambda(lambda x_: K.l2_normalize(x,axis=1))(x)

Should not we be passing x_ rather than x to K.l2_normalize?

elenaterenzi commented 5 years ago

yep, using that code we were receiving many strange errors during training phase. removing the underscore solved the problem for us