fgnt / pb_sed

Paderborn Sound Event Detection
MIT License
68 stars 10 forks source link

Assert error: The datasets are not indexable #2

Closed ZHAO-Fengnian closed 4 years ago

ZHAO-Fengnian commented 4 years ago

A bug in pb_sed/experiments/dcase_2020_task4/data.py In 60th line, training_set = lazy_dataset.intersperse( *[ ds.shuffle(reshuffle=True).tile(repetitions[name]) #zfn: the reshuffle disables the indexable, causing an error for name, ds in datasets.items() ] ) The reshuffle should not be True otherwise it will change the indexable of the datasets to False, causing an assert error in intersperse: the location is in lazy_dataset/core.py, line2138: assert all([dataset.indexable for dataset in self.input_datasets])

JanekEbb commented 4 years ago

I missed to merge a pull request in lazy_dataset which allows intersperse with non-indexable datasets. Fixed now. Thanks!