forked from f90/Wave-U-Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPredict.py
More file actions
17 lines (14 loc) · 717 Bytes
/
Predict.py
File metadata and controls
17 lines (14 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from sacred import Experiment
from Config import config_ingredient
import Evaluate
import os
ex = Experiment('Waveunet Prediction', ingredients=[config_ingredient])
@ex.config
def cfg():
model_path = os.path.join("checkpoints", "baseline_stereo", "baseline_stereo-186093") # Load stereo vocal model by default
input_path = os.path.join("audio_examples", "The Mountaineering Club - Mallory", "mix.mp3") # Which audio file to separate
output_path = None # Where to save results. Default: Same location as input.
@ex.automain
def main(cfg, model_path, input_path, output_path):
model_config = cfg["model_config"]
Evaluate.produce_source_estimates(model_config, model_path, input_path, output_path)