We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b744a commit 9d95791Copy full SHA for 9d95791
nemo/collections/tts/torch/data.py
@@ -805,6 +805,7 @@ def __getitem__(self, index):
805
if LMTokens in self.sup_data_types_set:
806
lm_tokens = torch.tensor(self.id2lm_tokens[index]).long()
807
808
+ # Note: Please change the indices in _collate_fn if any items are added/removed.
809
return (
810
audio,
811
audio_length,
@@ -826,8 +827,8 @@ def __getitem__(self, index):
826
827
828
def _collate_fn(self, batch):
829
batch = list(zip(*batch))
- data_dict = self.general_collate_fn(list(zip(*batch[:13])))
830
- lm_tokens_list = batch[13]
+ data_dict = self.general_collate_fn(list(zip(*batch[:15])))
831
+ lm_tokens_list = batch[15]
832
833
834
lm_tokens = torch.full(
0 commit comments