Interpret the output (logs) during training #8407
-
This is what logs displayed
I am confused what is the difference between |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @talhaanwarch, Lightning automatically takes your As you may see, there is Here is why:
Best, |
Beta Was this translation helpful? Give feedback.
Hey @talhaanwarch,
Lightning automatically takes your
training_step
output and applies a running mean on it and add it to the progress bar using the key loss.As you may see, there is
train/iou_step=0.379
andtrain/loss_epoch=0.210
.Here is why:
For training, Lightning logs automatically set on_step=True and you provided on_epoch=True. Therefore, to prevent values to be logged under the same key, Lightning adds a _step and _epoch suffix to differentiate them.
_epoch
is used to describe the value compute on the previous epoch, until the new reduction is performed. If you use a logger, you will clearly see the_epoch
value logged at the right epoch.Best,
T.C