Skip to content

Commit

Permalink
add method to remove file handlers keeping the log file open
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbmrz committed Mar 18, 2024
1 parent 331eae7 commit adf5f65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions luxonis_train/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,7 @@ def get_best_metric_checkpoint_path(self) -> str:
@return: Path to best checkpoint with respect to best validation metric
"""
return self.pl_trainer.checkpoint_callbacks[1].best_model_path # type: ignore

def reset_logging(self) -> None:
"""Close file handlers to release the log file."""
reset_logging()

0 comments on commit adf5f65

Please sign in to comment.