d733b902552295be41b1f88c8343b5e7b4ff8a9b,TTS/speaker_encoder/dataset.py,MyDataset,__parse_items,#MyDataset#,53

Before Change


        
        Find unique speaker ids and create a dict mapping utterances from speaker id
        
        speakers = list({item[-1] for item in self.items})
        self.speaker_to_utters = {}
        self.speakers = []
        for speaker in speakers:

After Change


        for i in self.items:
            path_ = i[1]
            speaker_ = i[2]
            if speaker_ in self.speaker_to_utters.keys():
                self.speaker_to_utters[speaker_].append(path_)
            else:
                self.speaker_to_utters[speaker_] = [path_, ]

            if self.skip_speakers:
                self.speaker_to_utters = {k: v for (k, v) in self.speaker_to_utters.items() if
                                          len(v) >= self.num_utter_per_speaker}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mozilla/TTS
Commit Name: d733b902552295be41b1f88c8343b5e7b4ff8a9b
Time: 2020-09-16
Author: nicolas.mueller@aisec.fraunhofer.de
File Name: TTS/speaker_encoder/dataset.py
Class Name: MyDataset
Method Name: __parse_items


Project Name: pfnet/optuna
Commit Name: b78fbbdef827a9f50bc61471c63c4cd42898bc47
Time: 2018-05-09
Author: sano@preferred.jp
File Name: pfnopt/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: get_all_study_summaries


Project Name: sentinel-hub/eo-learn
Commit Name: 412dd41ebd8f3573ba5762a13f5e80d8244a1d89
Time: 2019-12-24
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: save_aws_new