mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-05-20 17:22:41 +08:00
chore: 添加注释
This commit is contained in:
parent
bd821aa8e4
commit
102e19cefb
@ -408,6 +408,10 @@ class RNNGinkaLoss:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def rnn_loss(self, fake, target):
|
def rnn_loss(self, fake, target):
|
||||||
|
"""
|
||||||
|
fake: [B, C, H, W]
|
||||||
|
target: [B, H, W]
|
||||||
|
"""
|
||||||
weight = torch.ones(self.num_classes)
|
weight = torch.ones(self.num_classes)
|
||||||
weight[0] = 0.3
|
weight[0] = 0.3
|
||||||
weight[1] = 0.5
|
weight[1] = 0.5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user