Instance segmentation background removal

Describe your question/issue here! (delete this when you post)

  • Project Type:
  • Operating System & Browser:
  • Project Universe Link or Workspace/Project ID:

So I’ve trained yolo-seg on my dataset, to segment out object of interest. It’s doing really well, and I’ve deployed it in roboflow.

I attempted doing this: How to Remove Background of an Image with Computer Vision

since I dont have an object detection model I just kept the instance segmentation model and kept the rest of the pipeline the same. Now when I test the workflow in roboflows api, the background seems to be a bit darker like some kind of a mask is on it. How do I remove the backgroun, and get me just the segmented part as an image. I dont want the black surrounding the segmented object also, I want just the segmented object as its own png. My segmented objects are close to rectangles.