forked from CPJKU/madmom_models
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
52 lines (39 loc) · 1.51 KB
/
Copy path__init__.py
File metadata and controls
52 lines (39 loc) · 1.51 KB
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
# encoding: utf-8
"""
Models package.
Please see the LICENSE file for licensing details of this package.
"""
from __future__ import absolute_import, division, print_function
import os
import glob
path = os.path.dirname(__file__)
# beats
BEATS_LSTM = sorted(glob.glob('%s/beats/2016/beats_lstm_[1-8].pkl' % path))
BEATS_BLSTM = sorted(glob.glob('%s/beats/2015/beats_blstm_[1-8].pkl' % path))
# downbeats
DOWNBEATS_BLSTM = sorted(glob.glob(
'%s/downbeats/2016/downbeats_blstm_[1-8].pkl' % path))
DOWNBEATS_BGRU = [
sorted(glob.glob(
'%s/downbeats/2016/downbeats_bgru_rhythmic_*.pkl' % path)),
sorted(glob.glob(
'%s/downbeats/2016/downbeats_bgru_harmonic_*.pkl' % path))]
# notes
NOTES_BRNN = sorted(glob.glob('%s/notes/2013/notes_brnn.pkl' % path))
# onsets
ONSETS_RNN = sorted(glob.glob('%s/onsets/2013/onsets_rnn_[1-8].pkl' % path))
ONSETS_BRNN = sorted(glob.glob('%s/onsets/2013/onsets_brnn_[1-8].pkl' % path))
ONSETS_BRNN_PP = sorted(glob.glob('%s/onsets/2014/onsets_brnn_pp_[1-8].pkl' %
path))
ONSETS_CNN = sorted(glob.glob('%s/onsets/2013/onsets_cnn.pkl' % path))
# patterns
PATTERNS_BALLROOM = sorted(
glob.glob('%s/patterns/2013/ballroom_pattern_[34]_4.pkl' % path))
# chroma
CHROMA_DNN = ['%s/chroma/2016/chroma_dnn.pkl' % path]
# chords
CHORDS_DCCRF = ['%s/chords/2016/chords_dccrf.pkl' % path]
CHORDS_CNN_FEAT = ['%s/chords/2016/chords_cnnfeat.pkl' % path]
CHORDS_CFCRF = ['%s/chords/2016/chords_cnncrf.pkl' % path]
# keep namespace clean
del os, glob, path