cocodataset / cocoapi

COCO API - Dataset @ http://cocodataset.org/
Other
6.08k stars 3.75k forks source link

TypeError: Argument 'bb' has incorrect type (expected numpy.ndarray, got list) #159

Open austinmw opened 6 years ago

austinmw commented 6 years ago

Another person with the exact same issue closed it without posting a solution so hopefully someone knows what causes this: https://github.com/cocodataset/cocoapi/issues/139

lkrishnan-argo commented 5 years ago

This happens if a segmentation mask length for an annotation = 4, when it gets interpreted differently - as a bbox. See here: https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocotools/_mask.pyx#L292

JavisPeng commented 5 years ago

This happens if a segmentation mask length for an annotation = 4, when it gets interpreted differently - as a bbox. See here: https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocotools/_mask.pyx#L292

So,How to resolve this question, just comments this line code L292 ? o(╥﹏╥)o

Kimbrel commented 4 years ago

@JavisPeng did you resolve that issue? Im also getting the same error

opditextest commented 4 years ago

Any answer to this ?? I am also getting the same error.

Kimbrel commented 4 years ago

I tried annotating my dataset again, and that solved the problem.

On Sun, Jul 12, 2020 at 11:53 PM opditextest notifications@github.com wrote:

Any answer to this ?? I am also getting the same error.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cocodataset/cocoapi/issues/159#issuecomment-657257848, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANT7QJOTYA2IVUIRT4L5MSLR3H5SHANCNFSM4E6PQ4FQ .