Coder Social home page Coder Social logo

goy0695 / chad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amanteur/chad

0.0 0.0 0.0 2.75 MB

Official Code of "A Semi-Supervised Deep Learning Approach to Dataset Collection for Query-by-Humming Task" (ISMIR 2023)

License: MIT License

Shell 1.70% Python 79.21% Jupyter Notebook 19.09%

chad's Introduction

CHAD: Cover and Hummings Aligned Dataset

This repository contains the official code of "A Semi-Supervised Deep Learning Approach to Dataset Collection for Query-by-Humming Task" (ISMIR 2023).

The code is used for downloading the dataset.

UPD:

The hummings subset of the dataset is now available on HuggingFace!


Table of Contents

  1. ToDo
  2. Dependencies
  3. Usage
  4. Dataset Structure
  5. Citation

  • Set up the repository
  • Add the dataset download pipeline
  • Include metadata in the download pipeline
  • Write the README.md
  • Upload the humming part of the dataset to HuggingFace

To install all dependencies, run this command:

pip install -r requirements.txt

To download the dataset, you can use the following command:

bash run.sh

This command runs the main.py script, which provides the following command-line options:

Usage: main.py [OPTIONS]

Options:
  --csv-path TEXT          Path to the CSV file containing dataset information
                           [required]
  --tgt-dir TEXT           Target directory for saving audio files and
                           fragments  [required]
  --extension TEXT         Extension of saved audio files
  --download-hf-dataset    Download hummings subset from HuggingFace
  --save-fragments-audios  Save audio fragments
  --save-full-audios       Save full audio files
  --save-metadata          Save YouTube metadata information
  --n-processes INTEGER    Number of processes for parallel processing
  --sr INTEGER             Sample rate for audio
  --mono / --no-mono       Mono or stereo audio
  --help                   Show this message and exit.

By running this command, you initiate the download of audio files firstly, from HuggingFace repo, and secondly, from YouTube and extraction of the necessary fragments from them.

In addition, there is a Jupyter Notebook notebooks/show_examples.ipynb, which displays random excerpts from the dataset.


The metadata/dataset.csv file provides information with the following fields:

  • group_id: An identification code that serves as an identifier for a group of fragments. Essentially, it represents a unique track.
  • fragment_id: An identification code assigned to each fragment within a group. A single group can contain multiple fragment IDs.
  • id: An identification code that represents a specific version of a fragment, which can be a humming, cover, or the original track fragment.
  • audio_type: This field indicates the type of the fragment, which could be categorized as 'original,' 'cover,' or 'humming'.
  • youtube_id: A unique YouTube ID that links to the corresponding video.
  • interval: The interval represents the left and right timestamp boundaries of the fragment within the full audio.
  • correlation: Correlation value from 0 to 1 indicates the degree of similarity between a cover fragment and its original version.
  • check_by_crowdsource: A boolean flag indicating whether the fragment underwent additional crowdsource assessment to determine its similarity to the original.
  • is_available: This field specifies whether the YouTube video related to the fragment is currently available or not.
  • duration: Duration denotes the length of the fragment in seconds.

The downloaded dataset is structured as follows:

├── {GROUP_ID}             
│   ├── {FRAGMENT_ID}        
│       ├── {ID}.{EXTENSION}
│       └── ...
│   └── ...
└── ...

This structured hierarchy organizes the audio files and fragments, making it easier to navigate and work with the dataset.

You can download the dataset directly via HF or using main.py with the flag --download-hf-dataset.

The tar.gz filestructure is the same as in the whole dataset.


Please cite the following paper if you use the code or dataset provided in this repository.

@inproceedings{Amatov2023,
    title={A Semi-Supervised Deep Learning Approach to Dataset Collection for Query-by-Humming Task},
    author={Amatov, Amantur and Lamanov, Dmitry and Titov, Maksim and Vovk, Ivan and Makarov, Ilya and Kudinov, Mikhail},
    year={2023},
}

chad's People

Contributors

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