-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
38 lines (32 loc) · 1.08 KB
/
Copy pathconfig.py
File metadata and controls
38 lines (32 loc) · 1.08 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
import os
# Directory paths
data_dir = 'dataset/'
pred_dir = "predictions/"
save_dir = 'models/'
simple_data_dir = "simple_dataset/"
# Model-specific names and paths
model = 'Muzip3'
experiment = 'Muzip3_1'
model_name = "{}_{}".format(model, experiment)
model_save_dir = os.path.join(save_dir, model)
model_save_path = os.path.join(model_save_dir, model_name)
model_weights_save_path = os.path.join(model_save_dir, model_name + '_weights')
model_predictions_dir = os.path.join(pred_dir, model)
model_predictions_path = os.path.join(model_predictions_dir, model_name)
# Model settings and params
train = False
pred = False
evaluate = True
num_epochs = 10
# Training settings and params
save_model = True # Save model at end of training?
restart = False # If false then it restores the model from the ckpt file specified in save_dir
# Misc:
frame_rate = 44100
def setup():
# Create directories required
# Should only run once at beginning!!!!!!
directories = [data_dir, pred_dir, save_dir, simple_data_dir]
for directory in directories:
if not os.path.exists(directory):
os.makedirs(directory)