lvis-dataset / lvis-api

Python API for LVIS Dataset
http://lvisdataset.org
Other
408 stars 63 forks source link

Fix linspace for numpy 1.18 #12

Closed michaelisc closed 4 years ago

michaelisc commented 4 years ago

Since numpy 1.18 the num parameter in np.linspace has to be an integer. This led to errors with the cocoapi as reported here and here.

Running eval.py in the lvis-api throws the same error when using numpy 1.18. This pr follows https://github.com/cocodataset/cocoapi/pull/354 to fix the issue in the same way it was fixed for the cocoapi.

rbgirshick commented 4 years ago

Thanks for the fix!

@agrimgupta92 this looks good, please merge when you are able.