Skip to content

Commit aa5247c

Browse files
author
Songki Choi
authored
Revert "Assign label information to heatmap in resultmedia" (#2239)
Revert "Assign label information to heatmap in resultmedia (#2220)" This reverts commit 489c8bc.
1 parent 8d79e47 commit aa5247c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

otx/algorithms/anomaly/adapters/anomalib/callbacks/inference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def on_predict_epoch_end(self, _trainer: pl.Trainer, _pl_module: AnomalyModule,
8080
ResultMediaEntity(
8181
name="Anomaly Map",
8282
type="anomaly_map",
83-
label=dataset_item.annotation_scene.get_labels()[0],
8483
annotation_scene=dataset_item.annotation_scene,
8584
numpy=(anomaly_map * 255).cpu().numpy().astype(np.uint8),
8685
)

otx/algorithms/anomaly/tasks/openvino.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def infer(self, dataset: DatasetEntity, inference_parameters: InferenceParameter
196196
heatmap_media = ResultMediaEntity(
197197
name="Anomaly Map",
198198
type="anomaly_map",
199-
label=label,
200199
annotation_scene=dataset_item.annotation_scene,
201200
numpy=anomaly_map,
202201
)

0 commit comments

Comments
 (0)