Music genre classification from audio spectrograms using deep learning. A convolutional neural network is trained with 7000 sample audios of 10 different music genres.
Before trying, follow these steps:
Visit https://www.kaggle.com/carlthome/gtzan-genre-collection/download and download the GTZAN Genre Collection Dataset.
-> Fire up your terminal/cmd.
$ python3 classifier.py
For prediction:
$ python3 detector.py
$ python3 classifier.py
For prediction:
$ python3 detector.py