MCPcopy Create free account
hub / github.com/TencentARC/Track4World / align_depth_scale

Function align_depth_scale

track4world/utils/alignment.py:217–233  ·  view source on GitHub ↗

Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `depth_tgt: torch.Tensor` of shape (..., N)

(
    depth_src: torch.Tensor, 
    depth_tgt: torch.Tensor, 
    weight: Optional[torch.Tensor], 
    trunc: Optional[Union[float, torch.Tensor]] = None
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

alignFunction · 0.85

Tested by

no test coverage detected