MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / process_image

Method process_image

blip3o/data/dataset.py:240–244  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

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):

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected