Skip to content

Commit c93d3dd

Browse files
committed
update
1 parent 84e4172 commit c93d3dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cosyvoice/dataset/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def padding(data, use_spk_embedding, mode='train', gan=False, dpo=False):
405405
batch['instruct_token_len'] = torch.tensor([i.size(0) for i in instruct_token], dtype=torch.int32)
406406
batch['instruct_token'] = pad_sequence(instruct_token, batch_first=True, padding_value=0)
407407
if torch.tensor(['whisper_feat' in sample[i] for i in order]).all():
408-
whisper_feat = [torch.tensor(sample[i]['whisper_feat']) for i in order]
408+
whisper_feat = [sample[i]['whisper_feat'] for i in order]
409409
batch['whisper_feat_len'] = torch.tensor([i.size(0) for i in whisper_feat], dtype=torch.int32)
410410
batch['whisper_feat'] = pad_sequence(whisper_feat, batch_first=True, padding_value=0)
411411
if torch.tensor(['speech_token' in sample[i] for i in order]).all():

0 commit comments

Comments
 (0)