Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in imagenet_c.corrupt with gaussian_blur #64

Open
kzkadc opened this issue Jun 20, 2023 · 0 comments
Open

TypeError in imagenet_c.corrupt with gaussian_blur #64

kzkadc opened this issue Jun 20, 2023 · 0 comments

Comments

@kzkadc
Copy link

kzkadc commented Jun 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant