Code Monkey home page Code Monkey logo

finetune_owsm's Introduction

Wav2Gloss: Generating Interlinear Glossed Text from Speech

Prerequisites

Obtaining the Dataset

Use download_data.sh to automaticall download and extract the Fieldwork dataset. The script requires git lfs.

./download_data.sh

Installation

# conda has to be already installed
bash install.sh

Model Training

# Supported tasks
"transcription", "underlying", "gloss", "translation"

# Supported languages
"taba1259", "tond1251", "kach1280", "arta1239", "vera1241",
"sanz1248", "sumb1241", "nort2641", "kara1499", "mand1415",
"tehr1242", "taul1251", "ainu1240", "even1259", "dolg1241",
"kama1378", "selk1253", "komn1238", "sout2856", "apah1238",
"teop1238", "jeju1234", "ruul1235", "sumi1235", "beja1238",
"kaka1265", "goro1270", "savo1255", "texi1237", "pnar1238",
"nngg1234", "arap1274", "port1286", "trin1278", "bora1263",
"slav1254", "balk1252"

# Single-task Monolingual training
# Example: task=transcription, language=dolg1241
python finetune.py \
    --tasks transcription \
    --langs dolg1241 \
    --devices 1 \
    --batch_size 16 \
    --max_epochs 30 \
    --exp_name transcription_dolg1241

# Single-task Multilingual training
# Example: task=transcription
python finetune.py \
    --tasks transcription \
    --devices 1 \
    --batch_size 16 \
    --exp_name transcription_full

# Multi-task Multilingual training
python finetune.py \
    --devices 1 \
    --batch_size 16 \
    --exp_name all_full

Model evaluation

# Example PATH_TO_CKPT
PATH_TO_CKPT=exps/translation_full_2024-02-06T13:50:02.501140/lightning_logs/version_141479/checkpoints/epoch=5-step=16548.ckpt

python evaluate_model.py \
    --devices 1 \
    --checkpoint_path $PATH_TO_CKPT

finetune_owsm's People

Contributors

juice500ml avatar taiqihe avatar

Watchers

 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.