andreasveit / conditional-similarity-networks

BSD 3-Clause "New" or "Revised" License
222 stars 52 forks source link

embedding vector is not same everytime #7

Closed sandeeprepakula closed 5 years ago

sandeeprepakula commented 6 years ago

Hi,

I am trying to retrieve the embedding vector for a given image once the model is trained. I am getting different embedded vectors for different instances of the same image.

Is the embedding returned a deterministic one?

andreasveit commented 6 years ago

Thank you for your interest in this project. Are you sure that the model is in inference (eval) mode while extracting the embedding vectors?

sandeeprepakula commented 5 years ago

Yes.

But I made a mistake in applying transoformations. There was some randomisation involved during one of the steps of the transformations. After fixing this, the vectors are same across multiple runs. Hence closing the issue.

Thanks.