mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-05-22 22:32:18 +02:00
fix: ensure checkpoint is path
This commit is contained in:
parent
aa36df668f
commit
c27e7f9f52
@ -34,6 +34,8 @@ def build_checkpoint_callback(
|
||||
if checkpoint_dir is None:
|
||||
checkpoint_dir = config.checkpoint_dir
|
||||
|
||||
checkpoint_dir = Path(checkpoint_dir)
|
||||
|
||||
if experiment_name is not None:
|
||||
checkpoint_dir = checkpoint_dir / experiment_name
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user