diff --git a/core/dataset/kitti_prepared.py b/core/dataset/kitti_prepared.py index f16b4979..ec51dc50 100644 --- a/core/dataset/kitti_prepared.py +++ b/core/dataset/kitti_prepared.py @@ -85,8 +85,8 @@ def read_cam_intrinsic(self, fname): return cam_intrinsics def rescale_intrinsics(self, K, img_hw_orig, img_hw_new): - K[0,:] = K[0,:] * img_hw_new[0] / img_hw_orig[0] - K[1,:] = K[1,:] * img_hw_new[1] / img_hw_orig[1] + K[0,:] = K[0,:] * img_hw_new[1] / img_hw_orig[1] + K[1,:] = K[1,:] * img_hw_new[0] / img_hw_orig[0] return K def get_intrinsics_per_scale(self, K, scale):