Git Product home page Git Product logo

stats403_acoustic_unit_discovery's Introduction

Quick start

Dependencies

  1. Install pytorch https://pytorch.org/get-started
  2. pip install -r requirements.txt
  3. Follow the instruction here to install nvidia apex, note that only the python-build is required i.e. pip install -v --disable-pip-version-check --no-cache-dir ./

Scripts

  1. Run preprocess.sh to extract spectrogram features, saved in datasets/feats
  2. Run python vq_vae/train.py, models are saved in exp/zerospeech_vae
  3. Run python vq_vae/encode.py ++checkpoint=<checkpoint_path>, outputs are saved in exp/zerospeech_vae
    • (Optional) Run python vq_vae/visualize_encodings.py to plot VQ-VAE encoding outputs, saved in exp/zerospeech_vae/encode

ABX testing

  1. Prepare python environment as described here
  2. Run preprocess_and_encode_zerospeech.sh, results are saved in zerospeech_data
  3. Run
ZEROSPEECH2020_DATASET=/mnt/e/datasets/zerospeech2020/2020 \
  zerospeech2020-evaluate 2019 -j10 zerospeech2020_datasets/submission

Results

L1 only

{
  "2019": {
    "english": {
      "scores": {
        "abx": 39.86074224642665,
        "bitrate": 387.90274352928196
      },
      "details_bitrate": {
        "test": 387.90274352928196
      },
      "details_abx": {
        "test": {
          "cosine": 39.86074224642665,
          "KL": 50.0,
          "levenshtein": 42.31439953566402
        }
      }
    }
  }
}

L1+L2

{
  "2019": {
    "english": {
      "scores": {
        "abx": 40.45447005042622,
        "bitrate": 404.3762622526002
      },
      "details_bitrate": {
        "test": 404.3762622526002
      },
      "details_abx": {
        "test": {
          "cosine": 40.45447005042622,
          "KL": 50.0,
          "levenshtein": 42.71491717354263
        }
      }
    }
  }
}

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.