Skip to content

Commit

Permalink
fix resnet50 loss print error
Browse files Browse the repository at this point in the history
  • Loading branch information
cccddd77 committed May 28, 2024
1 parent fc7cbf8 commit 00ec158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Vision/classification/image/resnet50/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def train_one_epoch(self):
else:
top1_acc = 0

loss = loss * self.world_size
self.meter_train_iter(loss, top1_acc)

self.cur_batch += 1
Expand Down

0 comments on commit 00ec158

Please sign in to comment.