Skip to content

Commit

Permalink
Add Configuration Converter in otx.tools (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
harimkang authored Apr 2, 2024
1 parent 7df78c1 commit b044dd2
Show file tree
Hide file tree
Showing 5 changed files with 1,325 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/otx/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ def train(
raise TypeError(msg)

best_checkpoint_symlink = Path(self.work_dir) / "best_checkpoint.ckpt"
if best_checkpoint_symlink.is_symlink():
best_checkpoint_symlink.unlink()
best_checkpoint_symlink.symlink_to(self.checkpoint)

return self.trainer.callback_metrics
Expand Down
Loading

0 comments on commit b044dd2

Please sign in to comment.