We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4169af commit 7d41f6fCopy full SHA for 7d41f6f
rslp/helios/model.py
@@ -1,7 +1,6 @@
1
"""Helios model wrapper for fine-tuning in rslearn."""
2
3
import json
4
-import os
5
import re
6
from contextlib import nullcontext
7
from typing import Any
@@ -130,7 +129,7 @@ def load_model(
130
129
# Load the checkpoint.
131
if not random_initialization:
132
train_module_dir = checkpoint_path / "model_and_optim"
133
- if os.path.exists(train_module_dir):
+ if train_module_dir.exists():
134
load_model_and_optim_state(
135
str(train_module_dir), model, planner=planner
136
)
0 commit comments