Suggest the right module

This commit is contained in:
rockerBOO
2025-04-08 04:13:37 -04:00
parent 837231a5c7
commit 64422ff4a0

View File

@@ -588,7 +588,7 @@ class WaveletLoss(torch.nn.Module):
self.hl_weight2 = 0.01
self.hh_weight2 = 0.05
assert pywt.wavedec2 is not None, "PyWavelet module not available. Please install `pip install PyWavelet`"
assert pywt.wavedec2 is not None, "PyWavelets module not available. Please install `pip install PyWavelets`"
# Create GPU filters from wavelet
wav = pywt.Wavelet(wavelet)
self.register_buffer('dec_lo', torch.Tensor(wav.dec_lo).to(device))