Views
No views yet
get_ctc_tokenizer.py to train the CTC tokenizer and then execute the following command to train the CTC system:1#!/usr/bin/env bash
2python run_flax_speech_recognition_ctc.py \
3 --model_name_or_path="esc-benchmark/wav2vec2-ctc-pretrained" \
4 --tokenizer_name="wav2vec2-ctc-ami-tokenizer" \
5 --dataset_name="esc-benchmark/esc-datasets" \
6 --dataset_config_name="ami" \
7 --output_dir="./" \
8 --wandb_project="wav2vec2-ctc" \
9 --wandb_name="wav2vec2-ctc-ami" \
10 --max_steps="50000" \
11 --save_steps="10000" \
12 --eval_steps="10000" \
13 --learning_rate="3e-4" \
14 --logging_steps="25" \
15 --warmup_steps="5000" \
16 --preprocessing_num_workers="1" \
17 --hidden_dropout="0.2" \
18 --activation_dropout="0.2" \
19 --feat_proj_dropout="0.2" \
20 --do_train \
21 --do_eval \
22 --do_predict \
23 --overwrite_output_dir \
24 --gradient_checkpointing \
25 --freeze_feature_encoder \
26 --push_to_hub \
27 --use_auth_token