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

Method Threshold_process

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

Source from the content-addressed store, hash-verified

417 return img.convert('L')
418
419 def Threshold_process(self, a):
420 one = torch.ones_like(a)
421 return torch.where(a > 0, one, a)
422
423 def __len__(self):
424 return self.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected