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

Save decoder and encoder #19

Open
joao-alcindo opened this issue Oct 19, 2023 · 1 comment
Open

Save decoder and encoder #19

joao-alcindo opened this issue Oct 19, 2023 · 1 comment

Comments

@joao-alcindo
Copy link

joao-alcindo commented Oct 19, 2023

How can I save the encoder and decoder of the model after pre training?

@ariG23498
Copy link
Owner

Hey @joao-alcindo thanks for you interest in the work!

You could access the encoder and decoder individually like so 👇

encoder = mae_model.encoder
decoder = mae_model.decoder

Once you have that, you could simple use the encoder.save("encoder.keras") API to save each of them (here encoder) separately. Hope that helps 😄

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

2 participants