mae-scalable-vision-learners icon indicating copy to clipboard operation
mae-scalable-vision-learners copied to clipboard

Save decoder and encoder

Open joao-alcindo opened this issue 2 years ago • 1 comments

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

joao-alcindo avatar Oct 19 '23 18:10 joao-alcindo

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 😄

ariG23498 avatar Oct 31 '23 10:10 ariG23498