mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
Add step argument in eval_utils.py to fix rendering bug. (#1272)
This commit is contained in:
1 parent
3be43ee080
commit
3b8e2ce9ec
1 file changed
+1
-1
@@ -59,7 +59,7 @@ def eval_load_checkpoint(config: TrainerConfig, pipeline: Pipeline) -> Path:
|
|||||||
load_path = config.load_dir / f"step-{load_step:09d}.ckpt"
|
load_path = config.load_dir / f"step-{load_step:09d}.ckpt"
|
||||||
assert load_path.exists(), f"Checkpoint {load_path} does not exist"
|
assert load_path.exists(), f"Checkpoint {load_path} does not exist"
|
||||||
loaded_state = torch.load(load_path, map_location="cpu")
|
loaded_state = torch.load(load_path, map_location="cpu")
|
||||||
pipeline.load_pipeline(loaded_state["pipeline"])
|
pipeline.load_pipeline(loaded_state["pipeline"], loaded_state["step"])
|
||||||
CONSOLE.print(f":white_check_mark: Done loading checkpoint from {load_path}")
|
CONSOLE.print(f":white_check_mark: Done loading checkpoint from {load_path}")
|
||||||
return load_path
|
return load_path
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user