Skip to content

Commit

Permalink
remove debugging residuals
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoussallam committed Jul 17, 2020
1 parent 227020c commit 137fca6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions spleeter/commands/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,11 @@ def entrypoint(arguments, params):
if not exists(musdb_root_directory):
raise IOError(f'musdb directory {musdb_root_directory} not found')
# Separate musdb sources.
verbose = arguments.verbose
if verbose:
print("Separating audio files")
audio_output_directory = _separate_evaluation_dataset(
arguments,
musdb_root_directory,
params)
# Compute metrics with musdb.
if verbose:
print("Compute Metrics with musdb")
metrics_output_directory = _compute_musdb_metrics(
arguments,
musdb_root_directory,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def generate_fake_eval_dataset(path):
def test_evaluate(path="FAKE_MUSDB_DIR"):
generate_fake_eval_dataset(path)
p = create_argument_parser()
arguments = p.parse_args(["evaluate", "-p", "spleeter:4stems", "--mus_dir", path, '--verbose'])
arguments = p.parse_args(["evaluate", "-p", "spleeter:4stems", "--mus_dir", path])
params = load_configuration(arguments.configuration)
metrics = evaluate.entrypoint(arguments, params)
for instrument, metric in metrics.items():
Expand Down

0 comments on commit 137fca6

Please sign in to comment.