mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-16 00:49:40 +00:00
Suggest the right module
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user