Image segmentation is the process of partitioning an image into multiple distinct regions. This simplifies the image's representation and streamlines the analysis, which is crucial for training computer vision models. In image segmentation, every annotated pixel in an image is assigned to a specific class. The end-result is a mask that precisely delineates the shape of the object within the image.