-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtrain_model.sh
More file actions
executable file
·33 lines (27 loc) · 849 Bytes
/
train_model.sh
File metadata and controls
executable file
·33 lines (27 loc) · 849 Bytes
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
#!/bin/bash
# Fernando López Gavilánez, 2023
# Audio dataset path
data_path='/home/wfl/Projects/donateacry-corpus/donateacry_corpus_cleaned_and_updated_data'
partition_path='partitions/partition_20230302151711'
# Results folder
results_path='models/checkpoints'
# Set training parameters
seed=2023
optimizer='adam'
momentum=0.9
weight_decay=0.0
epochs=80
batch_size=12
patience=10
lr=0.001
cuda=false
# arch
# augments
# Audio config
window_size=3.0
sampling_rate=16000
python -u src/train_and_evaluate.py --seed $seed --optimizer $optimizer \
--momentum $momentum --weight_decay $weight_decay --epochs $epochs --batch_size $batch_size \
--patience $patience --lr $lr --cuda $cuda --use_sampler --window_size $window_size \
--sampling_rate $sampling_rate --data_path $data_path --partition_path $partition_path \
--results_path $results_path