deepcell-tf icon indicating copy to clipboard operation
deepcell-tf copied to clipboard

cant reproduce the simple Nuclear-Application notebook

Open amosaNN opened this issue 3 years ago • 5 comments

Describe the bug

when running the notebook on your data (not changing a single line of code), encountering the following error:

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

To Reproduce Steps to reproduce the behavior:

  1. Run from deepcell.datasets.tracked import hela_s3
  2. Enter '....'
  3. See error deepcell_toolbox/compute_overlap.pyx in init deepcell_toolbox.compute_overlap()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Expected behavior the notebook should run like it does in the github example

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS, Windows
  • Version 11.6, 11
  • Python Version 3.9

Additional context Add any other context about the problem here.

amosaNN avatar Jun 29 '22 10:06 amosaNN

Encountering the same: image

OS: macOS numpy: 1.21.5 tensorflow: 2.8.5 Python: 3.9

filipkrasniqi avatar Nov 07 '22 15:11 filipkrasniqi

Has this issue been resolved? I am facing a similar problem as well.

ashishshel avatar Jul 31 '23 16:07 ashishshel

Thanks for reporting - I suspect this is related to the Cython 3.0 release. We'll try to get a patch out ASAP. In the meantime, if you are running in a locally-managed environment, you can try installing Cython<3 when you install deepcell-toolbox.

rossbar avatar Jul 31 '23 16:07 rossbar

I am running it on a cloud based linux machine. I thought deep cell-toolbox is installed when I install the deepcell-tf pipeline using docker. Am I right or would I need to install it separately? If so could you help me with that?

ashishshel avatar Aug 01 '23 02:08 ashishshel

This should be fixed (at least the numpy/cython issue) with the latest 0.12.7 release.

rossbar avatar Aug 04 '23 17:08 rossbar