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?
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?