Skip to content

Commit

Permalink
fixed config dataset_type validating
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Aug 20, 2024
1 parent 672ad7d commit b71d5c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luxonis_train/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def validate_params(self) -> Self:
dataset_type = self.params.get("dataset_type")
if dataset_type is None:
return self
dataset_type = dataset_type.upper()

if dataset_type not in DatasetType.__members__:
raise ValueError(
Expand Down

0 comments on commit b71d5c8

Please sign in to comment.