bethgelab / foolbox

A Python toolbox to create adversarial examples that fool neural networks in PyTorch, TensorFlow, and JAX
https://foolbox.jonasrauber.de
MIT License
2.73k stars 425 forks source link

Deprecation warning using old scipy namespace for gaussian_filter #702

Open JamesRamsden-Naimuri opened 1 year ago

JamesRamsden-Naimuri commented 1 year ago

Describe the bug foolbox is importing gaussian_filter from the namespace scipy.ndimage.filters, which is deprecated in more recent versions of scipy so yields a deprecation warning. The correct namespace of scipy.ndimage has been available since at least v1.2 so importing from there should support all target versions of Python (3.6 - 3.8).

To Reproduce Install latest stable version of scipy (1.9.3). Run a Gaussian blue attack.

Expected behavior No deprecation warning if newer namespace employed.

Software (please complete the following information):