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

Buffer dtype mismatch, expected 'long' but got 'long long' #391

Closed
Semihal opened this issue Nov 19, 2020 · 3 comments
Closed

Buffer dtype mismatch, expected 'long' but got 'long long' #391

Semihal opened this issue Nov 19, 2020 · 3 comments

Comments

@Semihal
Copy link

Semihal commented Nov 19, 2020

I run torchreid/metric/rank_cyclib/test_cython.py and receive:

  File "C:\Users\Semihal\Documents\Projects\deep-person-reid\torchreid\metrics\rank.py", line 201, in evaluate_rank
    use_metric_cuhk03
  File "torchreid\metrics\rank_cylib\rank_cy.pyx", line 25, in torchreid.metrics.rank_cylib.rank_cy.evaluate_cy
    cpdef evaluate_cy(distmat, q_pids, g_pids, q_camids, g_camids, max_rank, use_metric_cuhk03=False):
  File "torchreid\metrics\rank_cylib\rank_cy.pyx", line 33, in torchreid.metrics.rank_cylib.rank_cy.evaluate_cy
    return eval_market1501_cy(distmat, q_pids, g_pids, q_camids, g_camids, max_rank)
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

I have same error when start evaluating phase.

OS: Windows 10

@KaiyangZhou
Copy link
Owner

this might help #160

@Semihal
Copy link
Author

Semihal commented Dec 8, 2020

@KaiyangZhou, thak you, this is work for me 👍

@lablabla
Copy link

lablabla commented Feb 5, 2021

I've opened a PR to fix this, if you want to take a look
#412

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

3 participants