Skip to content

Commit c8c5d22

Browse files
Mirror Anomaly ModelAPI changes (#2531)
* Migrate anomaly exportable code to modelAPI (#2432) * Fix license in PR template * Migrate to modelAPI * Remove color conversion in streamer * Remove reverse_input_channels * Add float * Remove test as metadata is no longer used * Remove metadata from load method * remove anomalib openvino inferencer * fix signature * Support logacy OpenVINO model * Transform image * add configs
1 parent 39ec80b commit c8c5d22

File tree

13 files changed

+143
-342
lines changed

13 files changed

+143
-342
lines changed

src/otx/algorithms/anomaly/adapters/anomalib/exportable_code/__init__.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/otx/algorithms/anomaly/adapters/anomalib/exportable_code/anomaly_classification.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/otx/algorithms/anomaly/adapters/anomalib/exportable_code/anomaly_detection.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/otx/algorithms/anomaly/adapters/anomalib/exportable_code/anomaly_segmentation.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/otx/algorithms/anomaly/adapters/anomalib/exportable_code/base.py

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/otx/algorithms/anomaly/tasks/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def _add_metadata_to_ir(self, model_file: str, export_type: ExportType) -> None:
357357
if "min" in metadata and "max" in metadata:
358358
extra_model_data[("model_info", "normalization_scale")] = metadata["max"] - metadata["min"]
359359

360-
extra_model_data[("model_info", "reverse_input_channels")] = True
360+
extra_model_data[("model_info", "reverse_input_channels")] = False
361361
extra_model_data[("model_info", "model_type")] = "AnomalyDetection"
362362
extra_model_data[("model_info", "labels")] = "Normal Anomaly"
363363
if export_type == ExportType.OPENVINO:

0 commit comments

Comments
 (0)