robustness
robustness copied to clipboard
TypeError in imagenet_c.corrupt with gaussian_blur
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.