MTG / DCASE-models

Python library for rapid prototyping of environmental sound analysis systems
MIT License
42 stars 5 forks source link

Issue downloading FSGKaggle2018 #21

Closed elcronos closed 3 years ago

elcronos commented 3 years ago

I'm trying to download the dataset FSDKaggle2018

from dcase_models.data.datasets import FSDKaggle2018
dataset = FSDKaggle2018('../datasets/FSDKaggle2018')
dataset.download()

However I get the error:

FileNotFoundError: [Errno 2] No such file or directory:
datasets/FSDKaggle2018/meta/train_post_competition.csv

I have been able to download all other datasets except this one because of that error. Any suggestions?

pzinemanas commented 3 years ago

Hi! Thanks reporting these issues.

There is a bug in FSDKaggle2018. When initializing the instance, it is assumed that the dataset has been downloaded before and that is why it tries to open the train_post_competition.csv file. I'll fix it now.

pzinemanas commented 3 years ago

It should be working now. This fix will be included in the next release. For now, please install DCASE-models from the repository:

git clone https://github.com/MTG/DCASE-models.git
cd DCASE-models
pip install .