Unnecessary warning when resuming training #8833
Labels
bug
Something isn't working
callback
help wanted
Open to be worked on
priority: 1
Medium priority task
Milestone
🐛 Bug
When training is resumed with
resume_from_checkpoint
, a warning is given about missing callbacks even if the expected callbacks are included.I got the following:
when the relevant variables had these values:
From a quick look, it seems that the source of the bug is that in
current_callbacks_type
there are types, and insaved_callbacks_type
there are strings fromCallback.state_id
(which is.__qualname__
of the type).https://github.com/PyTorchLightning/pytorch-lightning/blob/3096ab88ebb1d9c9c07c3230829171925c9e678a/pytorch_lightning/trainer/callback_hook.py#L277-L286
Sorry I didn't follow the template for reporting bugs. If this isn't enough, I'll be able to update the issue in a few days.
The text was updated successfully, but these errors were encountered: