mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-01-10 17:19:34 +01:00
Better order for checkpoints
This commit is contained in:
parent
16a0fa7b75
commit
41b18c3f0a
@ -152,6 +152,12 @@ def build_trainer_callbacks(
|
|||||||
if checkpoint_dir is None:
|
if checkpoint_dir is None:
|
||||||
checkpoint_dir = DEFAULT_CHECKPOINT_DIR
|
checkpoint_dir = DEFAULT_CHECKPOINT_DIR
|
||||||
|
|
||||||
|
if experiment_name is not None:
|
||||||
|
checkpoint_dir = checkpoint_dir / experiment_name
|
||||||
|
|
||||||
|
if run_name is not None:
|
||||||
|
checkpoint_dir = checkpoint_dir / run_name
|
||||||
|
|
||||||
filename = "best-{epoch:02d}-{val_loss:.0f}"
|
filename = "best-{epoch:02d}-{val_loss:.0f}"
|
||||||
|
|
||||||
if run_name is not None:
|
if run_name is not None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user