We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212ede2 commit d44bdd7Copy full SHA for d44bdd7
nemo/collections/tts/torch/data.py
@@ -798,6 +798,7 @@ def __getitem__(self, index):
798
if LMTokens in self.sup_data_types_set:
799
lm_tokens = torch.tensor(self.id2lm_tokens[index]).long()
800
801
+ # Note: Please change the indices in _collate_fn if any items are added/removed.
802
return (
803
audio,
804
audio_length,
@@ -819,8 +820,8 @@ def __getitem__(self, index):
819
820
821
def _collate_fn(self, batch):
822
batch = list(zip(*batch))
- data_dict = self.general_collate_fn(list(zip(*batch[:13])))
823
- lm_tokens_list = batch[13]
+ data_dict = self.general_collate_fn(list(zip(*batch[:15])))
824
+ lm_tokens_list = batch[15]
825
826
827
lm_tokens = torch.full(
0 commit comments