Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UX-Decoder/Semantic-SAM
/ area_from_rle
Function
area_from_rle
utils/sam_utils/amg.py:152–153 ·
view source on GitHub ↗
(rle: Dict[str, Any])
Source
from the content-addressed store, hash-verified
150
151
152
def
area_from_rle(rle: Dict[str, Any]) -> int:
153
return
sum(rle[
"counts"
][1::2])
154
155
156
def
calculate_stability_score(
Callers
1
generate
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected