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 bug expand(torch.FloatTensor{[1, 1, 1, 33, 33]}, size=[1, -1, -1,… #1892

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added

- 🚀 modify blur.py, enable to run PatchCore model by @qkhanh711 in https://github.com/openvinotoolkit/anomalib/pull/1892
- 🚀 Add KMeans PyTorch Implementation to cfa model by @aadhamm in https://github.com/openvinotoolkit/anomalib/pull/998
- 🚀 Add DSR model by @phcarval in https://github.com/openvinotoolkit/anomalib/pull/1142
- ⚙️ Add `setuptools` as a requirement (via `pkg_resources`) by @murilo-cunha in https://github.com/openvinotoolkit/anomalib/pull/1168
Expand Down
2 changes: 1 addition & 1 deletion src/anomalib/models/components/filters/blur.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
if normalize:
self.kernel = normalize_kernel2d(self.kernel)
self.kernel.unsqueeze_(0).unsqueeze_(0)
self.kernel = self.kernel.expand(self.channels, -1, -1, -1)
self.kernel = self.kernel.expand(self.channels, -1, -1, -1, -1)
self.border_type = border_type
self.padding = padding
self.height, self.width = self.kernel.shape[-2:]
Expand Down
Loading