mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-16 00:49:40 +00:00
Add back in padding
This commit is contained in:
@@ -804,6 +804,9 @@ class WaveletLoss(nn.Module):
|
||||
|
||||
# Combine high frequency bands for visualization
|
||||
if combined_hf_pred and combined_hf_target:
|
||||
combined_hf_pred = self._pad_tensors(combined_hf_pred)
|
||||
combined_hf_target = self._pad_tensors(combined_hf_target)
|
||||
|
||||
combined_hf_pred = torch.cat(combined_hf_pred, dim=1)
|
||||
combined_hf_target = torch.cat(combined_hf_target, dim=1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user