Currently, the BasicWriter produces instance semantic segmentation masks that includes all the objects in a scene.
How can I force it so that only shows the instance semantic segmentation masks only for the objects of interest?
Here’s an example of such produced mask.
Here, I only want to show the instance semantic segmentation for pallets and forklift. How do I go about it?