Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RangiLyu committed Mar 3, 2023
1 parent 1fae165 commit d95c9fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mmeval/metrics/lvis_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LVISDetection(COCODetection):
proposal_nums (int): Numbers of proposals to be evaluated.
Defaults to 300.
metric_items (List[str], optional): Metric result names to be
recorded in the evaluation result. If None, default configurations
recorded in the evaluation result. If None, default configurations
in LVIS will be used.Defaults to None.
format_only (bool): Format the output results without performing
evaluation. It is useful when you want to format the result
Expand Down Expand Up @@ -172,7 +172,8 @@ def __call__(self, *args, **kwargs) -> Dict:

return metric_result

def compute_metric(self, results: list) -> Dict[str, Union[float, list]]: # type: ignore
def compute_metric( # type: ignore
self, results: list) -> Dict[str, Union[float, list]]:
"""Compute the LVIS metrics.
Args:
Expand Down

0 comments on commit d95c9fa

Please sign in to comment.