Skip to content
Merged
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
4 changes: 2 additions & 2 deletions STL_main/STL_2D_FFT_Torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ def bump_steerable_2d(omega_grid, L, xi0, width_factor=2.5, eps=1e-12):

# apply bump window over r: g(r) = exp(-r^2 / (1 - r^2)) * 1_{0<r<1}
r2 = r**2
support_r = (r >= 0.0) & (r < 1.0)
r2 *= width_factor # optimized parameter (for L=4) to follow at best Littlewood Paley condition, see numerical integration in the notebook "BS_wavelet_kernel.ipynb"
r2 *= width_factor # optimized parameter (for L=4) to follow at best Littlewood Paley condition, see numerical integration in the notebook "consistency_Kernel_FFT.ipynb"
support_r = (r >= 0.0) & (r < width_factor ** (-0.5))
Comment on lines 445 to +448
denom = (1.0 - r2).clamp_min(eps)
bump = torch.where(support_r, torch.exp(-r2 / denom), torch.zeros_like(r))

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading