osc.loss_objects

Functions

matching_contrastive_loss

Contrastive object-wise loss, all vs.

matching_contrastive_loss_best_worst

Best and worst case for contrastive_loss().

matching_contrastive_loss_per_img

Contrastive object-wise loss, only between corresponding images.

matching_similarity_loss_per_img

Cosine similarity per object, only between corresponding images.