Skip to content

Commit

Permalink
Remove version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdejonge committed Oct 23, 2024
1 parent ae62cc0 commit 0ad8981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### removed
- Removed version warning

## [2.2.0] - 2024-10-17

### Changed
Expand Down
3 changes: 0 additions & 3 deletions ms2deepscore/models/load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ def load_model(filename: Union[str, Path]) -> SiameseSpectralModel:
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

model_settings = torch.load(filename, map_location=device)
if model_settings["version"] != __version__:
print(f"The model version ({model_settings['version']}) does not match the version of MS2Deepscore "
f"({__version__}), consider downloading a new model or changing the MS2Deepscore version")
# Extract model parameters from the checkpoint
model_params = model_settings["model_params"]

Expand Down

0 comments on commit 0ad8981

Please sign in to comment.