It provides full image segmentation masks while still being trained with a suite of loss functions that can be customized to suit the problem at hand. The CLIPSegConfig, CLIPSegTextConfig, and CLIPSegVisionConfig classes offer configuration options for image segmentation, text segmentation, and vision segmentation, respectively. The CLIPSegProcessor class is used to process the segmentation masks. The CLIPSegModel, CLIPSegTextModel, and CLIPSegVisionModel classes offer high-level model definitions for image segmentation, text segmentation, and vision segmentation, respectively. Finally, the CLIPSegForImageSegmentation class contains utilities for image segmentation. Together, these resources enable users to easily construct powerful image segmentation models with minimal effort.