MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __getitem__

Method __getitem__

k_diffusion/utils.py:407–412  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

405 return len(self.paths)
406
407 def __getitem__(self, key):
408 path = self.paths[key]
409 with open(path, 'rb') as f:
410 image = Image.open(f).convert('RGB')
411 image = self.transform(image)
412 return image,
413
414
415class CSVLogger:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected