Sobre
CAT é mais do que um kit de ferramentas de ASR baseado em CRF: oferece um fluxo de trabalho completo para ASR de ponta a ponta com uso eficiente de dados e dá suporte ao treinamento e à inferência com CTC, CTC-CRF, RNN-T e modelos de linguagem.
IA e aprendizado de máquinaO que você pode fazer
- CAT contains a full-fledged CUDA/C/C++ implementation of CTC-CRF loss function binding to PyTorch.
- One-stop CTC/CTC-CRF/RNN-T/LM training & inference. See the templates.
- Flexible configuration with JSON. Check the guideline for configuration.
- Scalable and extensible. It is easy to be extended to train tens of thousands of speech data and add new models and tasks.
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- -1
- em 15 dias
- -1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
CAT: CRF-based ASR Toolkit
CAT provides a complete workflow for CRF-based data-efficient end-to-end speech recognition.
See What's New for recently added functionalities and features!
Overview
CAT aims at combining the advantages of both the hybrid and the E2E ASR approches to achieve data-efficiency, by judiciously examining the pros and cons of modularity versus unified neural network, separate optimization versus joint optimization. CAT advocates global normalization modeling and discriminative training in the framework of Conditional Random Field (CRF), currently with Connectionist Temporal Classification (CTC) inspired state topology.
Features
CAT contains a full-fledged CUDA/C/C++ implementation of CTC-CRF loss function binding to PyTorch.
One-stop CTC/CTC-CRF/RNN-T/LM training & inference. See the templates.
Flexible configuration with JSON. Check the guideline for configuration.
Scalable and extensible. It is easy to be extended to train tens of thousands of speech data and add new models and tasks.
Installation
Dependencies
CUDA compatible device, NVIDIA driver installed and CUDA lib available.
PyTorch:
>=1.9.0is required. Installation guide from PyTorchKaldi [optional, but recommended]: used for speech data preparation and some FST-related operations. This is optional for most of the basic functions. Required only when you want to conduct CTC-CRF training.
Besides Kaldi, you could use
torchaudiofor feature extraction. Take a look at data.sh for how to prepare data withtorchaudio.
Clone and install CAT
git clone https://github.com/thu-spmi/CAT.git && cd CAT # Get installation helping message ./install.sh -h # Install with default configurations #./install.shInstall CAT from a prepared source bundle
If the target server cannot run
git cloneor cannot access GitHub reliably, CAT can also be installed from a prepared source bundle. The bundle includes CAT source code and third-party source dependencies that are otherwise fetched by the installer; normal conda/pip packages such as PyTorch can still be installed from configured mirrors.On a machine that can fetch the required sources:
CAT_REPO_ROOT=/path/to/CAT \ OUT_DIR=/path/to/bundles \ bash ./offline_install/build_cat_install_bundle.shThen copy the generated
cat-install-bundle-*.tar.gzto the target server and install:tar -xzf cat-install-bundle-*.tar.gz cd cat-install-bundle-* bash install_cat_bundle.shThe source-bundle installer preserves the module choices of
install.sh, for examplecat,all,ctcdecode,kenlm,ctc-crf,fst-decoder, andg2p-tool.
Getting started
To get started with this project, please refer to TEMPLATE for tutorial.
ASR results
| dataset | evaluation sets | performance |
|---|---|---|
| AISHELL-1 | dev / test | 3.93 / 4.22 |
| Commonvoice German | test | 9.8 |
| Librispeech | test-clean / test-other | 1.94 / 4.39 |
| Switchboard | switchboard / callhome | 6.9 / 14.5 |
| THCHS30 | test | 6.01 |
| Wenetspeech | test-net / test-meeting | 9.32 / 14.66 |
| WSJ | eval92 / dev93 | 2.77 / 5.68 |
Further reading
- Some tips about the usage of third party tools
- Tutorial on building your first CAT project (yesno)
- Step-by-step workflow for CAT-v2
Citation
@inproceedings{xiang2019crf,
title={CRF-based single-stage acoustic modeling with CTC topology},
author={Xiang, Hongyu and Ou, Zhijian},
booktitle={IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
pages={5676--5680},
year={2019},
organization={IEEE}
}
@inproceedings{an2020cat,
title={CAT: A CTC-CRF based ASR toolkit bridging the hybrid and the end-to-end approaches towards data efficiency and low latency},
author={An, Keyu and Xiang, Hongyu and Ou, Zhijian},
booktitle={INTERSPEECH},
pages={566--570},
year={2020}
}
Explore projetos relacionados
Carregando…