Replies: 1 comment 1 reply
-
Hi, @gibosler 1-) Did you try to increase the prediction threshold? With this threshold you can filter out the lower prediction one.
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- 2- From bitmask_to_polygon conversation If you really need to do this, you can use this function OpenCV - '3.4.18' version ` def bitmask_to_polygons(bit_mask, epsilon=0.004):
` then use this function here (you can fine tune the epsilon constant depending on your problem) ` polygons = [bitmask_to_polygons(bit_mask) for bit_mask in bit_masks] |
Beta Was this translation helpful? Give feedback.
-
Hi community!
I'm using a custom trained instance segementation model based on X101 model zoo to segment an "high dense" picture with a lot of objects of the same type (vegetables). Now we are trying to add a new label to segment vegetables of "type1" and "type2" but on inference we get two masks on the same object with different class. There's a way to avoid this?
I'm trying to post-process plygons with opencv but the segmentation polygon (computed from mask) is not the same so it's difficult to find without a lot of compute expensing procedure.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions