Replies: 2 comments 2 replies
-
Remove the following content to solve the problem: self.log(
"val_loss",
loss,
on_step=True,
on_epoch=False,
prog_bar=True,
) to self.log(
"val_loss",
loss,
# on_step=True,
# on_epoch=False,
# prog_bar=True,
) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Just had the same issue. It seems like the val_loss is not available for the checkpoint monitor when logged on step only, so it has to be logged on epoch as well. Considering doing a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
error:
lightning.fabric.utilities.exceptions.MisconfigurationException:
ModelCheckpoint(monitor='val_loss')could not find the monitored key in the returned metrics: ['train_loss', 'epoch', 'step']. HINT: Did you call
log('val_loss', value)in the
LightningModule?
but in my code,i set val_loss key
Beta Was this translation helpful? Give feedback.
All reactions