Skip to content

Commit f94872e

Browse files
authored
[FIX] Squeeze anomaly maps in metadata (#2310)
* squeeze anomaly map in meta data
1 parent 3fd80f4 commit f94872e

File tree

1 file changed

+1
-1
lines changed
  • otx/algorithms/anomaly/adapters/anomalib/callbacks

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def on_predict_epoch_end(self, _trainer: pl.Trainer, _pl_module: AnomalyModule,
8181
name="Anomaly Map",
8282
type="anomaly_map",
8383
annotation_scene=dataset_item.annotation_scene,
84-
numpy=(anomaly_map * 255).cpu().numpy().astype(np.uint8),
84+
numpy=(anomaly_map * 255).squeeze().cpu().numpy().astype(np.uint8),
8585
)
8686
)
8787

0 commit comments

Comments
 (0)