-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathrun.sh
executable file
·29 lines (25 loc) · 1.05 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
#!/bin/bash
stage="$1" # parse first argument
if [ $stage -eq 0 ]; then
# call main.py; CPC train on LibriSpeech
CUDA_VISIBLE_DEVICES=`free-gpu` python main.py \
--train-raw LibriSpeech/train-Librispeech.h5 \
--validation-raw LibriSpeech/validation-Librispeech.h5 \
--eval-raw LibriSpeech/eval-Librispeech.h5 \
--train-list LibriSpeech/list/train.txt \
--validation-list LibriSpeech/list/validation.txt \
--eval-list LibriSpeech/list/eval.txt \
--logging-dir snapshot/cdc/ \
--log-interval 50 --audio-window 20480 --timestep 12 --masked-frames 10 --n-warmup-steps 1000
fi
if [ $stage -eq 1 ]; then
# call spk_class.py
CUDA_VISIBLE_DEVICES=`free-gpu` python spk_class.py \
--raw-hdf5 LibriSpeech/train-clean-100.h5 \
--train-list LibriSpeech/list/train.txt \
--validation-list LibriSpeech/list/validation.txt \
--eval-list LibriSpeech/list/eval.txt \
--index-file LibriSpeech/spk2idx \
--logging-dir snapshot/cdc/ --log-interval 5 \
--model-path snapshot/cdc/cdc-2018-09-17_22_08_37-model_best.pth
fi