mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Fix trainer init
This commit is contained in:
parent
ce15a0f152
commit
b396d4908a
@ -101,8 +101,7 @@ def build_trainer(
|
||||
targets: TargetProtocol,
|
||||
) -> Trainer:
|
||||
trainer_conf = PLTrainerConfig.model_validate(
|
||||
conf.train,
|
||||
from_attributes=True,
|
||||
conf.train.model_dump(mode="python")
|
||||
)
|
||||
return Trainer(
|
||||
**trainer_conf.model_dump(exclude_none=True),
|
||||
|
Loading…
Reference in New Issue
Block a user