forked from moodoki/tfnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (45 loc) · 2.43 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
DOWNSAMPLE_RATES=2 4 8
OUT_DIR=./logdir
DATA_DIR=./tfrecord_datasets
k2017_vctk_p225=$(addprefix $(OUT_DIR)/kuleshov2017/vctk-p225/ds,$(DOWNSAMPLE_RATES))
k2017_vctk_m=$(addprefix $(OUT_DIR)/kuleshov2017/vctk-multispeaker/ds,$(DOWNSAMPLE_RATES))
tfnet2018_vctk_p225=$(addprefix $(OUT_DIR)/tfnet2018/vctk-p225/ds,$(DOWNSAMPLE_RATES))
tfnet2018_vctk_m=$(addprefix $(OUT_DIR)/tfnet2018/vctk-multispeaker/ds,$(DOWNSAMPLE_RATES))
all:
all_baselines: $(OUT_DIR)/kuleshov2017 $(OUT_DIR)/tfnet
$(OUT_DIR)/kuleshov2017: $(k2017_vctk_p225) $(k2017_vctk_m)
k2017_p225: $(k2017_vctk_p225)
k2017_multispeaker: $(k2017_vctk_m)
$(k2017_vctk_p225): presets-flags/kuleshov-et-al-2017.flags
python train.py --flagfile=$< \
--trainset=$(DATA_DIR)/vctk-p225-train-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--testset=$(DATA_DIR)/vctk-p225-val-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--downsample_rate=`echo -n $@|tail -c -1`\
--model_dir=$@
$(k2017_vctk_m): presets-flags/kuleshov-et-al-2017.flags
python train.py --flagfile=$< \
--trainset=$(DATA_DIR)/vctk-multispeaker-train-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--testset=$(DATA_DIR)/vctk-multispeaker-val-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--downsample_rate=`echo -n $@|tail -c -1`\
--model_dir=$@
tfnet_baselines: $(OUT_DIR)/tfnet2018
$(OUT_DIR)/tfnet2018: $(OUT_DIR)/tfnet2018/vctk-p225 $(OUT_DIR)/tfnet2018/vctk-multispeaker
$(OUT_DIR)/tfnet2018/vctk-p225: tfnet_baseline_p225
$(OUT_DIR)/tfnet2018/vctk-multispeaker: tfnet_baseline_multispeaker
tfnet_baseline_p225: $(tfnet2018_vctk_p225)
tfnet_baseline_multispeaker: $(tfnet2018_vctk_m)
$(tfnet2018_vctk_p225): presets-flags/tfnet-2018.flags
python train.py --flagfile=$< \
--trainset=$(DATA_DIR)/vctk-p225-train-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--testset=$(DATA_DIR)/vctk-p225-val-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--downsample_rate=`echo -n $@|tail -c -1`\
--model_dir=$@
$(tfnet2018_vctk_m): presets-flags/tfnet-2018.flags
python train.py --flagfile=$< \
--trainset=$(DATA_DIR)/vctk-multispeaker-train-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--testset=$(DATA_DIR)/vctk-multispeaker-val-16000-downsample-`echo -n $@|tail -c -1`.tfrecord\
--downsample_rate=`echo -n $@|tail -c -1`\
--model_dir=$@
clean_baselines:
rm -rf $(OUT_DIR)/kuleshov2017
.PHONY: all all_baselines clean_baselines tfnet_baselines tfnet_baseline_p225 tfnet_baseline_multispeaker