-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.lua
36 lines (30 loc) · 1000 Bytes
/
config.lua
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
local cfg = {
genres = {'classical','country','hip-hop','rock','tropical-house'},
files = 250, -- num slices per genre to use in final dataset
valRatio = 0.3, -- validation ratio
testRatio = 0.1, -- test ratio
slicesPerGenre = 1000, -- num slices per genre initially created
slice = 128, -- slice size
-- Directories for files
dir = {
data = '../Data/', -- original music directory separated by genre
spec = "./Spectrograms/", -- store initial spectrograms here
slices = "./Slices/", -- store ~2 second spectrogram slices here
dataset = "./Dataset/", -- store serialized instances and labels for train and test
raw = "./Raw/" -- store tmp files
},
-- Spectrogram params
spect = {
pps = 50, -- spectrogram resolution (pixels per second)
sliceSz = 128, -- slice size
stride = 128,
window_type = 'rect'
},
-- Model Params
model = {
batchSize = 1, -- input size: 1 x slice x slice
lr = 0.001,
epochs = 20
}
}
return cfg