-
Notifications
You must be signed in to change notification settings - Fork 0
/
runme.train.sh
executable file
·29 lines (21 loc) · 1.37 KB
/
runme.train.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
#!/bin/bash
# You need to modify the dataset path.
# DATA_DIR="/work/audio/audiosetdl"
#DATA_DIR="/work/audio/mfcc_features"
#DATA_DIR="/work/audio/wav_path_features-44.1k"
#DATA_DIR="/work/audio/wav_path_features" obsolete, replaced by vp.DATA_DIR
# You can to modify to your own workspace.
WORKSPACE=`pwd`/work
BACKEND="keras" # 'pytorch' | 'keras'
MODEL_TYPE="crnn_sed"
#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=0,1 python $BACKEND/main.py --workspace=$WORKSPACE --model_type=$MODEL_TYPE train
#CUDA_VISIBLE_DEVICES=1 python $BACKEND/main.py --data_dir=$DATA_DIR --workspace=$WORKSPACE --model_type=$MODEL_TYPE --mini_data train
#CUDA_VISIBLE_DEVICES=1 python -m cProfile -o profile.stats $BACKEND/main.py --data_dir=$DATA_DIR --workspace=$WORKSPACE --model_type=$MODEL_TYPE --mini_data 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