From 13573a1b06515973de5de7435d5cc3881bc575d4 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:22:01 +0800 Subject: [PATCH] fix torch.load --- GPT_SoVITS/prepare_datasets/3-get-semantic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/prepare_datasets/3-get-semantic.py b/GPT_SoVITS/prepare_datasets/3-get-semantic.py index dbffa0e..b213a8a 100644 --- a/GPT_SoVITS/prepare_datasets/3-get-semantic.py +++ b/GPT_SoVITS/prepare_datasets/3-get-semantic.py @@ -81,7 +81,7 @@ if os.path.exists(semantic_path) == False: # utils.load_checkpoint(pretrained_s2G, vq_model, None, True) print( vq_model.load_state_dict( - torch.load(pretrained_s2G, map_location="cpu")["weight"], strict=False + torch.load(pretrained_s2G, map_location="cpu", weights_only=False)["weight"], strict=False ) )