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:819–822 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
817
return
img.convert(
'RGB'
)
818
819
def
binary_loader(self, path):
820
with
open(path,
'rb'
)
as
f:
821
img = Image.open(f)
822
return
img.convert(
'L'
)
823
824
def
Threshold_process(self, a):
825
one = torch.ones_like(a)
Callers
1
__getitem__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected