Skip to content

Commit

Permalink
Remove obsolete base model path in classificaiton templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Feb 23, 2023
1 parent 57886a0 commit 6c06b9a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ entrypoints:
base: otx.algorithms.classification.tasks.ClassificationTrainTask
openvino: otx.algorithms.classification.tasks.ClassificationOpenVINOTask
nncf: otx.algorithms.classification.tasks.nncf.ClassificationNNCFTask
base_model_path: ../../adapters/deep_object_reid/configs/efficientnet_b0/template_experimental.yaml

# Capabilities.
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ entrypoints:
base: otx.algorithms.classification.tasks.ClassificationTrainTask
openvino: otx.algorithms.classification.tasks.ClassificationOpenVINOTask
nncf: otx.algorithms.classification.tasks.nncf.ClassificationNNCFTask
base_model_path: ../../adapters/deep_object_reid/configs/efficientnet_v2_s/template_experimental.yaml

# Capabilities.
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ entrypoints:
base: otx.algorithms.classification.tasks.ClassificationTrainTask
openvino: otx.algorithms.classification.tasks.ClassificationOpenVINOTask
nncf: otx.algorithms.classification.tasks.nncf.ClassificationNNCFTask
base_model_path: ../../adapters/deep_object_reid/configs/mobilenet_v3_large_075/template_experimental.yaml

# Capabilities.
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ entrypoints:
base: otx.algorithms.classification.tasks.ClassificationTrainTask
openvino: otx.algorithms.classification.tasks.ClassificationOpenVINOTask
nncf: otx.algorithms.classification.tasks.nncf.ClassificationNNCFTask
base_model_path: ../../adapters/deep_object_reid/configs/mobilenet_v3_large_1/template_experimental.yaml

# Capabilities.
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ entrypoints:
base: otx.algorithms.classification.tasks.ClassificationTrainTask
openvino: otx.algorithms.classification.tasks.ClassificationOpenVINOTask
nncf: otx.algorithms.classification.tasks.nncf.ClassificationNNCFTask
base_model_path: ../../adapters/deep_object_reid/configs/mobilenet_v3_small/template_experimental.yaml

# Capabilities.
capabilities:
Expand Down
4 changes: 1 addition & 3 deletions otx/mpa/modules/models/heads/semisl_multilabel_cls_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def __init__(
self.aux_mlp = generate_aux_mlp(aux_mlp, in_channels)

def forward_train(self, x, gt_label):
return self.forward_train_with_last_layers(
x, gt_label, final_cls_layer=self.fc, final_emb_layer=self.aux_mlp
)
return self.forward_train_with_last_layers(x, gt_label, final_cls_layer=self.fc, final_emb_layer=self.aux_mlp)


@HEADS.register_module()
Expand Down

0 comments on commit 6c06b9a

Please sign in to comment.