bubbliiiing / yolact-pytorch

这是一个yolact-pytorch的库,可用于训练自己的数据集
MIT License
70 stars 12 forks source link

An error was reported when I run the coco_annotation.py #15

Closed PiBigStar5712 closed 1 year ago

PiBigStar5712 commented 1 year ago

As the title indicates, this error occurs on line 203 of the code. The following is the content of the error: Traceback (most recent call last): File "", line 203, in mask = labelme.utils.shape_to_mask(img.shape[:2], points, shape_type) File "", line 33, in shape_to_mask assert len(xy) == 2, 'Shape of shape_type=line must have 2 points' AssertionError: Shape of shape_type=line must have 2 points

I thought there might be a problem with the version of labelme because I originally installed version 3.17 of labelme.However, when I reinstalled labelme to 3.16.7, the same problem occurred again. How should I solve it?