src/transformers/pipelines/object_detection.py/ObjectDetectionPipeline/preprocess
class ObjectDetectionPipeline:    def preprocess(self, image):
        image = self.load_image(image)
        target_size = torch.IntTensor([[image.height, image.width]])
        inputs = self.feature_extractor(images=[image], return_tensors="pt")
        inputs["target_size"] = target_size
        return inputs