YuanGongND / ast

Code for the Interspeech 2021 paper "AST: Audio Spectrogram Transformer".
BSD 3-Clause "New" or "Revised" License
1.17k stars 221 forks source link

No such file or directory: './data/datafiles/esc_train_data_1.json' #4

Closed nzhou26 closed 3 years ago

nzhou26 commented 3 years ago

Hi Yuan, I downloaded the model and try to test it with the esc50 data. I tried to run run_esc.sh, but got error for no such file. I download the master.zip, unzip and put it in ./data/ESC-50-master/. I check the run and prep scripts and havn't found any code that makes the directory or download files for ./data/datafiles/ Is it a file or data I suppose to download or the file is auomatically generated?

Ningkun

YuanGongND commented 3 years ago

Hi Ningkun,

Maybe I forgot to create an empty directory ./data/datafiles/ , but in here the code does automatically generate json files.

Could you manually create an empty directory ./data/datafiles/ and re-run prep_esc50.py? Please let me know if this solves the problem. Thanks!

-Yuan

nzhou26 commented 3 years ago

Hi Yuan, Thanks for the quick reply. I manually created the ./data/datafile/ directory and the script is working without no such file error

YuanGongND commented 3 years ago

Great to know and thanks for reporting this issue, I have fixed the bug in prep_esc50.py.

-Yuan