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

Method binary_loader

utils/dataloader.py:115–118  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

113 return img.convert('RGB')
114
115 def binary_loader(self, path):
116 with open(path, 'rb') as f:
117 img = Image.open(f)
118 return img.convert('L')

Callers 1

load_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected