Visitar URL original
black -> snapshots.py · DeepLabCut/DeepLabCut@b91a3f8 · GitHub
Skip to content

Commit b91a3f8

Browse files
committed
black -> snapshots.py
1 parent 7f6c8c1 commit b91a3f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎deeplabcut/pose_estimation_pytorch/runners/snapshots.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ def update(self, epoch: int, state_dict: dict, last: bool = False) -> None:
113113
):
114114
current_best = self.best()
115115
self._best_metric = metrics[self._key]
116-
116+
117117
# Save the new best model
118118
save_path = self.snapshot_path(epoch, best=True)
119119
parsed_state_dict = {
120-
k: v
120+
k: v
121121
for k, v in state_dict.items()
122122
if self.save_optimizer_state or k != "optimizer"
123123
}

0 commit comments

Comments
 (0)