Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATE ConfusionMatrix support multimodal predicts #2817

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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