src/transformers/pipelines/image_segmentation.py/ImageSegmentationPipeline/_forward
class ImageSegmentationPipeline:    def _forward(self, model_inputs):
        target_size = model_inputs.pop("target_size")
        model_outputs = self.model(**model_inputs)
        model_outputs["target_size"] = target_size
        return model_outputs