src/transformers/pipelines/zero_shot_object_detection.py/ZeroShotObjectDetectionPipeline/_forward
class ZeroShotObjectDetectionPipeline:    def _forward(self, model_inputs):
        target_size = model_inputs.pop("target_size")
        candidate_label = model_inputs.pop("candidate_label")
        is_last = model_inputs.pop("is_last")

        outputs = self.model(**model_inputs)

        model_outputs = {"target_size": target_size, "candidate_label": candidate_label, "is_last": is_last, **outputs}
        return model_outputs