From c2b35c06fc0713de114e7425a9667dad551dd45c Mon Sep 17 00:00:00 2001 From: Arunabh Date: Sun, 2 Jul 2023 21:35:10 +0200 Subject: [PATCH] Fix deprecation warning: Replace deprecated median_filter import Signed-off-by: Arunabh --- art/defences/preprocessor/spatial_smoothing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/art/defences/preprocessor/spatial_smoothing.py b/art/defences/preprocessor/spatial_smoothing.py index 30a26a4ce8..9485571030 100644 --- a/art/defences/preprocessor/spatial_smoothing.py +++ b/art/defences/preprocessor/spatial_smoothing.py @@ -30,7 +30,7 @@ from typing import Optional, Tuple import numpy as np -from scipy.ndimage.filters import median_filter +from scipy.ndimage import median_filter from art.utils import CLIP_VALUES_TYPE from art.defences.preprocessor.preprocessor import Preprocessor