mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-08 00:06:21 +08:00
Update TTS.py
fix bug
This commit is contained in:
parent
cefafee32c
commit
1e454f6d7f
@ -306,7 +306,7 @@ class TTS_Config:
|
|||||||
assert isinstance(configs, dict)
|
assert isinstance(configs, dict)
|
||||||
version = configs.get("version", "v2").lower()
|
version = configs.get("version", "v2").lower()
|
||||||
assert version in ["v1", "v2", "v3", "v4", "v2pro", "v2proplus"]
|
assert version in ["v1", "v2", "v3", "v4", "v2pro", "v2proplus"]
|
||||||
self.default_configs[version] = configs.get(version, self.default_configs[version])
|
self.default_configs[version] = configs.get(version, self.default_configs.get(version, {}))
|
||||||
self.configs: dict = configs.get("custom", deepcopy(self.default_configs[version]))
|
self.configs: dict = configs.get("custom", deepcopy(self.default_configs[version]))
|
||||||
|
|
||||||
self.device = self.configs.get("device", torch.device("cpu"))
|
self.device = self.configs.get("device", torch.device("cpu"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user