Giter Club home page Giter Club logo

adl-coursework's Introduction

COMSM0045 Applied Deep Learning Coursework

Train, Val and Test Split

Before training the models, the data must reformatted so that there are 12 training, 1 validation and 3 testing parts.

From the project root directory, navigate to the scripts directory.

cd src/scripts

Run the splitdata.sh script and pass in the path to the MagnaTagATune dataset.

./splitdata.sh <path-to-magnatagatune>

Change directory to utils

cd ../utils

Run python script to update annotation files to reflect changes to train, val, test split.

python create_test_val.py --annotations-path=<path-to-magnatagatune-annotations>

Within the MagnaTagATune dataset samples directory, there should be train, val and test directories.

Running CNN

Our model which replicates the CNN architecture from the Dieleman and Schrauwen can be found in src/CNN/.

From the project root directory run locally using:

python src/CNN/runner.py 

Edit Line 18 of train.sh with correct data path and desired hyperparameters.

To run on BC4 with Slurm:

cd src/CNN/
sbatch train.sh

Running CRNN

Our improved model which replicates the CRNN architecture from Choi et al. can be found in src/CRNN/.

Before running this model. The spectrogram data must be generated from the original raw audio signals. To do this, run:

python src/utils/spectrogram.py <path-to-magnatagatune>

From the project root directory run locally using:

python src/CRNN/runner.py 

Edit Line 18 of train.sh with correct data path and desired hyperparameters.

To run on BC4 with Slurm:

cd src/CRNN/
sbatch train.sh

adl-coursework's People

Contributors

alexelwood14 avatar artur-varosyan avatar

Watchers

 avatar

adl-coursework's Issues

Decide on number of epochs

Use the script from labs to calculate the number of weight updates and divide by the total in the paper, to find out how many epochs the model should be trained for.

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.