src/transformers/pipelines/visual_question_answering.py/VisualQuestionAnsweringPipeline/preprocess
class VisualQuestionAnsweringPipeline:    def preprocess(self, inputs, padding=False, truncation=False):
        image = load_image(inputs["image"])
        model_inputs = self.tokenizer(
            inputs["question"], return_tensors=self.framework, padding=padding, truncation=truncation
        )
        image_features = self.image_processor(images=image, return_tensors=self.framework)
        model_inputs.update(image_features)
        return model_inputs