Spaces:
Running
Running
fix aesthetic eval
Browse files- evaluation/svs_eval.py +2 -2
evaluation/svs_eval.py
CHANGED
|
@@ -80,7 +80,7 @@ def eval_per(audio_path, model=None):
|
|
| 80 |
|
| 81 |
def eval_aesthetic(audio_path, predictor):
|
| 82 |
score = predictor.forward([{"path": str(audio_path)}])
|
| 83 |
-
return
|
| 84 |
|
| 85 |
|
| 86 |
# ----------- Main Function -----------
|
|
@@ -108,7 +108,7 @@ def run_evaluation(audio_path, evaluators):
|
|
| 108 |
if "melody" in evaluators:
|
| 109 |
results.update(eval_melody_metrics(audio_path, evaluators["melody"]))
|
| 110 |
if "aesthetic" in evaluators:
|
| 111 |
-
results.update(eval_aesthetic(audio_path, evaluators["aesthetic"]))
|
| 112 |
return results
|
| 113 |
|
| 114 |
|
|
|
|
| 80 |
|
| 81 |
def eval_aesthetic(audio_path, predictor):
|
| 82 |
score = predictor.forward([{"path": str(audio_path)}])
|
| 83 |
+
return score
|
| 84 |
|
| 85 |
|
| 86 |
# ----------- Main Function -----------
|
|
|
|
| 108 |
if "melody" in evaluators:
|
| 109 |
results.update(eval_melody_metrics(audio_path, evaluators["melody"]))
|
| 110 |
if "aesthetic" in evaluators:
|
| 111 |
+
results.update(eval_aesthetic(audio_path, evaluators["aesthetic"])[0])
|
| 112 |
return results
|
| 113 |
|
| 114 |
|