Skip to content

gdoras/PrototypicalTripletLoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PrototypicalTripletLoss

A Tensorflow implementation of the prototypical triplet loss.

This adaptation of the standard triplet loss minimizes the distance between an anchor and the prototype of its class (the centroid of all embeddings in this class), while maximizing with the prototype of all other classes.

Prototype computation is done online within each mini-batch, and followed by semi-hard triplet mining. Here, each triplet contains an anchor, its positive prototype (the centroid of all embeddings of the anchor's class) and a negative prototype (the centroid of all embeddings of class which is not the anchor's class).

References

See this paper for details.

See original implementation here.

About

A Tensorflow implementation of the prototypical triplet loss.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages