Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aigc3d/LHM
/ distance
Function
distance
engine/SegmentAPI/SAM.py:54–55 ·
view source on GitHub ↗
(p1, p2)
Source
from the content-addressed store, hash-verified
52
53
54
def
distance(p1, p2):
55
return
np.sqrt(np.sum((p1 - p2) ** 2))
56
57
58
def
FPS(sample, num):
Callers
2
apply_sprite_effect
Method · 0.85
FPS
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected