Git Product home page Git Product logo

cover-song-recognition-much's Introduction

Cover Song Recognition Much?

A pile of code for creating a neural network which is capable of identifying cover songs.

I created this project for my own exploratory / learning purposes, but there's been enough requests from others to "see the code" that I've decided to clean things up a bit for the masses.

Instructions for running this whole thing

Note: Mileage may vary. I've run this project on both Mac OS and a couple flavors of Ubuntu. Winoughs might not work. If you run into issues, just open an issue and we'll see if we can figure it out. Second note: I use conda for most of these things as it seems to treat me well.

  • Install Python 3.6 using.
  • Install the packages from setup.py. Making a new env just for this project isn't a terrible idea.
  • Place your training MP3 / WMA / M4A / WAV files in a directory
  • Place your validation MP3 / WMA / M4A / WAV files in another directory. The filename must match with the matching song from the training set. The full path isn't used.
  • Update root_*_dir properties in core.py to point to your directories.
  • Update the tempo_map property in core.py with the relevant BPMs for your songs. Alternatively, if you like to live dangerously, just update the code to allow Librosa to auto-detect the BPM without any hints if no entry is found in tempo_map for a given song.
  • Run the 5 functions specified at the bottom of core.py
  • Update filenames in train_raw_lstm.py to match any filename changes from core.py.
  • Run train_raw_lstm.py. I typically do this by pasting everything in to the Python shell. Because I like interactivity when things go awry.
  • Update paths as necessary in testing.py. Pass in full paths to songs you want validated against your new model like so python -m audio_much.testing ~/Desktop/hit_me_with_your_best_shot.mp3

By Stephen Hopper

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.