Skip to content

Commit f958001

Browse files
committed
Add missing keys to generated dsconfig.yaml
1 parent 1489030 commit f958001

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

deployment/exporters/acoustic_exporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def export_attachments(self, path: Path):
121121
# basic configs
122122
'phonemes': f'{self.model_name}.phonemes.txt',
123123
'acoustic': f'{model_name}.onnx',
124+
'hidden_size': hparams['hidden_size'],
124125
'vocoder': 'nsf_hifigan_44.1k_hop512_128bin_2024.02',
125126
}
126127
# multi-speaker

deployment/exporters/variance_exporter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def export_attachments(self, path: Path):
152152
# basic configs
153153
'phonemes': f'{self.model_name}.phonemes.txt',
154154
'linguistic': f'{model_name}.linguistic.onnx',
155+
'hidden_size': self.model.hidden_size,
155156
'predict_dur': self.model.predict_dur,
156157
}
157158
# multi-speaker
@@ -162,6 +163,8 @@ def export_attachments(self, path: Path):
162163
dsconfig['dur'] = f'{model_name}.dur.onnx'
163164
if self.model.predict_pitch:
164165
dsconfig['pitch'] = f'{model_name}.pitch.onnx'
166+
dsconfig['use_expr'] = self.expose_expr
167+
dsconfig['use_note_rest'] = self.model.use_melody_encoder
165168
if self.model.predict_variances:
166169
dsconfig['variance'] = f'{model_name}.variance.onnx'
167170
for variance in VARIANCE_CHECKLIST:

0 commit comments

Comments
 (0)