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

Training a model and generating a prediction #10

Open
jmm5491 opened this issue Feb 7, 2021 · 0 comments
Open

Training a model and generating a prediction #10

jmm5491 opened this issue Feb 7, 2021 · 0 comments

Comments

@jmm5491
Copy link

jmm5491 commented Feb 7, 2021

I want to thank you for making this significant contribution to the field. The project was extremely well done, and I have learned a lot about how to structure a large python project from reading your code.

I have attempted to train a model using the 'all_quality' config in experiments.json using a subset of the datasets (musan, gtzan, muspeak). The training was aborted after 28/50 epochs due to a tf/keras bug, and I was saving the model after each epoch. The last model saved had these results:

1214/1214 [==============================] - 557s 457ms/step - loss: 0.1321 - binary_accuracy: 0.9514 - categorical_accuracy: 0.8334 - val_loss: 0.1099 - val_binary_accuracy: 0.9621 - val_categorical_accuracy: 0.9421

I thought I might be able to use that model to make a prediction on a 30 minute wav file (mostly music with 4 segments of speech of about 3 minutes each). The output of predict.py labeled the entire 30 minutes as speech, so I think I'm doing something wrong. I wasn't sure what to put for the --mean_path and --std_path. I just see mean.npy and var.npy files in the filelists_* directories of the datasets. Are these supposed to be combined in some way and the result passed to predict.py?

I would be grateful for any advice you can give about training and running predictions.

Merci

@jmm5491 jmm5491 changed the title Trainig a model and generating a prediction Training a model and generating a prediction Feb 7, 2021
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

1 participant