Skip to content

Commit 3df6afe

Browse files
committed
minor fix in FullFit
1 parent 6720dca commit 3df6afe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

element_moseq/moseq_train.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,10 +1621,9 @@ def make(self, key):
16211621
pre_model_file = (
16221622
PreFit.File & pre_model_key & 'file_name="checkpoint.h5"'
16231623
).fetch1("file_path")
1624-
with open(pre_model_file, "rb") as f:
1625-
pre_model = pickle.load(f)
1624+
pre_model, data, metadata, _ = load_checkpoint(path=pre_model_file)
16261625
logger.info(
1627-
f"Using PreFit model {pre_model_key_query} as warm start for FullFit"
1626+
f"Using PreFit model {pre_model_key} as warm start for FullFit"
16281627
)
16291628

16301629
execution_time = datetime.now(timezone.utc)

0 commit comments

Comments
 (0)