From 856cf3e87c4fdfd963556c65d97e528443c7ac9a Mon Sep 17 00:00:00 2001 From: ruiqi-nju Date: Thu, 7 Aug 2025 15:17:43 +0800 Subject: [PATCH] rectify-normalization --- utils/make_depth_scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/make_depth_scale.py b/utils/make_depth_scale.py index 3a20c32d8e..80d66f4705 100644 --- a/utils/make_depth_scale.py +++ b/utils/make_depth_scale.py @@ -35,7 +35,7 @@ def get_scales(key, cameras, images, points3d_ordered, args): if invmonodepthmap.ndim != 2: invmonodepthmap = invmonodepthmap[..., 0] - invmonodepthmap = invmonodepthmap.astype(np.float32) / (2**16) + invmonodepthmap = invmonodepthmap.astype(np.float32) / (2**16 - 1) s = invmonodepthmap.shape[0] / cam_intrinsic.height maps = (valid_xys * s).astype(np.float32)