COCO-Semantic-Segmentation icon indicating copy to clipboard operation
COCO-Semantic-Segmentation copied to clipboard

ValueError when trying to make mask out of annotations

Open Samberlance opened this issue 3 years ago • 0 comments

I get the following error whenever I try to run coco.annToMask(anns[i]):

ValueError: Buffer has wrong number of dimensions (expected 1, got 2).

All I was doing was following the code exactly. It was working one day, then all of a sudden it wasn't the next. Anyone know how to resolve this?

Thanks, Sam

Samberlance avatar Feb 05 '22 11:02 Samberlance