Skip to content

Commit

Permalink
fix map name (PaddlePaddle#4191)
Browse files Browse the repository at this point in the history
  • Loading branch information
littletomatodonkey authored Sep 28, 2021
1 parent 773a8c4 commit 5613e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppocr/losses/distillation_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def forward(self, predicts, batch):
if isinstance(loss, dict):
for key in loss:
loss_dict["{}_{}_{}_{}_{}".format(key, pair[
0], pair[1], map_name, idx)] = loss[key]
0], pair[1], self.maps_name, idx)] = loss[key]
else:
loss_dict["{}_{}_{}".format(self.name, self.maps_name[
_c], idx)] = loss
Expand Down

0 comments on commit 5613e21

Please sign in to comment.