mirror of
https://github.com/wassname/TTS.git
synced 2026-10-24 12:00:20 +08:00
comment correction
This commit is contained in:
1 parent
b0dbfc55de
commit
3fa185e63d
1 file changed
+3
-3
@@ -166,10 +166,10 @@ class MyDataset(Dataset):
|
||||
def collate_fn(self, batch):
|
||||
r"""
|
||||
Perform preprocessing and create a final data batch:
|
||||
1. PAD sequences with the longest sequence in the batch
|
||||
1. Sort batch instances by text-length
|
||||
2. Convert Audio signal to Spectrograms.
|
||||
3. PAD sequences that can be divided by r.
|
||||
4. Convert Numpy to Torch tensors.
|
||||
3. PAD sequences wrt r.
|
||||
4. Load to Torch.
|
||||
"""
|
||||
|
||||
# Puts each data field into a tensor with outer dimension batch size
|
||||
|
||||
Reference in new issue
Block a user