-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
find_objects
throws AttributeError
#355
Comments
Thanks for reporting this @tibuch 🙏 Thanks to your detailed report I could reproduce: !pip install pyarrow
import dask.array as da
from dask_image import ndmeasure
bbox_df = ndmeasure.find_objects(da.ones((10, 10), chunks=(5,5), dtype='int')).compute() Turns out we had come across this issue before and weren't sure whether it's still present (as it currently escapes our CI tests, for more details see here). It's related to a recent change in dask and occurs in the presence of Until the problem is fixed, there's the following workaround: with dask.config.set({"dataframe.convert-string": False}):
bbox_df = ndmeasure.find_objects(da.ones((10, 10), chunks=(5,5), dtype='int')).compute() |
Am no longer able to reproduce this issue. Are others still able to?
|
Works for me with the latest versions 👍 |
Thanks Tim-Oliver! 🙏 |
Describe the issue:
I am trying to use
dask_image.ndmeasure.find_objects
for bounding box detection. I have a label-image (dtype int32) with values [0, 149] ofshape = (249, 1000, 1250)
.This is my dataset: labeling.zarr.zip
This is the error:
Minimal Complete Verifiable Example:
Anything else we need to know?:
Environment:
Full Env:
The text was updated successfully, but these errors were encountered: