MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / check_if_same_size

Function check_if_same_size

dust3r/inference.py:75–78  ·  view source on GitHub ↗
(pairs)

Source from the content-addressed store, hash-verified

73
74
75def check_if_same_size(pairs):
76 shapes1 = [img1['img'].shape[-2:] for img1, img2 in pairs]
77 shapes2 = [img2['img'].shape[-2:] for img1, img2 in pairs]
78 return all(shapes1[0] == s for s in shapes1) and all(shapes2[0] == s for s in shapes2)
79
80
81def get_pred_pts3d(gt, pred, use_pose=False):

Callers 1

inferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected