-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
30 lines (19 loc) · 1.18 KB
/
run.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
#!/bin/bash
# Split the ravdess dataset
python utils/ravdess_data_split.py
# Fine-tune the pre-trained wav2vec 2.0 model based on the ravdess dataset
python ravdess_finetune.py train --validation --epoch 20 --cuda --freeze
python ravdess_finetune.py train --epoch 20 --cuda --freeze
# Generate the embeddings for ravdess dataset
python ravdess_inference.py inference_w2v --cuda
# Generate the base log Mel spectrograms and graph for the demos dataset
python ravdess_features.py generate_features --num_neighbors 3 --validation
python ravdess_features.py generate_features --num_neighbors 6 --validation
python ravdess_features.py generate_features --num_neighbors 9 --validation
python ravdess_features.py generate_features --num_neighbors 3
python ravdess_features.py generate_features --num_neighbors 6
python ravdess_features.py generate_features --num_neighbors 9
# VGG model development
python main.py train --target_layer 'fc1' --num_neighbors 3 --multiplier 0.1 --base_model 'vgg15'
python main.py train --target_layer 'fc1' --num_neighbors 6 --multiplier 0.1 --base_model 'vgg15'
python main.py train --target_layer 'fc1' --num_neighbors 9 --multiplier 0.1 --base_model 'vgg15'