A music genre classifier using CNN, RNN, and Mel spectrogram
Also provides a CNN feature extractor to be used with other machine learning models such as SVM / KNN.
Contains all experiment results and details
Use trained model to classify youtube video.
Hyperparameter settings.
Augments dataset.
Extracts feature from augmented dataset.
Train + Test model {XXX}
- Download GTZAN dataset and place genre folders under dataset/gtzan
- Augment data by running
$ python audio_augmentation.py
- Extracts feature by running
$ python feature_extraction
- Starts train by running
$ python XXX_Train_Test_Plot.py
- Make sure you have "Demo_CNN_model.pth" under the same directory.
- Run
$ python Demo-classify-youtube.py
Note: YouTube tends to block python crawler, if the process is stucked, please enter ^C and restart the program.