Skip to content

Commit

Permalink
Revert "fix checkpoint for ssl4eo_mae_optical (#98)"
Browse files Browse the repository at this point in the history
This reverts commit e788d5b.
  • Loading branch information
KerekesDavid authored Oct 18, 2024
1 parent e788d5b commit 7dd0d38
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 7dd0d38

Please sign in to comment.