You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Colab with pycocotools preinstalled and numpy 1.18.4 preinstalled produces this error:
loading annotations into memory...
Done (t=0.38s)
creating index...
index created!
Loading and preparing results...
DONE (t=5.31s)
creating index...
index created!
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/numpy/core/function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 257, in<module>
opt.augment)
File "test.py", line 214, intest
cocoEval = COCOeval(cocoGt, cocoDt, 'bbox')
File "/usr/local/lib/python3.6/dist-packages/pycocotools/cocoeval.py", line 76, in __init__
self.params = Params(iouType=iouType) # parameters
File "/usr/local/lib/python3.6/dist-packages/pycocotools/cocoeval.py", line 527, in __init__
self.setDetParams()
File "/usr/local/lib/python3.6/dist-packages/pycocotools/cocoeval.py", line 507, in setDetParams
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95- .5) / .05) +1, endpoint=True) File "<__array_function__ internals>", line 6, in linspace File "/usr/local/lib/python3.6/dist-packages/numpy/core/function_base.py", line 121, in linspace .format(type(num)))
TypeError: object of type<class 'numpy.float64'> cannot be safely interpreted as an integer.
@glenn-jocher Thanks for reporting the issue. We've upgraded both numpy and pycocotools versions that are pre-installed in the Colab runtime since then. If you are still experiencing an error, please open a new issue with a minimal reproducible notebook.
Google Colab with pycocotools preinstalled and numpy 1.18.4 preinstalled produces this error:
See cocodataset/cocoapi#354
The text was updated successfully, but these errors were encountered: