Skip to content

Commit 812eeec

Browse files
authored
fix step setting in vdl add_scalar (PaddlePaddle#5411)
1 parent 674840f commit 812eeec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppdet/engine/callbacks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def on_step_end(self, status):
261261
for loss_name, loss_value in training_staus.get().items():
262262
self.vdl_writer.add_scalar(loss_name, loss_value,
263263
self.vdl_loss_step)
264-
self.vdl_loss_step += 1
264+
self.vdl_loss_step += 1
265265
elif mode == 'test':
266266
ori_image = status['original_image']
267267
result_image = status['result_image']

0 commit comments

Comments
 (0)