Implement an instance segmentation model. Instance segmentation is a type of image segmentation that involves segmenting out individual objects within an image. It is commonly used in applications such as object detection and tracking.
**Example:** Given an input image, segment out individual objects within the image.
**Constraints:** Use a deep learning model such as Mask R-CNN or U-Net to implement instance segmentation. Use a convolutional neural network (CNN) as the backbone and a mask head to generate instance masks.
Test Cases
Test Case 1
Input:
[[1, 2], [3, 4]]Expected:
[[0.5, 0.5], [0.5, 0.5]]Test Case 2
Input:
[[5, 6], [7, 8]]Expected:
[[0.75, 0.75], [0.75, 0.75]]+ 3 hidden test cases