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

Method Threshold_process

utils/data_val.py:215–217  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

213 return img.convert('L')
214
215 def Threshold_process(self, a):
216 one = torch.ones_like(a)
217 return torch.where(a > 0, one, a)
218
219 def __len__(self):
220 return self.size

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected