Skip to content

Commit

Permalink
Try being explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jan 31, 2024
1 parent 35b914c commit b5a9007
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torchgeo/trainers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ def load_state_dict(
state_dict[output_module_key + ".bias"],
)

return model.load_state_dict(state_dict, strict=False)
missing_keys: list[str]
unexpected_keys: list[str]
missing_keys, unexpected_keys = model.load_state_dict(state_dict, strict=False)
return missing_keys, unexpected_keys


def reinit_initial_conv_layer(
Expand Down

0 comments on commit b5a9007

Please sign in to comment.