Automatic Speech Recognition
Transformers
TensorBoard
wav2vec2
edinburghcstr/ami
Generated from Trainer
Eval Results (legacy)
Instructions to use tz579/example_asr_wav2vec2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tz579/example_asr_wav2vec2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="tz579/example_asr_wav2vec2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("tz579/example_asr_wav2vec2") model = AutoModelForCTC.from_pretrained("tz579/example_asr_wav2vec2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download run.timit.sh from tz579/example_asr_wav2vec2: direct link, hf CLI and curl.
- Browser
- Download file 918 Bytes
-
https://huggingface.co/tz579/example_asr_wav2vec2/resolve/main/run.timit.sh
- Command line
-
hf download hf://tz579/example_asr_wav2vec2/run.timit.sh
-
curl -L -o run.timit.sh https://huggingface.co/tz579/example_asr_wav2vec2/resolve/main/run.timit.sh
918 Bytes
| export HF_TOKEN=`cat /home/huggingface.token` | |
| export HF_HOME="/home/Work/common_huggingface" | |
| python run_speech_recognition_ctc.py \ | |
| --token="${HF_TOKEN}" \ | |
| --dataset_name="timit_asr" \ | |
| --dataset_path="/home/Work_/common_darpa/Timit_data/data" \ | |
| --model_name_or_path="facebook/wav2vec2-base" \ | |
| --overwrite_output_dir \ | |
| --output_dir="./wav2vec2-base-timit-fine-tuned" \ | |
| --train_split_name="train" \ | |
| --num_train_epochs="20" \ | |
| --per_device_train_batch_size="32" \ | |
| --per_device_eval_batch_size="1" \ | |
| --weight_decay="0.005" \ | |
| --learning_rate="1e-4" \ | |
| --warmup_steps="1000" \ | |
| --evaluation_strategy="steps" \ | |
| --text_column_name="text" \ | |
| --save_steps="400" \ | |
| --eval_steps="100" \ | |
| --logging_steps="10" \ | |
| --layerdrop="0.0" \ | |
| --save_total_limit="3" \ | |
| --freeze_feature_encoder \ | |
| --chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” � \ | |
| --fp16 \ | |
| --group_by_length \ | |
| --push_to_hub \ | |
| --do_train --do_eval \ | |