mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-05-14 04:41:12 +08:00
chore: 添加注释
This commit is contained in:
parent
bd821aa8e4
commit
102e19cefb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user