GithubHelp home page GithubHelp logo

hoang1007 / wav2vec2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.51 MB

Implementation of Wav2Vec2

Python 6.13% Jupyter Notebook 93.87%
speech-processing speech-recognition speech-to-text wav2vec2

wav2vec2's Introduction

Wav2Vec2 ASR

This repository contains a implementation of Wav2Vec2 and also provide codes for fine-tuning on Wav2Vec2-base of Vietnamese.

Demo is available at Hugging Face image info

Prepare Dataset

The code is fine-tunned on VLSP2020 Dataset
Since I mainly train on Google Colab, so I need to convert this dataset to Web Dataset for faster loading from Google Drive

cd finetuning
python preprocess.py --data_dir [DATA_DIR] --dest_dir [DEST_DIR]

where:

  • DATA_DIR: Path of the VLSP2020 data
  • DEST_DIR: The directory where data is extracted in

Fine-tuning

You can view my fine-tuning in this notebook and WandB

cd finetuning
python train.py \
    --batch_size 2 \
    --num_workers 2 \
    --classifier_lr 1e-4 \
    --wav2vec2_lr 1e-5 \
    --max_epochs 3 \
    --accelerator gpu
    --grad_clip 1.0
    --data_dir [DATA_DIR]
    --ckpt_dir [CKPT_DIR]

where:

  • DATA_DIR: The directory that contains extracted data
  • CKPT_DIR: The directory that checkpoint would be saved

Inference

Please view this notebook

wav2vec2's People

Contributors

hoang1007 avatar

Watchers

 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.