Update modeling_yags.py
Browse files- modeling_yags.py +2 -2
modeling_yags.py
CHANGED
|
@@ -12,7 +12,7 @@ from transformers import AutoModelForMaskedLM, BertConfig
|
|
| 12 |
|
| 13 |
from .t2s_lightning_module import \
|
| 14 |
Text2SemanticLightningModule
|
| 15 |
-
from . import
|
| 16 |
from .mel_processing import spectrogram_torch
|
| 17 |
# from io import BytesIO
|
| 18 |
from .models import SynthesizerTrn
|
|
@@ -313,7 +313,7 @@ class GPTSoVITSModel(PreTrainedModel):
|
|
| 313 |
|
| 314 |
self.prompt_language = config.prompt_language
|
| 315 |
|
| 316 |
-
self.ssl_model =
|
| 317 |
self.bert_model = AutoModelForMaskedLM.from_config(BertConfig.from_dict(config._bert_config_dict))
|
| 318 |
self.hps = DictToAttrRecursive(config._hps_dict)
|
| 319 |
self.hps.model.semantic_frame_rate = "25hz"
|
|
|
|
| 12 |
|
| 13 |
from .t2s_lightning_module import \
|
| 14 |
Text2SemanticLightningModule
|
| 15 |
+
from .cnhubert import CNHubert
|
| 16 |
from .mel_processing import spectrogram_torch
|
| 17 |
# from io import BytesIO
|
| 18 |
from .models import SynthesizerTrn
|
|
|
|
| 313 |
|
| 314 |
self.prompt_language = config.prompt_language
|
| 315 |
|
| 316 |
+
self.ssl_model = CNHubert(config._hubert_config_dict, config._hubert_extractor_config_dict)
|
| 317 |
self.bert_model = AutoModelForMaskedLM.from_config(BertConfig.from_dict(config._bert_config_dict))
|
| 318 |
self.hps = DictToAttrRecursive(config._hps_dict)
|
| 319 |
self.hps.model.semantic_frame_rate = "25hz"
|