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

implement fast image resize #59

Merged
merged 5 commits into from
Mar 17, 2024
Merged

implement fast image resize #59

merged 5 commits into from
Mar 17, 2024

Conversation

edgarriba
Copy link
Member

@edgarriba edgarriba commented Mar 17, 2024

  • implement the fast_image_resizze crate that uses simd instructions to accelerate
  • split the resize functionality into: resize_native (ndarray::zip) / resize_fast
    • limitations: the fast version only supports now u8/3channels
  • deprecate the ResizeInterpolationOptions in favour to normalize the apo
  • expose to python and add benchmark

Benchmark:

  • compile for release: maturin develop -m py-kornia/Cargo.toml --release
  • execute benchmark: python py-kornia/benchmark/bench_resize.py
OpenCV: 0.04 ms
PIL-simd: 0.06 ms
Kornia: 0.07 ms

@edgarriba edgarriba changed the title Resize implement fast image resize Mar 17, 2024
@edgarriba edgarriba merged commit 04d3a6f into main Mar 17, 2024
9 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.

1 participant