Skip to content

Commit a734443

Browse files
author
Songki Choi
authored
Remove dataset.with_empty_annotations() to keep original input structure (#1964)
Remove dataset.with_empty_annotations() call to keep original input structure
1 parent 354a28d commit a734443

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

otx/algorithms/classification/tasks/inference.py

-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def infer(
127127
logger.info("called infer()")
128128
stage_module = "ClsInferrer"
129129
self._data_cfg = self._init_test_data_cfg(dataset)
130-
dataset = dataset.with_empty_annotations()
131130

132131
dump_features = True
133132
dump_saliency_map = not inference_parameters.is_evaluation if inference_parameters else True
@@ -169,7 +168,6 @@ def explain(
169168
logger.info("called explain()")
170169
stage_module = "ClsExplainer"
171170
self._data_cfg = self._init_test_data_cfg(dataset)
172-
dataset = dataset.with_empty_annotations()
173171

174172
results = self._run_task(
175173
stage_module,

0 commit comments

Comments
 (0)