这是indexloc提供的服务,不要输入任何密码
Skip to content

TypeError in imagenet_c.corrupt with gaussian_blur #64

@kzkadc

Description

@kzkadc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions