Skip to content

Commit

Permalink
Revert "remove ignite based properties"
Browse files Browse the repository at this point in the history
This reverts commit 5aa4f38.
  • Loading branch information
KumoLiu committed Mar 26, 2024
1 parent d671512 commit ca90a4b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions monai/bundle/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: "dataset_dir",
},
"trainer": {
BundleProperty.DESC: "training workflow engine.",
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}trainer",
},
"network_def": {
BundleProperty.DESC: "network module for the training.",
BundleProperty.REQUIRED: False,
Expand All @@ -58,12 +63,23 @@
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}dataset",
},
"train_inferer": {
BundleProperty.DESC: "MONAI Inferer object to execute the model computation in training.",
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}inferer",
},
"train_dataset_data": {
BundleProperty.DESC: "data source for the training dataset.",
BundleProperty.REQUIRED: False,
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}dataset{ID_SEP_KEY}data",
BundlePropertyConfig.REF_ID: None, # no reference to this ID
},
"train_handlers": {
BundleProperty.DESC: "event-handlers for the training logic.",
BundleProperty.REQUIRED: False,
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}handlers",
BundlePropertyConfig.REF_ID: f"train{ID_SEP_KEY}trainer{ID_SEP_KEY}train_handlers",
},
"train_preprocessing": {
BundleProperty.DESC: "preprocessing for the training input data.",
BundleProperty.REQUIRED: False,
Expand All @@ -82,6 +98,12 @@
BundlePropertyConfig.ID: f"train{ID_SEP_KEY}key_metric",
BundlePropertyConfig.REF_ID: f"train{ID_SEP_KEY}trainer{ID_SEP_KEY}key_train_metric",
},
"evaluator": {
BundleProperty.DESC: "validation workflow engine.",
BundleProperty.REQUIRED: False,
BundlePropertyConfig.ID: f"validate{ID_SEP_KEY}evaluator",
BundlePropertyConfig.REF_ID: "validator", # this REF_ID is the arg name of `ValidationHandler`
},
"val_interval": {
BundleProperty.DESC: "validation interval during the training.",
BundleProperty.REQUIRED: False,
Expand Down Expand Up @@ -153,17 +175,33 @@
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: "dataset",
},
"evaluator": {
BundleProperty.DESC: "inference / evaluation workflow engine.",
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: "evaluator",
},
"network_def": {
BundleProperty.DESC: "network module for the inference.",
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: "network_def",
},
"inferer": {
BundleProperty.DESC: "MONAI Inferer object to execute the model computation in inference.",
BundleProperty.REQUIRED: True,
BundlePropertyConfig.ID: "inferer",
},
"dataset_data": {
BundleProperty.DESC: "data source for the inference / evaluation dataset.",
BundleProperty.REQUIRED: False,
BundlePropertyConfig.ID: f"dataset{ID_SEP_KEY}data",
BundlePropertyConfig.REF_ID: None, # no reference to this ID
},
"handlers": {
BundleProperty.DESC: "event-handlers for the inference / evaluation logic.",
BundleProperty.REQUIRED: False,
BundlePropertyConfig.ID: "handlers",
BundlePropertyConfig.REF_ID: f"evaluator{ID_SEP_KEY}val_handlers",
},
"preprocessing": {
BundleProperty.DESC: "preprocessing for the input data.",
BundleProperty.REQUIRED: False,
Expand Down

0 comments on commit ca90a4b

Please sign in to comment.