-
I am working based off this notebook: https://colab.research.google.com/github/Tony607/detectron2_instance_segmentation_demo/blob/master/Detectron2_custom_coco_data_segmentation.ipynb#scrollTo=U5LhISJqWXgM I know the prediction masks are stored in the output["instances"].pred_masks. I am using the segmentation for obstacle avoidance. I want to use the segmentation boundaries (not the rectangular boxes) to find the largest gap between the boundaries so I can move my car there. But the pred_masks seems to be a 3 channel mask with Trues and Falses as opposed to the generally 1 channel masks which are grayscale that I am used to. Any help would be great |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Oh wait I figured it out. Each instance can be accessed by using their index. Thanks! |
Beta Was this translation helpful? Give feedback.
Oh wait I figured it out. Each instance can be accessed by using their index. Thanks!