Skip to content

Commit

Permalink
Change default from multi-class to multi-label
Browse files Browse the repository at this point in the history
  • Loading branch information
JihwanEom committed Aug 25, 2022
1 parent 33a0874 commit a8085bc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
_base_ = [
'../../../submodule/models/classification/ote_efficientnet_b0.yaml',
]

runner = dict(max_epochs=20)
fp16 = dict(loss_scale=512.)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'../../../submodule/models/classification/ote_efficientnet_b0_multilabel.yaml',
]

runner = dict(max_epochs=90)
fp16 = dict(loss_scale=512.)

custom_hooks = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hyper_parameters:
learning_rate_warmup_iters:
default_value: 0
num_iters:
default_value: 20
default_value: 90
algo_backend:
train_type:
default_value: Incremental
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
_base_ = [
'../../../submodule/models/classification/ote_efficientnet_v2_s.yaml',
]

runner = dict(max_epochs=20)
fp16 = dict(loss_scale=512.)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'../../../submodule/models/classification/ote_efficientnet_v2_s_multilabel.yaml',
]

runner = dict(max_epochs=90)
fp16 = dict(loss_scale=512.)

custom_hooks = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hyper_parameters:
learning_rate_warmup_iters:
default_value: 0
num_iters:
default_value: 20
default_value: 90
algo_backend:
train_type:
default_value: Incremental
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
_base_ = [
'../../../submodule/models/classification/ote_mobilenet_v3_large.yaml',
]

runner = dict(max_epochs=20)
fp16 = dict(loss_scale=512.)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'../../../submodule/models/classification/ote_mobilenet_v3_large_multilabel.yaml',
]

runner = dict(max_epochs=90)
fp16 = dict(loss_scale=512.)

custom_hooks = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hyper_parameters:
learning_rate_warmup_iters:
default_value: 100
num_iters:
default_value: 20
default_value: 90
algo_backend:
train_type:
default_value: Incremental
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def _init_model_cfg(self):
cfg_path = os.path.join(base_dir, 'model.py')
cfg = MPAConfig.fromfile(cfg_path)

# To initialize different HP for multi-label classification / Support HP change via CLI & UI
if self._multilabel:
# To initialize different HP according to task / Support HP change via CLI & UI
if not self._multilabel:
template = MPAConfig.fromfile(self.template_file_path)
template_params = template.hyper_parameters.parameter_overrides.learning_parameters
incoming_params = self._hyperparams.learning_parameters
Expand Down

0 comments on commit a8085bc

Please sign in to comment.