support sovits v2Pro v2ProPlus
support sovits v2Pro v2ProPlus
This commit is contained in:
2
api.py
2
api.py
@@ -374,7 +374,7 @@ hz = 50
|
||||
|
||||
|
||||
def get_gpt_weights(gpt_path):
|
||||
dict_s1 = torch.load(gpt_path, map_location="cpu")
|
||||
dict_s1 = torch.load(gpt_path, map_location="cpu", weights_only=False)
|
||||
config = dict_s1["config"]
|
||||
max_sec = config["data"]["max_sec"]
|
||||
t2s_model = Text2SemanticLightningModule(config, "****", is_train=False)
|
||||
|
||||
Reference in New Issue
Block a user