andreasveit / triplet-network-pytorch

370 stars 95 forks source link

about why dista should larger than distb. #3

Closed YunpengZhai closed 6 years ago

YunpengZhai commented 6 years ago

Excuse me. I have a question that why dista should be larger than distb in --train.py --train() function I mean that distance between ref and pos should be smaller than ref and neg. thanks very much!

andreasveit commented 6 years ago

Because dista is the distance between ref and neg. Triplets are in the form (ref, neg, pos).

ssdutHB commented 6 years ago

Yep! That's the point.