Skip to content

Commit

Permalink
Merge pull request #99 from yurujaja/revert-98-fix/ss4eo_mae_optical_…
Browse files Browse the repository at this point in the history
…checkpoint

Revert "fix checkpoint for ssl4eo_mae_optical (#98)"
  • Loading branch information
KerekesDavid authored Oct 18, 2024
2 parents e788d5b + 7dd0d38 commit 959f9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pangaea/encoders/ssl4eo_mae_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def forward(self, image):

def load_encoder_weights(self, logger: Logger) -> None:
checkpoint = torch.load(self.encoder_weights, map_location="cpu")
pretrained_model = checkpoint["state_dict"]
pretrained_model = checkpoint["model"]

k = pretrained_model.keys()
pretrained_encoder = {}
Expand Down

0 comments on commit 959f9f0

Please sign in to comment.