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:414–417 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
412
return
img.convert(
'RGB'
)
413
414
def
binary_loader(self, path):
415
with
open(path,
'rb'
)
as
f:
416
img = Image.open(f)
417
return
img.convert(
'L'
)
418
419
def
Threshold_process(self, a):
420
one = torch.ones_like(a)
Callers
1
__getitem__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected