mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
Final typing fixes + add Pyright to CI (#1944)
* knocking out a couple * Fix more errors * Add pyright * Remove some unnecessary cv2 type ignores, warning on missing imports (for missing tinycudann) * Minor annotation fixes * Update docs * Drop `None` from temporal distortion output --------- Co-authored-by: Brent Yi <yibrenth@gmail.com>
This commit is contained in:
1 parent
08e3a1f1a6
commit
2b0831b6d4
28 files changed
+110
-71
No files matched your search
@@ -75,7 +75,7 @@ def test_load_state_dict():
|
||||
state_dict["_model.param"].mul_(2)
|
||||
pipeline.load_pipeline(state_dict, 0)
|
||||
assert was_called
|
||||
assert pipeline.model.param[0].item() == 2
|
||||
assert getattr(pipeline.model, "param")[0].item() == 2
|
||||
|
||||
# preparation for another test
|
||||
state_dict["_model.param"].mul_(2)
|
||||
@@ -91,4 +91,4 @@ def test_load_state_dict():
|
||||
# load DDP checkpoint
|
||||
pipeline.load_pipeline(ddp_state_dict, 0)
|
||||
assert was_called
|
||||
assert pipeline.model.param[0].item() == 4
|
||||
assert getattr(pipeline.model, "param")[0].item() == 4
|
||||
Reference in new issue
Block a user