Skip to content

Commit

Permalink
[FIX] Make input_size primitive type
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 20, 2022
1 parent 00b1c7e commit d9bb429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions config/config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ data:

dataset:
object: "hourglass_tensorflow.datasets.HTFDatasetHandler"
input_size: 256
params:
mockup_param: to_pass_to_object_init_method
sets:
test: true
validation: true
input:
size: 256
split:
column: set
train_value: TRAIN
Expand Down
6 changes: 1 addition & 5 deletions hourglass_tensorflow/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,13 @@ class HTFDatasetBBoxConfig(BaseModel):
)


class HTFDatasetSizeConfig(BaseModel):
input: int = 256


class HTFDatasetConfig(BaseModel):
object: str
input_size: int = 256
params: Optional[HTFDatasetParamsConfig] = Field(
default_factory=HTFDatasetParamsConfig
)
sets: Optional[HTFDatasetSetsConfig]
size: Optional[HTFDatasetSizeConfig] = Field(default_factory=HTFDatasetSizeConfig)
split: Optional[HTFDatasetSplitConfig] = Field(
default_factory=HTFDatasetSplitConfig
)
Expand Down

0 comments on commit d9bb429

Please sign in to comment.