Code Monkey home page Code Monkey logo

wmw_deep_playlist_generator's Introduction

Wilson's Deep Playlist Generator

MIT Licensemade-with-python

Background

Wilson's Deep Playlist Generator provides a pipeline for generating beautiful sequences of tracks. The generator uses a Recurrent Neural Network to learn the patterns used by playlist curators and artists to build playlists. The default model is trained on all volumes from the Wilson's Morning Wake Up series on Spotify.

To listen to the fruits of this project's labour, head on over to the playlist at this link

If you would like to listen to the original playlist, you can find it here too.

Setup

  1. Create virtual environment
conda env create --file local_env.yml
  1. Activate and deactivate environment
conda activate local_wmw
conda deactivate
  1. Add environment/kernel to Jupyter Notebook if you'd like to explore a little.
python -m ipykernel install --user --name=local_wmw
  1. Install latest PyTorch for local and cpu only
conda install pytorch torchvision cpuonly -c pytorch
  1. Head on over to Spotify for Developers and setup an app. Spotify will then supply an ID and Secret for accessing your app. Store these in your own .env file in the root of the directory like so:
# example .env file
SPOTIFY_EMAIL=hello@example.com
SPOTIPY_CLIENT_ID=XXX
SPOTIPY_CLIENT_SECRET=XXX
SPOTIPY_REDIRECT_URI=http://localhost:8080
CACHE=.spotipyoauthcache

# Modeling info
MODEL_DIR=models
MODEL_CHOICE=lstm_model.pth
SCALER_CHOICE=standard_features.pkl
PCA_CHOICE=dim_red.pkl

Run

To generate a playlist, run the following commands in the the command line whilst in the root of the repo:

conda activate local_wmw

# First generate a playlist pool
python get_playlist_pool.py

# Then generate a playlist
python main.py

A single playlist takes around 10 minutes to generate.

wmw_deep_playlist_generator's People

Contributors

alistairwgillespie 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.