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,
|
targets: TargetProtocol,
|
||||||
) -> Trainer:
|
) -> Trainer:
|
||||||
trainer_conf = PLTrainerConfig.model_validate(
|
trainer_conf = PLTrainerConfig.model_validate(
|
||||||
conf.train,
|
conf.train.model_dump(mode="python")
|
||||||
from_attributes=True,
|
|
||||||
)
|
)
|
||||||
return Trainer(
|
return Trainer(
|
||||||
**trainer_conf.model_dump(exclude_none=True),
|
**trainer_conf.model_dump(exclude_none=True),
|
||||||
|
Loading…
Reference in New Issue
Block a user