MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / binary_loader

Method binary_loader

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

Source from the content-addressed store, hash-verified

168 return img.convert('RGB')
169
170 def binary_loader(self, path):
171 with open(path, 'rb') as f:
172 img = Image.open(f)
173 return img.convert('L')

Callers 1

load_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected