Skip to content
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

ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long' #380

Closed
aztbzkrt opened this issue Jun 12, 2019 · 4 comments
Closed

Comments

@aztbzkrt
Copy link

  File "C:\Users\LENOVA\Desktop\text-detection-ctpn-banjin-dev\demo.py", line 96, in main
    textsegs, _ = proposal_layer(cls_prob_val, bbox_pred_val, im_info)
  File "C:\Users\LENOVA\Desktop\text-detection-ctpn-banjin-dev\proposal_layer.py", line 135, in proposal_layer
    keep = nms(np.hstack((proposals, scores)), nms_thresh)  # 进行nms操作,保留2000个proposal
  File "nms.pyx", line 25, in nms.nms
    cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1]
ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long'
@aztbzkrt
Copy link
Author

aztbzkrt commented Jun 18, 2019

i am solved this problem...

Only np.int_t Replace >> np.int64_t

NOTICE: After makeing this change. You need to compile setup.py again

@Sammul40619
Copy link

thank you buddy, it works!

@praymich
Copy link

thank you !!!

@dadadadashan
Copy link

dadadadashan commented Oct 24, 2020

i am solved this problem...

Only np.int_t Replace >> np.int64_t

NOTICE: After makeing this change. You need to compile setup.py again

If that doesn't work, try "np.int32_t" instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants