(self, beta=0.2, eps=1e-3, reduction='mean', loss_weight=1.0)
| 316 | |
| 317 | class BoundedIoULoss(nn.Module): |
| 318 | def __init__(self, beta=0.2, eps=1e-3, reduction='mean', loss_weight=1.0): |
| 319 | super(BoundedIoULoss, self).__init__() |
| 320 | self.beta = beta |
| 321 | self.eps = eps |
| 322 | self.reduction = reduction |
| 323 | self.loss_weight = loss_weight |
| 324 | |
| 325 | def forward(self, |
| 326 | pred, |