Skip to content

Commit

Permalink
fix checkpoint for ssl4eo_mae_optical (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
alishibli97 authored Oct 17, 2024
1 parent 5515250 commit e788d5b
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["model"]
pretrained_model = checkpoint["state_dict"]

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

0 comments on commit e788d5b

Please sign in to comment.