Skip to content

pytorch-lightning output embeddings completely differnt than pytorch vanilla #9873

Discussion options

You must be logged in to vote

Hi
here, I think you are reinitializing the model and using the one with random weights.

model = Autoencoder()
encodings = get_encodings(model, data_loader)

you need to load a checkpoint here

model = AutoEncoder.load_from_checkpoint(ckpt_path)
encodings = get_encodings(model, data_loader)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AMA111
Comment options

Answer selected by AMA111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment