-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_eval_asr.sh
52 lines (45 loc) · 1.6 KB
/
ft_eval_asr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CUDA_VISIBLE_DEVICES=1 python asr_finetuning.py \
--model_name_or_path EdoAbati/whisper-large-v2-it \
--dataset_name_or_path RiTA-nlp/italic-easy \
--batch_size 4 \
--learning_rate 1e-5 \
--num_train_epochs 5 \
--max_input_length_in_seconds 15 \
--gradient_accumulation_steps 2
CUDA_VISIBLE_DEVICES=1 python asr_finetuning.py \
--model_name_or_path EdoAbati/whisper-large-v2-it \
--dataset_name_or_path RiTA-nlp/italic-hard-speaker \
--batch_size 4 \
--learning_rate 1e-5 \
--num_train_epochs 5 \
--max_input_length_in_seconds 15 \
--gradient_accumulation_steps 2
CUDA_VISIBLE_DEVICES=1 python asr_finetuning.py \
--model_name_or_path EdoAbati/whisper-large-v2-it \
--dataset_name_or_path RiTA-nlp/italic-hard-noisy \
--batch_size 4 \
--learning_rate 1e-5 \
--num_train_epochs 5 \
--max_input_length_in_seconds 15 \
--gradient_accumulation_steps 2
python asr_inference.py \
--model_id models/easy/EdoAbati-whisper-large-v2-it/best_model/ \
--dataset RiTA-nlp/italic-easy \
--split test \
--device 0 \
--batch_size 8 \
--language it >> asr_easy.txt
python asr_inference.py \
--model_id models/speaker/EdoAbati-whisper-large-v2-it/best_model/ \
--dataset RiTA-nlp/italic-hard-speaker \
--split test \
--device 0 \
--batch_size 8 \
--language it >> asr_hard_speaker.txt
python asr_inference.py \
--model_id models/noisy/EdoAbati-whisper-large-v2-it/best_model/ \
--dataset RiTA-nlp/italic-hard-noisy \
--split test \
--device 0 \
--batch_size 8 \
--language it >> asr_hard_noisy.txt