MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / __init__

Method __init__

benchmark/utils/cropping.py:42–49  ·  view source on GitHub ↗
(self, images)

Source from the content-addressed store, hash-verified

40
41class ImageList:
42 def __init__(self, images):
43 if not isinstance(images, (tuple, list, set)):
44 images = [images]
45 self.images = []
46 for image in images:
47 if not isinstance(image, PIL.Image.Image):
48 image = PIL.Image.fromarray(image)
49 self.images.append(image)
50
51 def __len__(self):
52 return len(self.images)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected