src/transformers/pipelines/zero_shot_object_detection.py/ZeroShotObjectDetectionPipeline/__init__
class ZeroShotObjectDetectionPipeline:    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        if self.framework == "tf":
            raise ValueError(f"The {self.__class__} is only available in PyTorch.")

        requires_backends(self, "vision")
        self.check_model_type(MODEL_FOR_ZERO_SHOT_OBJECT_DETECTION_MAPPING)