Skip to content

Commit 1bf78fa

Browse files
committed
updatte batch_fn train.py, test=doc
1 parent 9d4161c commit 1bf78fa

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

paddlespeech/t2s/datasets/am_batch_fn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def erniesat_batch_fn(examples,
6868
mean_phn_span: int=8,
6969
seg_emb: bool=False,
7070
text_masking: bool=False):
71-
# fields = ["text", "text_lengths", "speech", "speech_lengths", "durations", "pitch", "energy"]
71+
# fields = ["text", "text_lengths", "speech", "speech_lengths", "align_start", "align_end"]
7272
text = [np.array(item["text"], dtype=np.int64) for item in examples]
7373
speech = [np.array(item["speech"], dtype=np.float32) for item in examples]
7474

paddlespeech/t2s/exps/ernie_sat/train.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ def train_sp(args, config):
116116

117117
odim = config.n_mels
118118
model = ErnieSAT(idim=vocab_size, odim=odim, **config["model"])
119-
# model_path = "/home/yuantian01/PaddleSpeech_ERNIE_SAT/PaddleSpeech/examples/ernie_sat/pretrained_model/paddle_checkpoint_en/model.pdparams"
120-
# state_dict = paddle.load(model_path)
121-
# new_state_dict = {}
122-
# for key, value in state_dict.items():
123-
# new_key = "model." + key
124-
# new_state_dict[new_key] = value
125-
# model.set_state_dict(new_state_dict)
126119

127120
if world_size > 1:
128121
model = DataParallel(model)

0 commit comments

Comments
 (0)