mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-18 05:44:31 +08:00
fix large number of typos in repository (#1977)
* fix large number of typos in repository * fix typos in tests
This commit is contained in:
1 parent
ccdcc3951e
commit
d413ca4204
32 files changed
+48
-48
No files matched your search
@@ -20,7 +20,7 @@ def test_tv_loss():
|
||||
for k in range(10):
|
||||
grids[0, k, i, j] = grid_location
|
||||
|
||||
# TV_row = 1, TV_col = 1. Totol tv should be 2 * (TV_row + TV_col)
|
||||
# TV_row = 1, TV_col = 1. Total tv should be 2 * (TV_row + TV_col)
|
||||
assert tv_loss(grids).item() == 4.0
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ from nerfstudio.process_data.images_to_nerfstudio_dataset import (
|
||||
|
||||
def random_quaternion(num_poses: int):
|
||||
"""
|
||||
Generates random rotation quatenion.
|
||||
Generates random rotation quaternion.
|
||||
"""
|
||||
u, v, w = np.random.uniform(size=(3, num_poses))
|
||||
quaternion = np.stack(
|
||||
|
||||
@@ -48,7 +48,7 @@ def _get_random_aabb_box(max_box, device):
|
||||
|
||||
def _get_random_rays(num_rays, max_box, aabb, device):
|
||||
"""
|
||||
genrate random rays that distribute in the general direction of the box.
|
||||
generate random rays that distribute in the general direction of the box.
|
||||
The implementation is naive for now.
|
||||
:param num_rays:
|
||||
:param max_box:
|
||||
|
||||
Reference in new issue
Block a user