MCPcopy Create free account
hub / github.com/TencentARC/FreeSplatter / normalize_vecs

Function normalize_vecs

freesplatter/utils/recon_util.py:34–35  ·  view source on GitHub ↗
(vectors)

Source from the content-addressed store, hash-verified

32
33def get_fibonacci_cameras(N=20, radius=2.0, device='cuda'):
34 def normalize_vecs(vectors):
35 return vectors / (torch.norm(vectors, dim=-1, keepdim=True))
36
37 t = torch.linspace(0, 1, N).reshape(-1, 1)
38

Callers 1

get_fibonacci_camerasFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected