Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChunmingHe/WS-SAM
/ binary_loader
Method
binary_loader
utils/data_val.py:529–532 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
527
return
img.convert(
'RGB'
)
528
529
def
binary_loader(self, path):
530
with
open(path,
'rb'
)
as
f:
531
img = Image.open(f)
532
return
img.convert(
'L'
)
533
534
def
Threshold_process(self, a):
535
one = torch.ones_like(a)
Callers
1
__getitem__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected