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 test-val dsize.empty in video anomalib #1970

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Bepitic
Copy link
Contributor

@Bepitic Bepitic commented Apr 9, 2024

Signed-off-by: Bepitic bepitic@gmail.com

πŸ“ Description

The error of size being empty in the function of resize, can be because of:

  • 1th, it is empty, (not our case)

  • 2th the third dimension(channels) in the image is more than 512(our case).
    In our case we are providing the image in the shape of [C, X, Y] and cv2 resize expects, [ X, Y, C].
    This PR only arranges de dimensionality to match the shape

  • πŸ› οΈ Fixes [Bug]: validation and testing in anomalib video Β #1969

✨ Changes

Select what type of change your PR is:

  • 🐞 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
  • πŸ”’ Security update

βœ… Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • πŸ“‹ I have summarized my changes in the CHANGELOG and followed the guidelines for my type of change (skip for minor changes, documentation updates, and test enhancements).
  • πŸ“š I have made the necessary updates to the documentation (if applicable).
  • πŸ§ͺ I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).

For more information about code review checklists, see the Code Review Checklist.

Signed-off-by: Bepitic <bepitic@gmail.com>
@Bepitic
Copy link
Contributor Author

Bepitic commented Apr 12, 2024

We could identify this if the image of the dataset in the test is 512 or more instead of 256.

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.

[Bug]: validation and testing in anomalib video
1 participant