Skip to content

Commit a663cc9

Browse files
authored
Fix out_features in HierarchicalCBAMClsHead (#4016)
Fix out_features
1 parent 81829a3 commit a663cc9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ All notable changes to this project will be documented in this file.
7272
(<https://github.com/openvinotoolkit/training_extensions/pull/3946>)
7373
- Fix config converter for tiling
7474
(<https://github.com/openvinotoolkit/training_extensions/pull/3973>)
75+
- Fix num_trials calculation on dataset length less than num_class
76+
(<https://github.com/openvinotoolkit/training_extensions/pull/4014>)
77+
- Fix out_features in HierarchicalCBAMClsHead
78+
(<https://github.com/openvinotoolkit/training_extensions/pull/4016>)
7579

7680
## \[v2.1.0\]
7781

src/otx/algo/classification/heads/hlabel_cls_head.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def __init__(
355355
self.fc_superclass = nn.Linear(in_channels * self.step_size[0] * self.step_size[1], num_multiclass_heads)
356356
self.attention_fc = nn.Linear(num_multiclass_heads, in_channels * self.step_size[0] * self.step_size[1])
357357
self.cbam = CBAM(in_channels)
358-
self.fc_subclass = nn.Linear(in_channels * self.step_size[0] * self.step_size[1], num_single_label_classes)
358+
self.fc_subclass = nn.Linear(in_channels * self.step_size[0] * self.step_size[1], num_classes)
359359

360360
self._init_layers()
361361

0 commit comments

Comments
 (0)