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

Method Threshold_process

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

Source from the content-addressed store, hash-verified

649 return img.convert('L')
650
651 def Threshold_process(self, a):
652 one = torch.ones_like(a)
653 return torch.where(a > 0, one, a)
654
655 def __len__(self):
656 return self.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected