Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/FreeSplatter
/ numpy2pytorch
Function
numpy2pytorch
freesplatter/utils/infer_util.py:37–40 ·
view source on GitHub ↗
(imgs)
Source
from the content-addressed store, hash-verified
35
36
@torch.inference_mode()
37
def
numpy2pytorch(imgs):
38
h = torch.from_numpy(np.stack(imgs, axis=0)).float() / 255.0 * 2.0 - 1.0
39
h = h.movedim(-1, 1)
40
return
h
41
42
43
@torch.inference_mode()
Callers
1
remove_background
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected