Giter Club home page Giter Club logo

music-genre-classifier's Introduction

Music-Genre-Classificator

Different architectures to lassify music files based on genre from the GTZAN music corpus, namely:

  • Convolutional Neural Network (CNN)
  • Recurrant Neural Network (RNN)
  • Inception V3
  • MobileNet V2

(Implementated with Tensorflow)

Dataset

In the GTZAN music corpus there's 10 genres with 100 songs each (1000 in total): 80% of it was used during the training phase (800 images), and 20% for testing (200 images). After the split, each song of 30 seconds is split in chunks of 10 seconds (resulting in 2400 and 600 training and testing samples).

Dataset can be downlaoded here: http://marsyas.info/downloads/datasets.html

Audio augmentation

To increase further the amount of data, some augmentation were done on the audio files. For each song chunk, we applied:

  • Add light random noise in the wave form
  • Add intense random noise in the wave form
  • Increase randomly pitch (2% at most)

Audio features extracted

For exctracting the audio features, the library librosa was used.

Example of Mel-frequency Spectrograms

Results

Model Trainig accuracy Test accuracy
MobileNet V2 (TL) 77% 77%
Inception V3(TL) 99% 84%
CNN 55% 62%
RNN 77% 66%

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.