Megvii-BaseDetection / OTA

Official implementation of our CVPR2021 paper "OTA: Optimal Transport Assignment for Object Detection" in Pytorch.
Apache License 2.0
242 stars 24 forks source link

About the code #9

Open wangwz6666 opened 2 years ago

wangwz6666 commented 2 years ago

What is the reason for this operation? "Rescale pi so that the max pi for each gt equals to 1." _, pi = self.sinkhorn(mu, nu, loss) 378 # Rescale pi so that the max pi for each gt equals to 1. #一定需要rescale吗? 379 rescalefactor, = pi.max(dim=1) 383 pi = pi / rescale_factor.unsqueeze(1)

skmhrk1209 commented 2 years ago

Any update on this issue?