(self, reduction="none", loss_type="iou")
| 9 | |
| 10 | class IOUloss(nn.Module): |
| 11 | def __init__(self, reduction="none", loss_type="iou"): |
| 12 | super(IOUloss, self).__init__() |
| 13 | self.reduction = reduction |
| 14 | self.loss_type = loss_type |
| 15 | |
| 16 | def forward(self, pred, target): |
| 17 | assert pred.shape[0] == target.shape[0] |
nothing calls this directly
no outgoing calls
no test coverage detected