(self, image)
| 238 | |
| 239 | |
| 240 | def process_image(self, image): |
| 241 | processor = self.data_args.image_processor |
| 242 | image_size = image.size |
| 243 | image = processor.preprocess(image, return_tensors="pt")["pixel_values"][0] |
| 244 | return image, image_size, self.modality |
| 245 | |
| 246 | |
| 247 | def process_target_image(self, image): |