pytorch-metric-learning
pytorch-metric-learning copied to clipboard
Add a "tuples_per_anchor" or "num_tuples" argument to BaseTupleMiner
This would allow users to limit the number of pairs/triplets returned by a miner. The triplets_per_anchor
flag would be removed from TripletMarginLoss and MarginLoss. See #192 for related discussion.