Skip to content

Commit

Permalink
modified the description of the camera axis
Browse files Browse the repository at this point in the history
  • Loading branch information
ligoudaner377 committed Oct 25, 2024
1 parent e31361b commit a34170f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mymodules/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ def load_data(self):
w2c = c2w[:, :3].T # (3, 3)
self.w2c_pool.append(w2c.expand(height * width, 3, 3))

# store the forward camera axis in world coordinate
camera_axis = torch.tensor([[0., 1., 0.]]) @ w2c # right axis of the camera in the world coordinate (1, 3)
# store the up camera axis in world coordinate
camera_axis = torch.tensor([[0., 1., 0.]]) @ w2c # up axis of the camera in the world coordinate (1, 3)
self.camera_axis_pool.append(camera_axis.expand(height * width, 3))

# store rays origin and direction.
Expand Down

0 comments on commit a34170f

Please sign in to comment.