Skip to content

Commit

Permalink
⚠️ add deprecation warning to denormalize class (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
djdameln committed Oct 13, 2022
1 parent 39d895a commit c1f51a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions anomalib/pre_processing/transforms/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import warnings
from typing import List, Optional, Tuple

import numpy as np
Expand All @@ -19,6 +20,7 @@ def __init__(self, mean: Optional[List[float]] = None, std: Optional[List[float]
mean: Mean
std: Standard deviation.
"""
warnings.warn("Denormalize is no longer used and will be deprecated in v0.4.0")
# If no mean and std provided, assign ImageNet values.
if mean is None:
mean = [0.485, 0.456, 0.406]
Expand Down

0 comments on commit c1f51a6

Please sign in to comment.