File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
art/defences/preprocessor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3535
3636from art .config import ART_NUMPY_DTYPE
3737from art .defences .preprocessor .preprocessor import Preprocessor
38- from art .estimators .estimator import NeuralNetworkMixin
39- from art .estimators .classification .classifier import ClassifierMixin
4038
4139if TYPE_CHECKING :
4240 from art .utils import CLIP_VALUES_TYPE , CLASSIFIER_NEURALNETWORK_TYPE
@@ -159,6 +157,8 @@ def _check_params(self) -> None:
159157 if not isinstance (self .eps , (int , np .int )) or self .eps < 0 or self .eps > 255 :
160158 raise ValueError ("The defense parameter must be between 0 and 255." )
161159
160+ from art .estimators .classification .classifier import ClassifierMixin
161+ from art .estimators .estimator import NeuralNetworkMixin
162162 if hasattr (self , "pixel_cnn" ) and not (
163163 isinstance (self .pixel_cnn , ClassifierMixin ) and isinstance (self .pixel_cnn , NeuralNetworkMixin )
164164 ):
You can’t perform that action at this time.
0 commit comments