mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 10:59:53 +08:00
Upgrade pyright (#2526)
* Upgrade pyright * Resolve pyright errors * Suppress trimesh error * Run ruff
This commit is contained in:
1 parent
42cabedc60
commit
d3934737a1
10 files changed
+42
-33
No files matched your search
@@ -239,6 +239,7 @@ def get_cube(
|
||||
if isinstance(side_length, float):
|
||||
pts *= side_length / 2.0
|
||||
else:
|
||||
assert isinstance(side_length, torch.Tensor)
|
||||
pts[0] *= side_length[0].item() / 2.0
|
||||
pts[1] *= side_length[1].item() / 2.0
|
||||
pts[2] *= side_length[2].item() / 2.0
|
||||
|
||||
Reference in new issue
Block a user