MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / completion_ratio

Function completion_ratio

eval_code/recons/mv_recon/utils.py:45–49  ·  view source on GitHub ↗
(gt_points, rec_points, dist_th=0.05)

Source from the content-addressed store, hash-verified

43
44
45def completion_ratio(gt_points, rec_points, dist_th=0.05):
46 gen_points_kd_tree = KDTree(rec_points)
47 distances, _ = gen_points_kd_tree.query(gt_points)
48 comp_ratio = np.mean((distances < dist_th).astype(np.float32))
49 return comp_ratio
50
51
52def accuracy(gt_points, rec_points, gt_normals=None, rec_normals=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected