Skip to content

Commit

Permalink
Remove num_workers Hotfix (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSabadin authored and kozlov721 committed Oct 9, 2024
1 parent 0a7a42c commit 575e0ca
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions luxonis_train/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,6 @@ class Config(LuxonisConfig):
tuner: TunerConfig | None = None
ENVIRON: Environ = Field(Environ(), exclude=True)

@model_validator(mode="after")
def validate_num_workers(self) -> Self:
if self.loader.name == "LuxonisLoaderTorch":
if self.trainer.num_workers != 0:
logger.warning(
"Setting `num_workers` to 0 because of "
"compatibility with LuxonisDataset."
)
self.trainer.num_workers = 0
return self

@model_validator(mode="before")
@classmethod
def check_environment(cls, data: Any) -> Any:
Expand Down

0 comments on commit 575e0ca

Please sign in to comment.