Skip to content

Commit 7b8f3ee

Browse files
committed
allow overriding checkpoint dir in eval
1 parent dc5bb46 commit 7b8f3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nerfstudio/utils/eval_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def eval_setup(
105105

106106
# load checkpoints from wherever they were saved
107107
# TODO: expose the ability to choose an arbitrary checkpoint
108-
config.load_dir = config.get_checkpoint_dir()
108+
config.load_dir = config.load_dir or config.get_checkpoint_dir()
109109

110110
# setup pipeline (which includes the DataManager)
111111
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

0 commit comments

Comments
 (0)