pytorch-image-models icon indicating copy to clipboard operation
pytorch-image-models copied to clipboard

[FEATURE] Saving the 'epoch' argument in schedulers

Open BardiaKh opened this issue 4 years ago • 0 comments

You have developed great schedulers in timm. One thing that makes them a bit challenging to integrate with usual pytorch pipelines and lightning is the 'epoch' argument in the 'step' method. Pytorch saves the last step as an internal argument so calling the 'step' will automatically go one step further.

I understand that there are so many use cases that you might want to resume training from a certain start point. So, I suggest having an internal record of the epoch argument, and if the user wants to override it that can pass their intended epoch number.

If you want I can work on a PR.

BardiaKh avatar Oct 08 '21 16:10 BardiaKh