Coder Social home page Coder Social logo

cheriell / cross-version-mpe Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 171 KB

Accompanying code for "Utilizing Cross-Version Consistency for Domain Adaptation: A Case Study on Music Audio" in Tiny Papers @ ICLR, 2024

Python 99.73% Shell 0.21% Dockerfile 0.06%

cross-version-mpe's Introduction

Cross-Version-MPE

Here we provide the accompanying code for our tiny paper

Datasets and feature preparation

We use the MAESTRO Dataset, the Schubert Winterreise Dataset and the Wagner Ring Dataset in our case study.

During feature preparation, we calculate the HCQT spectrogram and binary pianoroll for each of the music performance, with a sampling rate of 22.05 kHz and a hop size of 512. The feature preparation code can be found HERE. We provide one example input-output pair of feature in the folder example_precomputed_features.

Experiments

The teacher model is trained using script experiments/teacher_maestro.py.

Below are the scripts for each experiment mentioned in our paper:

Method Source Dataset Target Dataset Script
Sup -- Schubert Wagner experiments/<target_dataset>/supervised.py
T MAESTRO Schubert, Wagner experiments/<target_dataset>/teacher.py
TS MAESTRO Schubert, Wagner experiments/<target_dataset>/teacher_student.py
TSCV MAESTRO Schubert, Wagner experiments/<target_dataset>/teacher_student_cross_version_1.py
TSCV2 MAESTRO Schubert, Wagner experiments/<target_dataset>/teacher_student_cross_version_2.py

Environments configuration

We use synctoolbox to calculate the alignment path between different versions. The python environment is the one provided by the toolbox (copied in file environment-synctoolbox.yml). Please use this python environment to run the feature preparation script eature_preparation/prepare_cross_version_alignment.py.

For running the experiments, please use the provided Dockerfile to build the Docker image. You can also pull the docker image by

docker pull cheriell/cross-version-mpe:0.0.2

Running instruction

Please refer to the runme.sh for the whole reproduction pipeline.

For reproducibility, we uploaded the model checkpoints and pre-calculated features for the test sets at:

  • Liu, L., & Weiß, C. (2024). Utilizing Cross-Version Consistency for Domain Adaptation: A Case Study on Music Audio (Pretrained Models and Features) (0.0.1). Zenodo. https://doi.org/10.5281/zenodo.10936492

cross-version-mpe's People

Contributors

cheriell avatar

Stargazers

Mohammed Kamran avatar Changhong Wang avatar Jiawen Huang avatar Huan Zhang avatar

Watchers

Kostas Georgiou 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.