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

Method rgb_loader

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

Source from the content-addressed store, hash-verified

82 self.gts = gts
83
84 def rgb_loader(self, path):
85 with open(path, 'rb') as f:
86 img = Image.open(f)
87 return img.convert('RGB')
88
89 def binary_loader(self, path):
90 with open(path, 'rb') as f:

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected