deep-person-reid icon indicating copy to clipboard operation
deep-person-reid copied to clipboard

torchreid in colab

Open Sondosmohamed1 opened this issue 3 years ago • 2 comments

Sorry if the question is too naive, I'm new to ReID , i am trying to import torchreid in colab i have processed all the dependencies but i faced compatibility problem

Using /usr/local/lib/python3.7/site-packages Searching for pyasn1==0.4.8 Best match: pyasn1 0.4.8 Adding pyasn1 0.4.8 to easy-install.pth file

Using /usr/local/lib/python3.7/site-packages Searching for oauthlib==3.1.1 Best match: oauthlib 3.1.1 Adding oauthlib 3.1.1 to easy-install.pth file

Using /usr/local/lib/python3.7/site-packages Finished processing dependencies for torchreid==1.4.0


ValueError Traceback (most recent call last)

in () ----> 1 import torchreid

6 frames

/content/deep-person-reid/torchreid/metrics/rank_cylib/rank_cy.pyx in init torchreid.metrics.rank_cylib.rank_cy() ----> 1 # cython: boundscheck=False, wraparound=False, nonecheck=False, cdivision=True 2 3 from future import print_function 4 import numpy as np 5 from libc.stdint cimport int64_t, uint64_t

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

Sondosmohamed1 avatar Oct 09 '21 20:10 Sondosmohamed1

hi @Sondosmohamed1 did u find any solution?.. thanks

lakshaydulani avatar Jan 17 '22 07:01 lakshaydulani

hi @Sondosmohamed1 did u find any solution?.. thanks

Hi @lakshaydulani , i have partially fixed it , after i processed the dependencies i temporary set "from .rank import evaluate_rank "in torchreid/metrics/.inti..py as a comment ,and it works! but this solution could not be ideal if you want to train new data .

Sondosmohamed1 avatar Jan 20 '22 07:01 Sondosmohamed1