aboutsummaryrefslogtreecommitdiffstats
path: root/look2hear/models/base_model.py
diff options
context:
space:
mode:
authorKai Li (李凯) <tsinghua.kaili@gmail.com>2025-08-12 18:50:26 +0800
committerGitHub <noreply@github.com>2025-08-12 18:50:26 +0800
commitc46640ff65b2d42db6b890a99fd0bc95c5f50959 (patch)
treea8f306a362d8c3be1fe4bf5f576b3f3e46a52e46 /look2hear/models/base_model.py
parent090518ee00a0745888916da4df808549b365fea2 (diff)
parent95e3bd8f6f2d895787d8a1eee64204e083ccf79a (diff)
downloadapollo-gfx803-c46640ff65b2d42db6b890a99fd0bc95c5f50959.tar.gz
Merge pull request #32 from teodly/load-fix
Fix loading model on PyTorch>=2.6
Diffstat (limited to 'look2hear/models/base_model.py')
-rw-r--r--look2hear/models/base_model.py2
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"])