PyRetri / PyRetri

Open source deep learning based unsupervised image retrieval toolbox built on PyTorch🔥

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'numpy.ndarray' object has no attribute 'pop'

yayaYsmileT opened this issue · comments

Hi there,

I get this error message:

File "/pyretri-0.1.0+unknown-py3.7.egg/pyretri/evaluate/evaluator/evaluators_impl/overall.py", line 78, in call
gt.pop(0)
AttributeError: 'numpy.ndarray' object has no attribute 'pop'

Please, what is the reason for this?
''pop'' can normally be used for lists, as far as I know, not for ndarrays... is this a bug in the code or something else?
Thanks!

commented

using gt[1:] replace gt.pop(0)