From a1951c476e8e3076ea279231050b86e7b3266689 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Thu, 1 Feb 2024 10:10:54 +0100 Subject: [PATCH] clean unused imports Signed-off-by: neuronflow --- unit_tests/test_panoptic_evaluator.py | 6 +++--- unit_tests/test_panoptic_result.py | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/unit_tests/test_panoptic_evaluator.py b/unit_tests/test_panoptic_evaluator.py index e69b2b3..b44a6cd 100644 --- a/unit_tests/test_panoptic_evaluator.py +++ b/unit_tests/test_panoptic_evaluator.py @@ -9,9 +9,9 @@ from panoptica.instance_approximator import ConnectedComponentsInstanceApproximator from panoptica.instance_matcher import MaximizeMergeMatching, NaiveThresholdMatching -from panoptica.metrics import Metric, _Metric +from panoptica.metrics import Metric from panoptica.panoptic_evaluator import Panoptic_Evaluator -from panoptica.panoptic_result import MetricCouldNotBeComputedException, PanopticaResult +from panoptica.panoptic_result import MetricCouldNotBeComputedException from panoptica.utils.processing_pair import SemanticPair @@ -74,7 +74,7 @@ def test_simple_evaluation_DSC_partial(self): expected_input=SemanticPair, instance_approximator=ConnectedComponentsInstanceApproximator(), instance_matcher=NaiveThresholdMatching(matching_metric=Metric.DSC), - eval_metrics=[Metric.DSC], + eval_metrics=[Metric.ASSD], ) result, debug_data = evaluator.evaluate(sample) diff --git a/unit_tests/test_panoptic_result.py b/unit_tests/test_panoptic_result.py index 0491111..96c5c64 100644 --- a/unit_tests/test_panoptic_result.py +++ b/unit_tests/test_panoptic_result.py @@ -7,13 +7,9 @@ import numpy as np -from panoptica.instance_approximator import ConnectedComponentsInstanceApproximator -from panoptica.instance_matcher import MaximizeMergeMatching, NaiveThresholdMatching -from panoptica.metrics import Metric, MetricMode, _Metric -from panoptica.panoptic_evaluator import Panoptic_Evaluator +from panoptica.metrics import Metric from panoptica.panoptic_result import MetricCouldNotBeComputedException, PanopticaResult from panoptica.utils.edge_case_handling import EdgeCaseHandler, EdgeCaseResult -from panoptica.utils.processing_pair import SemanticPair class Test_Panoptic_Evaluator(unittest.TestCase):