Skip to content

Commit

Permalink
Remove dataset.with_empty_annotations() to keep original input stru…
Browse files Browse the repository at this point in the history
…cture (openvinotoolkit#1964)

Remove dataset.with_empty_annotations() call to keep original input structure
  • Loading branch information
goodsong81 committed Apr 4, 2023
1 parent f2a480a commit 884018a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions otx/algorithms/classification/tasks/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def infer(
logger.info("called infer()")
stage_module = "ClsInferrer"
self._data_cfg = self._init_test_data_cfg(dataset)
dataset = dataset.with_empty_annotations()

dump_features = True
dump_saliency_map = not inference_parameters.is_evaluation if inference_parameters else True
Expand Down Expand Up @@ -169,7 +168,6 @@ def explain(
logger.info("called explain()")
stage_module = "ClsExplainer"
self._data_cfg = self._init_test_data_cfg(dataset)
dataset = dataset.with_empty_annotations()

results = self._run_task(
stage_module,
Expand Down

0 comments on commit 884018a

Please sign in to comment.