Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Saving the 'epoch' argument in schedulers #909

Open
BardiaKh opened this issue Oct 8, 2021 · 0 comments
Open

[FEATURE] Saving the 'epoch' argument in schedulers #909

BardiaKh opened this issue Oct 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@BardiaKh
Copy link

BardiaKh commented Oct 8, 2021

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 BardiaKh added the enhancement New feature or request label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant