MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / binary_loader

Method binary_loader

utils/data_val.py:759–762  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

757 return img.convert('RGB')
758
759 def binary_loader(self, path):
760 with open(path, 'rb') as f:
761 img = Image.open(f)
762 return img.convert('L')
763
764 def __len__(self):
765 return self.size

Callers 1

load_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected