Coder Social home page Coder Social logo

hetan07 / multi-label-music-genre-classifier Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 30.97 MB

A Multi-Label Music Genre Classifier

Home Page: https://huggingface.co/spaces/Hetan07/multi_label_music_genre_classifier

Python 0.23% Jupyter Notebook 99.77%
deep-learning gtzan-dataset kaggle machine-learning music-genre-classification

multi-label-music-genre-classifier's Introduction

Multi Label Music Genre Classifier

An extension to my project of: Single Label Music Genre Classifier

I was primarily interested on how prediction (or classification) would work in case if a sample can be classified into multiple classes at the same time which is what most of the time is the case with music

Majority of the work done went into actually making the proper dataset to work and train upon. What I wanted was a dataset similar to the one I worked upon during single label classification. GTZAN has no dataset for mulit-label purposes, and so I had to make one

A dataset, MuMU has the mulit-label tags but works on different components or features. So I decided to create a GTZAN-like dataset but with multi-labels


Dataset Creation

The work done for creating the dataset were:

  • Downloading the appropriate songs taken randomly from the MuMu dataset in sampled manner from ~80 genres (tags)
  • Data Cleaning which included to clean and replace the download songs as many of them were things such as album intros, interludes or skits
  • There were also issues where the song required was not available on any platform and so had to appropriately replaced for another proper track or I had to manually search and download
  • Each file had to properly checked to prevent any distortion or disturbances
  • Applying feature extraction on each downloaded song using the librosa library
  • Reducing the labels from ~80 to around ~15

There was also an issue: MuMu dataset has no Classical Genre and thus it had to be added manually.

In the end I decided to have feature extraction work on 3 second samples and thus have around ~24000 samples.

I have linked the actual dataset created from all the steps if anyone wishes to work upon it


For this task I decided to primarily work with neural networks and experimented with various architecture

The models I trained are:

  • ANN
  • ANN with Batch Normalization
  • CNN
  • CRNN

The genres classifed are the following:

  • Metal
  • Jazz
  • Blues
  • R&B
  • Classical
  • Reggae
  • Rap & Hip-Hop
  • Punk
  • Rock
  • Country
  • Bebop
  • Pop
  • Soul
  • Dance & Electronic
  • Folk

I have also deployed this on Hugging Face using streamlit. If one wishes, he can test and play around with different music tracks.


An in-depth analysis of data is further required along with more data. This task as a lot of potential for beginners and experts alike

multi-label-music-genre-classifier's People

Contributors

hetan07 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.