add infer loss for LuoXData with long data by clip & alignment data

This commit is contained in:
Sen Liang committed 2022-03-03 11:25:48 +08:00
1 parent 386df9a4ab
commit ded9b27f71
42 files changed
+1233 -1361

No files matched your search

+3 -5
View File
@@ -47,17 +47,15 @@ class WingLoss(nn.Module):
avg_factor(int, optional): The average of the reduction loss
"""
loss = wing_loss(pred, target, w=self.w, epsilon=self.epsilon, weight=weight, avg_factor=avg_factor)
loss = wing_loss(pred, target, w=self.w, epsilon=self.epsilon, weight=weight, reduction=self.reduction, avg_factor=avg_factor)
loss = self.loss_weight * loss
return loss
if __name__ == "__main__":
crieation = WingLoss()