Skip to content

Commit

Permalink
update snapshotindex after training
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 authored Nov 15, 2023
1 parent ded35b3 commit 736f4d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions element_deeplabcut/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ def make(self, key):
latest_snapshot = int(snapshot.stem[9:])
max_modified_time = modified_time

# update snapshotindex in the config
dlc_config["snapshotindex"] = latest_snapshot
edit_config(
dlc_cfg_filepath,
{"snapshotindex": latest_snapshot},
)

self.insert1(
{**key, "latest_snapshot": latest_snapshot, "config_template": dlc_config}
)

0 comments on commit 736f4d7

Please sign in to comment.