Skip to content

Conversation

HoBeom
Copy link

@HoBeom HoBeom commented Apr 9, 2024

Motivation

#2815

Modification

acc_metric.py/class ConfusionMatrix

BC-breaking (Optional)

.

Use cases (Optional)

.

Checklist

  1. Pre-commit or other linting tools should be used to fix the potential lint issues. ✅
  2. The modification should be covered by complete unit tests. If not, please add more unit tests to ensure the correctness. ❎
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMCls. ⛔︎
  4. The documentation should be modified accordingly, like docstring or example tutorials. ⛔︎

@HoBeom
Copy link
Author

HoBeom commented Apr 9, 2024

Also I got error in RGBPoseHead in training on last batch with less then batch size.

elif labels.dim() == 1 and labels.size()[0] == self.num_classes \
and cls_scores.size()[0] == 1:

can be changed as follows to check the size correctly.

        elif labels.dim() == 1 and labels.size()[0] == self.num_classes \
                and cls_scores[self.loss_components[0]].size()[0] == 1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants