Skip to content

Fix wavelet norm#41

Merged
pablo-richard merged 9 commits into
masterfrom
fix-wavelet-norm
May 29, 2026
Merged

Fix wavelet norm#41
pablo-richard merged 9 commits into
masterfrom
fix-wavelet-norm

Conversation

@pablo-richard

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates wavelet normalization and related scattering/synthesis behavior across the 2D FFT/kernel backends and statistics pipeline.

Changes:

  • Adds/updates Bump-Steerable and Morlet wavelet normalization paths.
  • Changes kernel backend defaults and smoothing/downsampling behavior.
  • Adds synthesis prefiltering/reweighting options and tightens normalization handling.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
STL_main/Synthesis.py Adds Nyquist prefiltering and ad-hoc coefficient reweighting to synthesis optimization.
STL_main/STL_2D_Kernel_Torch.py Changes default wavelet type, adds bump-steerable kernels, updates Morlet kernels, smoothing kernels, and downsampling.
STL_main/STL_2D_FFT_Torch.py Adjusts FFT wavelet bank normalization and wavelet type naming.
STL_main/ST_Statistics.py Refactors reference diagonal normalization and batch-mean handling.
STL_main/ST_Operator.py Adds norm validation and updates S4 broadcasting/indexing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread STL_main/Synthesis.py Outdated
Comment thread STL_main/Synthesis.py Outdated
:, N // 2 - w : N // 2 + w + 1, N // 2 - w : N // 2 + w + 1
] # [L, K, K]
kernel -= kernel.mean(dim=(-2, -1), keepdims=True)
kernel = kernel.to(device=self.device)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure its necessary

Comment thread STL_main/STL_2D_Kernel_Torch.py
Comment thread STL_main/ST_Operator.py Outdated
@pablo-richard

Copy link
Copy Markdown
Contributor Author

@dtibi69 & @jmdelouis la PR est prête pour être mergée, j'attends vos retours ;)

@pablo-richard pablo-richard merged commit a12706d into master May 29, 2026
4 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.

2 participants