Coder Social home page Coder Social logo

music-genre-recognition's Introduction

Music-genre-recognition

Packages

Python 3.7
Tensorflow - 1.7.0
Keras - 2.2.4
Numpy, Pandas, Matplotlib
Librosa - 0.6.2

Raw data:

Download FMA Small from: https://github.com/mdeff/fma Raw data is 8GB and consists of audio from 8000 songs + fma_metadata

To run code in any of these notebooks, first please download raw data from FMA Github link above

load_fma_dataset: Loads fma_dataset and explores it.
Plot_Spectograms: Plots spectograms for the 8 different genres
convert_to_npz: Loads the raw audio, converts each file to a spectogram and pickles the results to make it easy for training models

Building models

To run the code below, please download the processed data from the drive

baseline_model_fma: This model uses the metadata in tracks.csv to load MFCC features and builds a SVC classifier.

CRNN_model: This notebook uses the compressed spectograms to build a CRNN model in Keras

CNN_RNN_Parallel: This notebook uses the compressed spectograms to build a a parallel CNN-RNN model.

Activation Visualization and Embedding Clustering

Activation_Visualization: This notebook loads the weights for Parallel CNN-RNN model and uses the keras_vis package to draw activation visualizations for the filters in convolution block 1 and convolution block 5

Embedding_Clustering_CRNN: This notebook extracts the features from the first dense layer of CRNN model and performs clustering on them. It then compares the outputs of the clustering with the true labels

music-genre-recognition's People

Contributors

kapish5467 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.