You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
How are you?
Thanks for contributing to this project.
I want to get one segmentation map containing all the class labels rather than binary mask for each instance.
How can I get it?
The text was updated successfully, but these errors were encountered:
Hi, you can run a loop to aggregate all the predicted binary masks:
# create an all-zeros masksingle_channel_mask=torch.zeros_like(image)
# loop through all instance masksforcls_id, maskinzip(result.pred_classes, result.pred_masks):
mask*=cls_idsingle_channel_mask=torch.max(single_channel_mask, mask)
Hello
How are you?
Thanks for contributing to this project.
I want to get one segmentation map containing all the class labels rather than binary mask for each instance.
How can I get it?
The text was updated successfully, but these errors were encountered: