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

Method Threshold_process

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

Source from the content-addressed store, hash-verified

532 return img.convert('L')
533
534 def Threshold_process(self, a):
535 one = torch.ones_like(a)
536 return torch.where(a > 0, one, a)
537
538 def __len__(self):
539 return self.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected