Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pointcept/SegmentAnything3D
/ to_numpy
Function
to_numpy
util.py:148–152 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
146
147
148
def
to_numpy(x):
149
if
isinstance(x, torch.Tensor):
150
x = x.clone().detach().cpu().numpy()
151
assert isinstance(x, np.ndarray)
152
return
x
153
154
155
def
save_point_cloud(coord, color=None, file_path=
"pc.ply"
, logger=None):
Callers
1
save_point_cloud
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected