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

metrics[7]: speedup binclf with numba [GSoC23 cont'd] #14

Closed
wants to merge 3 commits into from

Conversation

jpcbertoldo
Copy link
Owner

@jpcbertoldo jpcbertoldo commented Sep 6, 2023

Description

This is a continuation of Anomaly Segmentation Metrics for Anomalib — GSoC 2023 @ OpenVINO.

Updated PRs at https://gist.github.com/jpcbertoldo/12553b7eaa97cfbf3e55bfd7d1cafe88?permalink_comment_id=4681988#gistcomment-4681988


Accelerate the computation of binary classification curves per image by using numba.

The functions

_binclf_curve_numba (for one image)
_binclf_curves_numba_parallel (for many images)

are respectively equivalent to

  • __binclf_curves_ndarray_itertools (for one image)
  • _binclf_curves_ndarray_itertools (for many images)

ATTENTION: new requirement numba!

Changes

Describe the changes you made
  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which refactors the code base)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

Ensure that you followed the following
  • I have added a summary of my changes to the CHANGELOG (not for minor changes, docs and tests).
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas (If applicable)
  • I have made corresponding changes to the documentation (If applicable)
  • I have added tests that prove my fix is effective or that my feature works (If applicable)

@jpcbertoldo jpcbertoldo changed the title metrics[7]: speedup binclf with numba metrics[7]: speedup binclf with numba [GSoC23 cont'd] Sep 6, 2023
required by numba to use parallel stuff
@jpcbertoldo
Copy link
Owner Author

Replaced by openvinotoolkit#1557 to catch up with v1.

@jpcbertoldo jpcbertoldo deleted the metrics/next06-speedup branch February 9, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant