chore: 添加注释

This commit is contained in:
AncTe committed 2025-12-15 12:19:57 +08:00
1 parent bd821aa8e4
commit 102e19cefb
1 file changed
+4
+4
View File
@@ -408,6 +408,10 @@ class RNNGinkaLoss:
pass
def rnn_loss(self, fake, target):
"""
fake: [B, C, H, W]
target: [B, H, W]
"""
weight = torch.ones(self.num_classes)
weight[0] = 0.3
weight[1] = 0.5