robustness icon indicating copy to clipboard operation
robustness copied to clipboard

TypeError in imagenet_c.corrupt with gaussian_blur

Open kzkadc opened this issue 2 years ago • 0 comments

Thank you for creating the valuable dataset and library!

I installed imagenet_c from pip. When calling corrupt function with "gaussian_blur" option, TypeError is raised as the following:

from imagenet_c import corrupt
import numpy as np

x = np.zeros((224, 224, 3), dtype=np.uint8)
x_c = corrupt(x, 3, "gaussian_blur")
# TypeError: gaussian() got an unexpected keyword argument 'multichannel'

I discovered that the error arises from the deprecation of the 'multichannel' argument in a recent version of the skimage. https://scikit-image.org/docs/stable/api/skimage.filters.html#skimage.filters.gaussian

Thank you.

kzkadc avatar Jun 20 '23 09:06 kzkadc