Safemotion Lib
Loading...
Searching...
No Matches
Namespaces | Functions
triplet_loss.py File Reference

Go to the source code of this file.

Namespaces

namespace  fastreid
 
namespace  fastreid.modeling
 
namespace  fastreid.modeling.losses
 
namespace  fastreid.modeling.losses.triplet_loss
 

Functions

 fastreid.modeling.losses.triplet_loss.softmax_weights (dist, mask)
 
 fastreid.modeling.losses.triplet_loss.hard_example_mining (dist_mat, is_pos, is_neg)
 
 fastreid.modeling.losses.triplet_loss.weighted_example_mining (dist_mat, is_pos, is_neg)
 
 fastreid.modeling.losses.triplet_loss.triplet_loss (embedding, targets, margin, norm_feat, hard_mining)