Coverting JSON to mask with shape_type='mask' #1434
Unanswered
AmaiaGaste
asked this question in
Q&A / Help
Replies: 1 comment 1 reply
-
|
I'm having this problem too. How can I fix it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I tried to use the labelme.utils.shape_to_mask function and I get the following error: AssertionError: Polygon must have points more than 2.
It seems there is an assert that checks if there is more than 2 points and my JSON only as 2 points and a mask. I want to convert the JSON into a PNG or JPG mask so that I can use the annotated image as ground truth. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions