diff options
| author | Kai Li (李凯) <tsinghua.kaili@gmail.com> | 2025-08-12 18:50:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 18:50:26 +0800 |
| commit | c46640ff65b2d42db6b890a99fd0bc95c5f50959 (patch) | |
| tree | a8f306a362d8c3be1fe4bf5f576b3f3e46a52e46 /look2hear/models | |
| parent | 090518ee00a0745888916da4df808549b365fea2 (diff) | |
| parent | 95e3bd8f6f2d895787d8a1eee64204e083ccf79a (diff) | |
| download | apollo-gfx803-c46640ff65b2d42db6b890a99fd0bc95c5f50959.tar.gz | |
Merge pull request #32 from teodly/load-fix
Fix loading model on PyTorch>=2.6
Diffstat (limited to 'look2hear/models')
| -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"]) |
