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

Fix how tcn test considers total num classes automatically #52

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Purg
Copy link
Member

@Purg Purg commented Dec 18, 2024

Some detection inputs have "missing" categories due to their being skipped during detection inference. This creates a discrepancy between quantity of listed categories vs category IDs that can be listed. Instead consider the max category ID + 1, on the assumption that category IDs start at 0, which is a strong assumption due to considering category IDs as the index of prediction outputs to which that category applies.

Some detection inputs have "missing" categories due to their being
skipped during detection inference. This creates a discrepancy between
quantity of listed categories vs category IDs that can be listed.
Instead consider the max category ID + 1, on the assumption that
category IDs start at 0, which is a strong assumption due to considering
category IDs as the index of prediction outputs to which that category
applies.
@Purg Purg merged commit 7226e3a into PTG-Kitware:main Dec 18, 2024
0 of 11 checks passed
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