How to extract masks from an inferenceslicer when using a segmentation model. #1347
Replies: 1 comment
-
Figured it out. Sorry! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
So i'm currently working on inference slicing an input image and while im able to get the segmented output, i would like to extract the mask co ordinates to draw the contours of the segmented objects in my image. Ideally i would extract the masks from the output/result and try to fit the contours but the inferenceslicer does not return masks in this way and i have no idea how to do that:
mask=array([[[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]],
Beta Was this translation helpful? Give feedback.
All reactions