nM=mask.sum().float()# number of anchors (assigned to targets)
k=1# nM / bs
ifnM>0:
print(xy.shape,txy.shape,mask.shape)
lxy=k*MSELoss(xy[mask],txy[mask])
lwh=k*MSELoss(wh[mask],twh[mask])
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.