Skip to content

Commit

Permalink
clean unused imports
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <[email protected]>
  • Loading branch information
neuronflow committed Feb 1, 2024
1 parent dbf9d0b commit a1951c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions unit_tests/test_panoptic_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions unit_tests/test_panoptic_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a1951c4

Please sign in to comment.