Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get 'test_out.csv'? #5

Closed
jiminbot20 opened this issue Sep 23, 2020 · 11 comments
Closed

how to get 'test_out.csv'? #5

jiminbot20 opened this issue Sep 23, 2020 · 11 comments

Comments

@jiminbot20
Copy link

I downloaded 'clotho_audio_test' and changed 'hparam.py' mode = 'test'
Then, I run python train.py
'test_out.csv' was created but it was empty.
I was expecting
image
But it was
image
like this.
How can I get proper 'test_out.csv' and scores of the test?

This is capture of terminal after I run the code.
image

@chenkun97
Copy link
Collaborator

chenkun97 commented Sep 23, 2020

Are there corresponding .npy files in your data/test_data directory? If not, you should enter the create_dataset directory, and run python create_test_set.py to prepare the data.
The test data set only provides audio data, we cannot calculate the scores of the test. You can set mode = 'eval' to get the scores in evaluation datasets.
If you have other questions, please contact us. Thank you!

@jiminbot20
Copy link
Author

If directory should be data/test_data, then directory down below is wrong?
image

@chenkun97
Copy link
Collaborator

It is correct. The model does not use audio as input, but the corresponding Mel-spectrogram. So we need to extract the data and save the results in the corresponding folder. The data/test_data is obtained by create_test_set.py

@jiminbot20
Copy link
Author

image
Still not working...after I run the code it ends so quick and test_data folder is not creating

@lukewys
Copy link
Owner

lukewys commented Sep 23, 2020

Hi @jiminbot20 , does the clotho_test_audio contains the evaluation set audio? It should be the folder extracted from clotho_audio_test.7z. I tried on my own yesterday, it works fine.

@chenkun97
Copy link
Collaborator

I tried to run it, and there is no problem.
image
The problem may be that the code does not find the clotho_test_audio directory. My data directory is in the create_dataset directory. You can modify line 46 of create_test_set.py according to the location of your data.

@jiminbot20
Copy link
Author

clotho_audio_test looks like this
image
And zip file that I downloaded is like this
image

Is this right?

@lukewys
Copy link
Owner

lukewys commented Sep 23, 2020

No, it should contain directly the *.wav files. In other words, you don't need the test folder.

@jiminbot20
Copy link
Author

Oh I figure out. path problem...
line 46 'creat_test_set.py' in your git is written as 'file_list = glob.glob('./data/clotho_test_audio/*.wav')'
but it should be change into 'file_list = glob.glob('./data/clotho_audio_test/test/*.wav')'

@lukewys
Copy link
Owner

lukewys commented Sep 23, 2020

Yes, in default we do not expect the "test" folder. You could change it to whatever you like.

@jiminbot20
Copy link
Author

image
I did it! Thanks for helping me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants