Giter VIP home page Giter VIP logo

star-adapt's Introduction

Self-Taught Recognizer: Toward Unsupervised Adaptation for Speech Foundation Models

[Paper]

This work proposes a source-free unsupervised domain adaptation approach for speech foundation models.

Conda Environment Configuration

Our conda environment is provided via the file requirements.txt, please run the command below to install necessary packages:

pip install -r requirements.txt

Data Preparation

Our code requires two kaldi-format data files: wav.scp and text.

  • wav.scp contains a list of audio files, each line includes sample ID and absolute audio path:

    utt_1  /your-data-path/1.wav
    utt_2  /your-data-path/2.wav
    
  • text contains a list of ground-truth transcriptions, each line includes sample ID and transcription:

    utt_1  i feel good
    utt_2  he is coming back
    

NOTE: each line in above two files should be paired.

Training

Please refer to our training script finetune.sh and specify some settings:

  • dataset: training data name;
  • model_size: whisper model size;
  • train_data: training data directory that contains files wav.scp and text;
  • dev_data: development data directory that contains files wav.scp and text;

Then, please run command bash finetune.sh to start training. The model weights will be saved at runs/{dataset}_{model_size}.

Inference

Please refer to our inference script inference.sh and specify some settings:

  • dataset: training data name;
  • model_size: whisper model size;
  • checkpoint: path of the trained model checkpoint (.pth file);
  • test_data: test data directory that contains files wav.scp and text;

Please run command bash inference.sh for inference. WER results would be printed in the log.

References

We kindly hope you can cite our paper in your publication when using our research or code:

@article{hu2024self,
  title={Self-Taught Recognizer: Toward Unsupervised Adaptation for Speech Foundation Models},
  author={Hu, Yuchen and Chen, Chen and Yang, Chao-Han Huck and Qin, Chengwei and Chen, Pin-Yu and Chng, Eng Siong and Zhang, Chao},
  journal={arXiv preprint arXiv:2405.14161},
  year={2024}
}

star-adapt's People

Contributors

yuchen005 avatar

Stargazers

Theresa Pekarek Rosin avatar Pawel Cyrta avatar  avatar Yehor Smoliakov avatar Volodymyr Kyrylov avatar Bharath avatar Ruizhe Li avatar  avatar Kumiko Lau avatar Yogesh Chidambarnathan avatar Dia avatar Daniel Lee Kim avatar Margaret Wong avatar Alexandria Holden avatar Ana Nomie avatar  avatar 幼馴染 avatar GuaGuaBear avatar 安琪 avatar charlieJ avatar Tianshu Xin avatar Yuan Yang avatar 厦漳泉 avatar Yue avatar Wendy avatar Ken avatar €2020% avatar Mose Zhao avatar  avatar Jayakumar Barn avatar 人工智能达人 avatar Grokking Yalong avatar Jianxi Li (Super Leon) avatar 王正君 avatar Mar1o avatar Yuzhc avatar  avatar hellozim22 avatar 上海一女子 avatar Denise Turner DVM avatar  avatar Cynthia Xin avatar  avatar 杨尚旭 avatar 可爱的二代火影 avatar timothy Rasinski avatar Elisabeth Lucci avatar Domen Yao avatar Zeng Xiangyun avatar 魔鬼·珺 avatar Jack Mu avatar  avatar Jialu W. avatar  avatar Qiong Yang avatar Maxime Vidal avatar  avatar int const change; avatar  avatar Zoff Peng avatar  avatar Calc Zedonia avatar 普瑞迈德 avatar Poyeh Li avatar 生死有命富贵在天 avatar CarlCarly7 avatar Nowwa avatar 王时乐 avatar The Coder Cat avatar  avatar Hansheng GUO avatar Hui Shi avatar David Qiao avatar Vicki Cheung avatar  avatar A Normal Programmer avatar  avatar Kirsten Price avatar Golden Chen avatar Yuanli Xiao avatar Token2019 avatar Shilin Wang avatar Nexta avatar Cloud架构师李上天 avatar the antenna avatar 翟鸣 avatar Mohammed E.A. avatar Farming Tong avatar  avatar Wood Cloudy avatar  avatar Pika avatar  avatar Slice avatar 88250 avatar ZXMu avatar Sakura {Find} °On the floor° avatar Gerth Broberg avatar Mirror avatar Senior Algorithm Developer avatar

Watchers

 avatar

star-adapt's Issues

Data preparation is VERY SLOW

First of all, thanks for your work!

I have made a fork of this project - https://github.com/egorsmkv/STAR-Adapt-uk

My test has shown that the fine-tuning is very slow (the process of feature extraction / data preparation).

Dataset (Common Voice 10, Ukrainian subset):

  • test: 3789 files
  • train: 40958 files

The process maybe almost 15 hours...


Is there a way to speed it up?

Is there a checkpoint?

Interesting study! I want to test it out and run it.

Are learned checkpoints not provided?

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.