diff --git a/anomalib/core/metrics/auroc.py b/anomalib/core/metrics/auroc.py index 35165a9090..ffbc142d9b 100644 --- a/anomalib/core/metrics/auroc.py +++ b/anomalib/core/metrics/auroc.py @@ -14,4 +14,4 @@ def compute(self) -> Tensor: Value of the AUROC metric """ fpr, tpr, _thresholds = super().compute() - return auc(fpr, tpr) + return auc(fpr, tpr, reorder=True) diff --git a/setup.py b/setup.py index 29848d5647..d1ac371de0 100644 --- a/setup.py +++ b/setup.py @@ -94,7 +94,7 @@ def get_required_packages(requirement_files: List[str]) -> List[str]: license="Copyright (c) Intel - All Rights Reserved. " 'Licensed under the Apache License, Version 2.0 (the "License")' "See LICENSE file for more details.", - python_requires=">=3.8", + python_requires=">=3.7", packages=find_packages("."), install_requires=INSTALL_REQUIRES, extras_require=EXTRAS_REQUIRE,