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

Explore the possibility of adding Checkpoint Loader Mixins #69

Open
Alicegaz opened this issue Jul 14, 2022 · 0 comments
Open

Explore the possibility of adding Checkpoint Loader Mixins #69

Alicegaz opened this issue Jul 14, 2022 · 0 comments

Comments

@Alicegaz
Copy link

There are cases where multiple nn.Module components are involved in a training process, some of which are never trained but used in an eval mode, in a preprocessing, for instance (detection, neural augmenters, batch preprocessor). In these cases, we would have to override constructors for those components, but why not abstract all the checkpoint loading logic inside class Mixins, and the instantiate components that need checkpoint loading logic from the corresponding Mixin. In this case, all the checkpoint loading parameters for the mixin are placed as module parameters in config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant