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

+1
View File
@@ -53,6 +53,7 @@ def weight_reduce_loss(loss, weight=None, reduction='mean', avg_factor=None):
# if reduction is 'none', then do nothing, otherwise raise an error
elif reduction != 'none':
raise ValueError('avg_factor can not be used with reduction="sum"')
return loss