2f0e9545a368cd54dddf9faeecb494439913cf5a,datasets/TTSDataset.py,MyDataset,__getitem__,#MyDataset#Any#,76

Before Change



    def __getitem__(self, idx):
        text, wav_file = self.items[idx]
        text = np.asarray(
            text_to_sequence(text, [self.cleaners]), dtype=np.int32)
        wav = np.asarray(self.load_wav(wav_file), dtype=np.float32)
        sample = {"text": text, "wav": wav, "item_idx": self.items[idx][1]}
        return sample

After Change


        return len(self.items)

    def __getitem__(self, idx):
        return self.load_data(idx)

    def collate_fn(self, batch):
        r
            Perform preprocessing and create a final data batch:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mozilla/TTS
Commit Name: 2f0e9545a368cd54dddf9faeecb494439913cf5a
Time: 2018-12-28
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__


Project Name: mozilla/TTS
Commit Name: d38872a4d0b4d902d6ce3979560d0c4f4258ac82
Time: 2018-12-17
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__


Project Name: autoreject/autoreject
Commit Name: b8f51139809bb29e6274857c5450ebdc39a60726
Time: 2016-10-12
Author: mainak.jas@telecom-paristech.fr
File Name: autoreject/tests/test_autoreject.py
Class Name:
Method Name: test_autoreject