Generating binary masks for each object present in a groundtruth mask
I have ground-truth masks containing all instances of objects present in a single image. While exploring UNET, I realized that I need to create binary masks for each instance of the object in each ground truth image to create weight maps. Weight maps are used in the loss function to separate touching objects.
Could you please give some directions to compute the masks for each instance?