Skip to content

Commit

Permalink
[ADD](handlers) Train cfg to main cfg base model
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 23, 2022
1 parent 3ca77bc commit 62498ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hourglass_tensorflow/types/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from hourglass_tensorflow.types.config.data import HTFDataConfig
from hourglass_tensorflow.types.config.model import HTFModelConfig
from hourglass_tensorflow.types.config.train import HTFTrainConfig
from hourglass_tensorflow.types.config.fields import HTFConfigField
from hourglass_tensorflow.utils.object_logger import ObjectLogger
from hourglass_tensorflow.types.config.dataset import HTFDatasetConfig
Expand All @@ -23,11 +24,12 @@ class HTFConfigMode(enum.Enum):


class HTFConfig(HTFConfigField):
version: Optional[Union[str, int]]
mode: HTFConfigMode = HTFConfigMode.TRAIN
version: Optional[Union[str, int]]
data: Optional[HTFDataConfig]
dataset: Optional[HTFDatasetConfig]
model: Optional[HTFModelConfig]
train: Optional[HTFTrainConfig]


# region ConfigParser
Expand Down
2 changes: 1 addition & 1 deletion hourglass_tensorflow/types/config/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
class HTFTrainConfig(HTFConfigField):
object: Optional[HTFObjectReference] = Field(
default_factory=HTFObjectReference(
source="hourglass_tensorflow.handlers.model.HTFModelHandler"
source="hourglass_tensorflow.handlers.train.HTFTrainHandler"
)
)

0 comments on commit 62498ab

Please sign in to comment.