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