Skip to content

Commit

Permalink
Update test_basic.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MiXaiLL76 authored Sep 13, 2024
1 parent 0aaed08 commit 56f6bcc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import unittest

import numpy as np
from parameterized import parameterized

import faster_coco_eval
import faster_coco_eval.core.mask as mask_util
Expand Down Expand Up @@ -83,8 +82,7 @@ def test_bad_iou_type(self):
cocoDt = cocoGt.loadRes(self.dt_ignore_test_file)
COCOeval_faster(cocoGt, cocoDt, "iouType")

@parameterized.expand([(True,), (False,)])
def test_ignore_coco_eval(self, separate_eval):
def test_ignore_coco_eval(self):
stats_as_dict = {
"AP_all": 0.7099009900990099,
"AP_50": 1.0,
Expand All @@ -111,9 +109,7 @@ def test_ignore_coco_eval(self, separate_eval):

cocoDt = cocoGt.loadRes(self.dt_ignore_test_file, min_score=0.1)

cocoEval = COCOeval_faster(
cocoGt, cocoDt, iouType, separate_eval=separate_eval
)
cocoEval = COCOeval_faster(cocoGt, cocoDt, iouType, separate_eval=True)

cocoEval.run()

Expand Down

0 comments on commit 56f6bcc

Please sign in to comment.