Giter Club home page Giter Club logo

ijcnn2021.github.io's Introduction

IJCNN2021

Source code and supplementary information for IJCNN2021.

The supplementary information is available at: https://kinwaicheuk.github.io/IJCNN2021.github.io/

The source code is available under the codes folder.

Training the mode

Step 1: Preparing Dataset

The MAPS dataset can be downloaded via https://amubox.univ-amu.fr/index.php/s/iNG0xc5Td1Nv4rR. Download and unzip the dataset into the codes folder.

After unzipping all the files inside, the ENSTDkAm1 and ENSTDkAm2 folder should be combined as one single folder ENSTDkAm.

Step 2: Training the models

Run the following scripts to train different models:

  • python train_original.py with <args>
  • python train_fast_local_attent.py with <args>
  • python train_simple.py with <args>

The following arguments are available:

  • device: choose what device to use. Can be cpu, cuda:0 or any device that is available in your PC. Default cuda:0.

  • LSTM: Train the model with or without the LSTM layer. Either True or False. Default True.

  • onset_stack: Train the model with or without the onset stack. Either True or False. Default True.

  • batch_size: Setting the batch size. Default 16.

The following arguments are for train_fast_local_attent.py only

  • w_size: The attention window size. Default: 30.
  • attention_mode: Choosing which feature to attend to. Either onset or activation or spec. Default onset.

The PyTorch dataset class MAPS() inside each script will process and prepare the dataset if you are running it for the first time.

Using pre-trained models

Step 1: Downloading weights

The weights can be downloaded here

Step 2: Generating the results

The bash files contain all the commanands to obtain the results reported in the paper. Run the following bash scripts to get all the results

  • bash get_table1.sh
  • bash get_figure1.sh
  • bash get_table2.sh

The accuracy reports and the midi files will be saved in the results folder.

ijcnn2021.github.io's People

Contributors

kinwaicheuk avatar

Stargazers

 avatar

Watchers

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