Giter Site home page Giter Site logo

pratikshaya / hierarchical-note-segmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itachi6912110/hierarchical-note-segmentation

0.0 0.0 0.0 57 KB

Realization for note segmentation by using hierarchical objective function

Shell 7.09% Python 92.91%

hierarchical-note-segmentation's Introduction

Hierarchical-Note-Segmentation

Realization for note segmentation by using hierarchical objective function with utils of Resnet-18 or attention-RNN

Requirements

Before starting all the tasks bellow, make sure the environment is well set:

  • python 3.5
  • pytorch 0.4.1
  • torchvision 0.2.1
  • mir-eval 0.4

Demo

For full and real-world demo, please refer to https://github.com/Itachi6912110/WAV2MIDI
For supplementary and results preview, please refer to https://www.dropbox.com/sh/my2zxv9g6if6xvt/AACL-7w2Tc8ezjUHVtdyrDG2a?dl=0

Loading Data

bash/dataset.sh

This will load the data you need for training and evaluation.
Training data are from TONAS dataset, and testing data are from ISMIR2014 evaluation dataset.
The features used for training is extracted by the tool at https://github.com/leo-so/VocalMelodyExtPatchCNN
Note that the features for training may be too large, and may lead to download abort.

Training

For training, you can change hyper-parameters in the scripts train_sdt6_resnet_top.sh or train_sdt6_top.sh

  • For training resnet-18
bash script/train_sdt6_resnet_top.sh
  • For training rnn-attn-19
bash script/train_sdt6_top.sh

Evaluation

For evaluation, you can change hyper-parameters in the scripts eval_resnet_fmeasure.sh or eval_sdt6_fmeasure.sh

  • For evaluating on resnet-18
bash script/eval_resnet_fmeasure.sh
  • For evaluating on rnn-attn-19
bash script/eval_sdt6_fmeasure.sh

Visualization

You can visualize your results by the following command

python3 src/plot_P.py <file#>

hierarchical-note-segmentation's People

Contributors

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