mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-16 21:03:46 +08:00
Code cleanup (#234)
This commit is contained in:
1 parent
8b414bafab
commit
e35781fe85
14 files changed
+46
-68
No files matched your search
@@ -48,7 +48,7 @@ def test_broadcasting():
|
||||
assert tensor_dataclass.b.shape == (4, 6, 2)
|
||||
|
||||
a = torch.ones((4, 6, 3))
|
||||
b = torch.ones((2))
|
||||
b = torch.ones(2)
|
||||
tensor_dataclass = TestTensorDataclass(a=a, b=b)
|
||||
assert tensor_dataclass.b.shape == (4, 6, 2)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ def test_drawing():
|
||||
v["random"].set_transform(get_translation_matrix([-0.5, -0.5, 0]))
|
||||
|
||||
v = vis["lines"]
|
||||
v.set_transform(get_translation_matrix(([-2, -3, 0])))
|
||||
v.set_transform(get_translation_matrix([-2, -3, 0]))
|
||||
|
||||
vertices = np.random.random((3, 10)).astype(np.float32)
|
||||
v["line_segments"].set_object(g.LineSegments(g.PointsGeometry(vertices)))
|
||||
@@ -104,7 +104,7 @@ def test_drawing():
|
||||
g.LineBasicMaterial(vertexColors=True),
|
||||
)
|
||||
)
|
||||
v["triad"].set_transform(get_translation_matrix(([0, 5, 0])))
|
||||
v["triad"].set_transform(get_translation_matrix([0, 5, 0]))
|
||||
|
||||
v["triad_function"].set_object(g.triad(0.5))
|
||||
v["triad_function"].set_transform(get_translation_matrix([0, 6, 0]))
|
||||
|
||||
Reference in new issue
Block a user