Skip to content
Snippets Groups Projects
Unverified Commit c499d726 authored by RangiLyu's avatar RangiLyu Committed by GitHub
Browse files

fix evaluator unit test (#112)

parent 6f69039c
No related branches found
No related tags found
No related merge requests found
# Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Dict, List, Optional
from typing import Any, Dict, List, Optional, Sequence, Tuple
from unittest import TestCase
import numpy as np
......@@ -66,7 +66,8 @@ class UnprefixedEvaluator(BaseEvaluator):
"""Evaluator with unassigned `default_prefix` to test the warning
information."""
def process(self, data_samples: dict, predictions: dict) -> None:
def process(self, data_batch: Sequence[Tuple[Any, BaseDataSample]],
predictions: Sequence[BaseDataSample]) -> None:
pass
def compute_metrics(self, results: list) -> dict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment