GithubHelp home page GithubHelp logo

fyremael / cqtdiff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eloimoliner/cqtdiff

0.0 0.0 0.0 3.52 MB

Official repository of the paper "Solving Audio Inverse Problems with a Diffusion Model", submitted to ICASSP 23

License: MIT License

Shell 0.28% C++ 0.02% Python 3.75% Cuda 0.19% Jupyter Notebook 95.75%

cqtdiff's Introduction

CQTDiff: Solving audio inverse problems with a diffusion model

Official repository of the paper:

E. Moliner,J. Lehtinen and V. Välimäki, "Solving audio inverse problems with a diffusion model", submitted to IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP), Rhodes, Greece May, 2023

Read the paper in arXiv Listen to our audio samples

Open In Colab

Setup

This repository requires Python 3.8+ and Pytorch 1.10+. Other packages are listed in requirements.txt.

To install the requirements in your environment:

pip install -r requirements.txt

To install the pre-trained weights and download a set of audio samples from the MAESTRO test set, run:

bash download_weights_and_examples.sh

Training

To retrain the model, run:

mkdir experiments/my_experiment
python train.py  model_dir="experiments/my_experiment"

To change the configuration, override the hydra parameters (listed in conf/conf.yaml)

By default, the training scripts log to wandb. Set log=False if this is not desired.

python train.py log=False

Testing

To easily test our method, we recommend running the Colab Notebook, where some of the experiments are implemented.

To run it locally, use:

python sample.py \
        inference.load.load_mode="from_directory" \
        inference.load.data_directory="$path_to_audio_files" \
        inference.mode=$test_mode

The variable $test_mode selects the type of experiments. Examples are: "bandwidth_extension", "inpainting" or "declipping". There are many other parameters to select listed in the inference section from conf/conf.yaml. Some experiment examples are located in the directory scripts/.

Remarks

The model is trained using the MAESTRO dataset, the performance is expected to decrease in out-of-distribution data.

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.