-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples of PairCircleLoss #6
Comments
Just like the classical face recognition task, make the batch data input, the |
Thanks for the fast response! I'm a bit new to Tensorflow and keras, so just to wish I'm understanding this correctly. First we have a model to encode images into vectors: Then we encode the references, true label images and false label images: And compute cosine similarity scores: Then compile the model with PairCircleLoss (This is where I get confused, since similarity score is a unique value, does that mean the shape of the input is ()?): model.compile( And finally we could fit the model with 'sp' and 'sn': Does the implementation above seem correct? And could you please clarify what should I do to handle the input of the model as similarity scores? Much appreciate for your patience and response! |
Hi there,
Really appreciate your implementation on Circle loss. I'm trying to utilize circle loss for an eye recognition task, which would use a CNN for encoding eyes and construct positive and negative similarity pairs. I think PairCircleLoss is the most suitable for this task. As the example task provided is still classical classification task, could you please provide some examples of how to use pairwise circle loss? Thank you in advance. :)
The text was updated successfully, but these errors were encountered: