Hi - I'm running through the FlyWing notebook example and have been running into a TypingError when reaching the threshold calculation step. I'm running numpy v1.2.6, and I've pasted part of the error below. Any ideas on how to fix this?
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function zeros>) found for signature:
>>> zeros(UniTuple(int64 x 2), dtype=Function(<class 'int'>))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_zeros': File: numba\np\arrayobj.py: Line 4452.
With argument(s): '(UniTuple(int64 x 2), dtype=Function(<class 'int'>))':
Rejected as the implementation raised a specific error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function empty>) found for signature:
>>> empty(UniTuple(int64 x 2), dtype=Function(<class 'int'>))
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'ol_np_empty': File: numba\np\arrayobj.py: Line 4374.
With argument(s): '(UniTuple(int64 x 2), dtype=Function(<class 'int'>))':
Rejected as the implementation raised a specific error:
TypingError: Cannot parse input types to function np.empty(UniTuple(int64 x 2), Function(<class 'int'>))
raised from c:\Users\ezra0001\Anaconda3\envs\DenoiSeg3\lib\site-packages\numba\np\arrayobj.py:4393
During: resolving callee type: Function(<built-in function empty>)
During: typing of call at c:\Users\ezra0001\Anaconda3\envs\DenoiSeg3\lib\site-packages\numba\np\arrayobj.py (4457)
File "..\..\..\..\Anaconda3\envs\DenoiSeg3\lib\site-packages\numba\np\arrayobj.py", line 4457:
def impl(shape, dtype=float):
arr = np.empty(shape, dtype=dtype)
^
raised from c:\Users\ezra0001\Anaconda3\envs\DenoiSeg3\lib\site-packages\numba\core\typeinfer.py:1091
During: resolving callee type: Function(<built-in function zeros>)
During: typing of call at c:\Users\ezra0001\Anaconda3\envs\DenoiSeg3\lib\site-packages\denoiseg\utils\compute_precision_threshold.py (10)
File "..\..\..\..\Anaconda3\envs\DenoiSeg3\lib\site-packages\denoiseg\utils\compute_precision_threshold.py", line 10:
def pixel_sharing_bipartite(lab1, lab2):
<source elided>
assert lab1.shape == lab2.shape
psg = np.zeros((lab1.max() + 1, lab2.max() + 1), dtype=int)
^
Hi - I'm running through the FlyWing notebook example and have been running into a TypingError when reaching the threshold calculation step. I'm running numpy v1.2.6, and I've pasted part of the error below. Any ideas on how to fix this?