-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathrunme.sh
executable file
·23 lines (17 loc) · 1.01 KB
/
runme.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# You need to modify the dataset path.
DATA_DIR="/vol/vssp/msos/audioset/packed_features"
# You can to modify to your own workspace.
# WORKSPACE=`pwd`
WORKSPACE="/vol/vssp/msos/qk/workspaces/pub_audioset_classification"
BACKEND="pytorch" # 'pytorch' | 'keras'
MODEL_TYPE="decision_level_single_attention" # 'decision_level_max_pooling'
# | 'decision_level_average_pooling'
# | 'decision_level_single_attention'
# | 'decision_level_multi_attention'
# Train
CUDA_VISIBLE_DEVICES=1 python $BACKEND/main.py --data_dir=$DATA_DIR --workspace=$WORKSPACE --model_type=$MODEL_TYPE train
# Calculate averaged statistics.
python $BACKEND/main.py --data_dir=$DATA_DIR --workspace=$WORKSPACE --model_type=$MODEL_TYPE get_avg_stats
# Calculate the AudioSet embedding feature from a raw audio
CUDA_VISIBLE_DEVICES=3 python extract_audioset_embedding/extract_audioset_embedding.py