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 CPU resize with mixed NN/other resampling filters. #5647

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

mzient
Copy link
Contributor

@mzient mzient commented Sep 26, 2024

Category:

Bug fix (non-breaking change which fixes an issue)

Description:

When resizing an image with different min/mag filters, the memory requirements are calculated by taking the maximum for any pass. The filter support for NN interpolation is returned as -1 and ended up as a very large size_t - resulting in a null pointer.
This PR fixes that and adds a regression test for mixed NN/other interpolation.

Additional information:

Affected modules and functionalities:

CPU separable resampling.

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
@NVIDIA NVIDIA deleted a comment from dali-automaton Sep 26, 2024
@NVIDIA NVIDIA deleted a comment from dali-automaton Sep 26, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [18772555]: BUILD STARTED

@NVIDIA NVIDIA deleted a comment from dali-automaton Sep 27, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [18772555]: BUILD PASSED

@mzient mzient merged commit 57909cc into NVIDIA:main Sep 27, 2024
6 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.

4 participants