chore: 添加注释

This commit is contained in:
unanmed 2025-12-15 12:19:57 +08:00
parent bd821aa8e4
commit 102e19cefb

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