mirror of https://github.com/coqui-ai/TTS.git
Update Vits model API
This commit is contained in:
parent
fe656659be
commit
acc83cd3e6
|
@ -1,8 +1,9 @@
|
||||||
|
import collections
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
from dataclasses import dataclass, field, replace
|
from dataclasses import dataclass, field, replace
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from typing import Dict, List, Tuple, Union
|
from typing import Dict, List, Optional, Tuple, Union
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.distributed as dist
|
import torch.distributed as dist
|
||||||
|
@ -544,8 +545,7 @@ class Vits(BaseTTS):
|
||||||
ap: "AudioProcessor" = None,
|
ap: "AudioProcessor" = None,
|
||||||
tokenizer: "TTSTokenizer" = None,
|
tokenizer: "TTSTokenizer" = None,
|
||||||
speaker_manager: SpeakerManager = None,
|
speaker_manager: SpeakerManager = None,
|
||||||
language_manager: LanguageManager = None,
|
language_manager: LanguageManager = None,):
|
||||||
):
|
|
||||||
|
|
||||||
super().__init__(config, ap, tokenizer, speaker_manager, language_manager)
|
super().__init__(config, ap, tokenizer, speaker_manager, language_manager)
|
||||||
|
|
||||||
|
@ -1483,6 +1483,10 @@ class Vits(BaseTTS):
|
||||||
language_manager = LanguageManager.init_from_config(config)
|
language_manager = LanguageManager.init_from_config(config)
|
||||||
return Vits(new_config, ap, tokenizer, speaker_manager, language_manager)
|
return Vits(new_config, ap, tokenizer, speaker_manager, language_manager)
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# VITS CHARACTERS
|
||||||
|
##################################
|
||||||
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# VITS CHARACTERS
|
# VITS CHARACTERS
|
||||||
|
|
Loading…
Reference in New Issue