Skip to content

hello, scrfd have some question #145

@mjc12326

Description

@mjc12326

错误详情: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function() found for signature:

getitem(array(float32, 1d, C), Tuple(int64, Literalint))

There are 22 candidate implementations:
- Of which 20 did not match due to:
Overload of function 'getitem': File: : Line N/A.
With argument(s): '(array(float32, 1d, C), UniTuple(int64 x 2))':
No match.
- Of which 1 did not match due to:
Overload in function 'GetItemBuffer.generic': File: numba/core/typing/arraydecl.py: Line 211.
With argument(s): '(array(float32, 1d, C), UniTuple(int64 x 2))':
Rejected as the implementation raised a specific error:
NumbaTypeError: cannot index array(float32, 1d, C) with 2 indices: UniTuple(int64 x 2)
raised from /usr/local/lib/python3.10/dist-packages/numba/core/typing/arraydecl.py:133
- Of which 1 did not match due to:
Overload in function 'GetItemBuffer.generic': File: numba/core/typing/arraydecl.py: Line 211.
With argument(s): '(array(float32, 1d, C), Tuple(int64, Literalint))':
Rejected as the implementation raised a specific error:
NumbaTypeError: cannot index array(float32, 1d, C) with 2 indices: Tuple(int64, Literalint)
raised from /usr/local/lib/python3.10/dist-packages/numba/core/typing/arraydecl.py:133

During: typing of intrinsic-call at /workspace/InsightFace-REST/if_rest/core/model_zoo/detectors/scrfd.py (96)

File "if_rest/core/model_zoo/detectors/scrfd.py", line 96:
def generate_proposals(score_blob, bbox_blob, kpss_blob, stride, anchors, threshold, score_out, bbox_out, kpss_out,

for ix in range(0, anchors.shape[0]):
if score_blob[ix, 0] > threshold:
^

During: Pass nopython_type_inference

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