diff options
| author | Teodor Wozniak <teo-git@lumifaza.org> | 2025-08-04 17:49:34 +0200 |
|---|---|---|
| committer | Teodor Wozniak <teo-git@lumifaza.org> | 2025-08-04 17:49:34 +0200 |
| commit | 95e3bd8f6f2d895787d8a1eee64204e083ccf79a (patch) | |
| tree | a8f306a362d8c3be1fe4bf5f576b3f3e46a52e46 /look2hear | |
| parent | 090518ee00a0745888916da4df808549b365fea2 (diff) | |
| download | apollo-gfx803-95e3bd8f6f2d895787d8a1eee64204e083ccf79a.tar.gz | |
fix loading model on new versions of pytorch
Diffstat (limited to 'look2hear')
| -rw-r--r-- | look2hear/models/base_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/look2hear/models/base_model.py b/look2hear/models/base_model.py index 730194d..19a2618 100644 --- a/look2hear/models/base_model.py +++ b/look2hear/models/base_model.py @@ -62,7 +62,7 @@ class BaseModel(nn.Module, PyTorchModelHubMixin, repo_url="https://github.com/Ju from . import get conf = torch.load( - pretrained_model_conf_or_path, map_location="cpu" + pretrained_model_conf_or_path, map_location="cpu", weights_only=False ) # Attempt to find the model and instantiate it. model_class = get(conf["model_name"]) |
