Home

Awesome

Music Genre Classification with LSTMs

Test trained LSTM model

In the ./weights/ you can find trained model weights and model architecture.

To test the model on your custom audio file, run

 python3 predict_example.py path/to/custom/file.mp3

or to test the model on our custom files, run

 python3 predict_example.py audio/classical_music.mp3

Audio features extracted

Dependencies

Ideas for improving accuracy:

Accuracy

At Epoch 400, training on a TITAN X GPU (October 2017):

LossAccuracy
Training0.58010.7810
Validation0.7345234851040.766666688025
Testing0.9008450607460.683333342274

At Epoch 400, training on a 2018 Macbook Pro CPU (May 2019):

LossAccuracy
Training0.34860.8738
Validation1.0284210840860.700000017881
Testing1.2096567551290.683333347241