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

Method Threshold_process

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

Source from the content-addressed store, hash-verified

315 return img.convert('L')
316
317 def Threshold_process(self, a):
318 one = torch.ones_like(a)
319 return torch.where(a > 0, one, a)
320
321 def __len__(self):
322 return self.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected