albumentations-team / albucore

A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations. Perfect for developers working in computer vision who require efficient and scalable image augmentation.
MIT License
12 stars 3 forks source link

Update benchmark #15

Closed ternaus closed 5 months ago

ternaus commented 5 months ago

Summary by Sourcery

This pull request updates the benchmark script to include support for the torchvision library, adds a new benchmark class MultiplyAdd, and enhances the handling of image data types and shapes. It also updates the benchmark results and test cases accordingly.

sourcery-ai[bot] commented 5 months ago

Reviewer's Guide by Sourcery

This pull request updates the benchmark script to include support for the 'torchvision' library, adds new transformations, and refactors the code for better performance and readability. It also updates the test cases to reflect these changes.

File-Level Changes

Files Changes
benchmark/benchmark.py
benchmark/utils.py
benchmark.sh
Refactored benchmark script to include 'torchvision' library, added new transformations, and updated utility functions.
albucore/functions.py
albucore/utils.py
Updated functions to handle different data types and added new utility functions for better performance.
tests/test_multiply.py
tests/test_add.py
tests/test_add_weighted.py
tests/test_normalize_per_image.py
tests/test_multiply_add.py
tests/test_power.py
Updated test cases to reflect changes in the benchmark script and added new test cases for better coverage.
benchmark/results/float32_1.md
benchmark/results/uint8_1.md
benchmark/results/float32_3.md
benchmark/results/float32_5.md
benchmark/results/uint8_3.md
benchmark/results/uint8_5.md
Updated benchmark results to include 'torchvision' library.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 49.15254% with 150 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@17e2d02). Learn more about missing BASE report.

Files Patch % Lines
benchmark/benchmark.py 0.00% 130 Missing :warning:
benchmark/utils.py 0.00% 8 Missing :warning:
albucore/functions.py 90.90% 7 Missing :warning:
tests/test_add.py 64.28% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #15 +/- ## ======================================= Coverage ? 54.27% ======================================= Files ? 14 Lines ? 1321 Branches ? 0 ======================================= Hits ? 717 Misses ? 604 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.