avalanche.benchmarks.datasets.torchaudio_wrapper.SpeechCommands

avalanche.benchmarks.datasets.torchaudio_wrapper.SpeechCommands(root=PosixPath('/home/docs/.avalanche/data'), url='speech_commands_v0.02', download=True, subset=None, mfcc_preprocessing=None)[source]

root: dataset root location url: version name of the dataset download: automatically download the dataset, if not present subset: one of ‘training’, ‘validation’, ‘testing’ mfcc_preprocessing: an optional torchaudio.transforms.MFCC instance

to preprocess each audio. Warning: this may slow down the execution since preprocessing is applied on-the-fly each time a sample is retrieved from the dataset.