From 166c25234724e18e7851463a65ebe0e5359f5b39 Mon Sep 17 00:00:00 2001 From: gferraro Date: Tue, 1 Oct 2024 14:59:18 +0200 Subject: [PATCH] adjust --- src/modelevaluate.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modelevaluate.py b/src/modelevaluate.py index f032f123..b0d30bed 100644 --- a/src/modelevaluate.py +++ b/src/modelevaluate.py @@ -238,12 +238,7 @@ def metadata_confusion(dir, confusion_file, after_date=None, model_metadata=None model_meta = json.load(t) labels = model_meta.get("labels", []) excluded_labels = model_meta.get("excluded_labels", {}) - remapped = model_meta.get("remapped_labels", {}) - remapped_labels = {} - # slightly different format than from thermaldataset - for mapped_to, mapped_labels in remapped.items(): - for mapped_label in mapped_labels: - remapped_labels[mapped_label] = mapped_to + remapped_labels = model_meta.get("remapped_labels", {}) else: labels = [ "bird",