-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Segmentation mask generated contains strings and letters at count keyword #471
Comments
I followed the code given at #150 But then I got
|
Hi, I suppose you managed to fix the issue? |
On this topic, how do I extract polygon data after eval? |
+1, does segm.json not store the polygon/mask prediction? |
@Jinksi you can use this to decode RLE string to mask: pass in the dict stored in the segmentation key |
@shaayaansayed Good one, thanks.
It could be good to add this to |
Another way to do this: from imantics import Polygons
def maskToPolygon(mask):
return Polygons.from_mask(mask).segmentation both do the same thing, just though I would share. @Jinksi If you would like RLE support added to the library, post a feature request under the issues |
Is your problem solved? I have the same problem. |
Binary mask to polygons can not guarantee correctness by naively finding contours. For example, a donut-like mask: binary mask --> polygons(contours) --> binary mask(decode), the hole in the mask will disappear. Thus I would recommend not to convert any of binary mask or RLE back to polygons. |
你好 我在inference里输出来的counts和上边一样 我应该怎么把这些轮廓线画到原图上 这样直观地看到分割的效果。 |
At evaluation time, The segmentation json file generated contains buffered strings and letters at
count
keyword.Example:
The text was updated successfully, but these errors were encountered: