Skip to content

Commit

Permalink
Update evalutils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jun 28, 2023
1 parent 5a7b838 commit 6dd80f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions evalutils/evalutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
first_int_in_filename_key,
)
from .scorers import score_detection
from .validators import DataFrameValidator, UniqueImagesValidator
from .validators import DataFrameValidator

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -80,8 +80,7 @@ def __init__(
Default: `None` (alphanumerical)
validators
A dictionary containing the validators that will be used on the
loaded data per file_loader key. Default:
`evalutils.validators.UniqueImagesValidator` for `input_image`
loaded data per file_loader key. Default: {}
output_file
The path to the location where the results will be written.
Default: `/output/results.json`
Expand All @@ -100,7 +99,7 @@ def __init__(
self._case_results: List[Dict] = []

self._validators: Dict[str, Tuple[DataFrameValidator, ...]] = (
dict(input_image=(UniqueImagesValidator(),))
{}
if validators is None
else validators
)
Expand Down

0 comments on commit 6dd80f1

Please sign in to comment.