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

Method binary_loader

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

Source from the content-addressed store, hash-verified

644 return img.convert('RGB')
645
646 def binary_loader(self, path):
647 with open(path, 'rb') as f:
648 img = Image.open(f)
649 return img.convert('L')
650
651 def Threshold_process(self, a):
652 one = torch.ones_like(a)

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected