I’m trying to use dask-image filters with cupy and I get an error when using cupy version 12.0.0 but not when using version 10.6.0.
To reproduce the error, I’m using a simple example that I found here (at the bottom of the page).
Using a conda environment with
12.0.0 I run the following code:
import cupy as cp import dask.array as da importdask_image.ndfilters
s = (10, 10) a = da.from_array(cp.arange(int(cp.prod(cp.array(s)))).reshape(s), chunks=5) # <- cupy dask array w = cp.ones(a.ndim * (3,)) # <- cupy dask array result = dask_image.ndfilters.convolve(a, w)
AttributeError: module ‘cupyx.scipy.ndimage’ has no attribute ‘filters’
cupy github, it seems to me that the structure of the package changed after version
So I tired the above code in a conda environment with
2023.03.0 and everything seems to work without error.
Am I doing something wrong or is
dask-image not compatible with recent versions of