-
Notifications
You must be signed in to change notification settings - Fork 0
/
baseline.yaml
83 lines (71 loc) · 1.52 KB
/
baseline.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
feature:
data_root: midisynth_dataset-v1
torchaudio_backend: sox_io # use soundfile for windows
feat_name: fbank
feat_param:
num_mel_bins: &n_feat 128
data:
train:
csv_path: midisynth_dataset-v1/leave-instrument-out/train.csv
dataloader:
batch_size: 64
shuffle: True
num_workers: 12
val:
csv_path: midisynth_dataset-v1/leave-instrument-out/test.csv
dataloader:
batch_size: 64
num_workers: 12
test:
csv_path: midisynth_dataset-v1/leave-instrument-out/test.csv
dataloader:
batch_size: 64
num_workers: 12
trainer:
epochs: 100
optimizer: adam
learning_rate: 3e-4
loss_fn: crossentropy
checkpoint_dir: weights
save_every: 5 # epoch
model:
channel_first: False
feat_dim: *n_feat
n_class: &n_class 12
cnn:
- in_channel: *n_feat
out_channel: 256
kernel_size: 7
stride: 1
padding: "same"
activation: "relu"
- in_channel: 256
out_channel: 512
kernel_size: 7
stride: 2
padding: "valid"
activation: "relu"
- in_channel: 512
out_channel: 512
stride: 1
kernel_size: 5
padding: "same"
activation: "relu"
- in_channel: 512
out_channel: 1024
stride: 2
kernel_size: 5
padding: "valid"
activation: "relu"
pooling:
method: gap
dropout: 0.2
# rnn:
# name: lstm
# param:
# input_size: 512
# hidden_size: 512
# bidirectional: True
linear:
- feat_in: 1024
feat_out: *n_class