Skip to content

Fix type error in faster_eval_api#65

Merged
MiXaiLL76 merged 1 commit intoMiXaiLL76:mainfrom
matteomrz:fix_extended_metrics
Jan 7, 2026
Merged

Fix type error in faster_eval_api#65
MiXaiLL76 merged 1 commit intoMiXaiLL76:mainfrom
matteomrz:fix_extended_metrics

Conversation

@matteomrz
Copy link
Copy Markdown
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Fixing #64

Modification

I changed the cast to integer in faster_eval_api.py:238 to a call to the item function of the ndarray. This retrieves the single value in the 2-dimensional array without resulting in a type error.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test 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 has been modified accordingly, like docstring or example tutorials.

@MiXaiLL76 MiXaiLL76 linked an issue Jan 7, 2026 that may be closed by this pull request
@MiXaiLL76
Copy link
Copy Markdown
Owner

Thanks for your contribution!

@MiXaiLL76 MiXaiLL76 merged commit 7720fc4 into MiXaiLL76:main Jan 7, 2026
6 of 7 checks passed
@MiXaiLL76 MiXaiLL76 mentioned this pull request Feb 21, 2026
7 tasks
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.

Broken extended_metrics attribute

2 participants