auto_insert_model_name
behavior when not in filename
arg in ModelCheckpoint
#12798
Unanswered
felipegb94
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
Hi Everyone,
I am currently using
pytorch-lightning=1.6.1
and I am confused by the behavior ofModelCheckpoint
auto_insert_model_name
flag whenfilename
is not specified.I have the following checkpoint callback:
With the above callback, I was expecting that the
val_loss
value would be added to the checkpoint filename. However, it does not get added.For the
val_loss
to get added I need to setfilename='{epoch:02d}-{step:02d}-{val_loss:.4f}'
. But, if I do this, then there is no need to even setauto_insert_metric_name=True
becauseval_loss
will be added to the filename eitherway.So, I guess my question is, what really is the usage of
auto_insert_model_name
if it does not automatically update the filename?Thanks!
Felipe
Beta Was this translation helpful? Give feedback.
All reactions