Skip to content

Commit

Permalink
removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fbranschke committed Dec 16, 2024
1 parent 4ff628e commit 87e0fe3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/datasets/colmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,9 @@ def __init__(

# camera intrinsics
cam = manager.cameras[camera_id]
# cam.width, cam.height =
fx, fy, cx, cy = cam.fx, cam.fy, cam.cx, cam.cy
K = np.array([[fx, 0, cx], [0, fy, cy], [0, 0, 1]])
K[:2, :] /= factor
# K[:2, :] /= 3.09125

Ks_dict[camera_id] = K

# Get distortion parameters.
Expand Down Expand Up @@ -226,8 +223,7 @@ def __init__(
actual_image = imageio.imread(self.image_paths[0])[..., :3]
actual_height, actual_width = actual_image.shape[:2]

# need to check image resolution. create seperate K for test set
# if size > test_max_res
# need to check image resolution. create separate K for test set
max_side = max(actual_width, actual_height)
scale_test = 1
if max_side > test_max_res:
Expand Down

0 comments on commit 87e0fe3

Please sign in to comment.