4d0dc3496c221c4b1ec77fe15cb304fdc5fd800c,pyannote/audio/embedding/generators.py,SpeechSegmentGenerator,__init__,#SpeechSegmentGenerator#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,68
Before Change
self.weighted_ = True
self._load_metadata(protocol, subset=subset)
def _load_metadata(self, protocol, subset="train"):
self.data_ = {}
After Change
if key in ["annotation", "annotated", "audio", "duration"]:
continue
if key not in file_labels:
file_labels[key] = set()
file_labels[key].add(current_file[key])
// get annotation for current file
annotation = current_file["annotation"]
if self.in_memory:
current_file["waveform"] = \
self.feature_extraction(current_file).data
// loop on each label in current file
for label in annotation.labels():
// get all segments with current label
timeline = annotation.label_timeline(label)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: pyannote/pyannote-audio
Commit Name: 4d0dc3496c221c4b1ec77fe15cb304fdc5fd800c
Time: 2020-01-09
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/generators.py
Class Name: SpeechSegmentGenerator
Method Name: __init__
Project Name: pyannote/pyannote-audio
Commit Name: 22ebf9884f9fe6fe25a4bdf0d916ab0540ed61cb
Time: 2019-12-20
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/generators.py
Class Name: SpeechSegmentGenerator
Method Name: __init__
Project Name: pyannote/pyannote-audio
Commit Name: a06782717794ff8e88875f2e98aca168c5fe617a
Time: 2020-01-22
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/generators.py
Class Name: SpeechSegmentGenerator
Method Name: __init__