mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Compare commits
2 Commits
2379bb27e8
...
cda4c076fc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cda4c076fc | ||
|
|
d90b293792 |
@@ -477,7 +477,8 @@ class NetworkTrainer:
|
||||
loss = train_util.conditional_loss(noise_pred.float(), target.float(), args.loss_type, "none", huber_c)
|
||||
|
||||
if args.wavelet_loss:
|
||||
def maybe_denoise_latents(denoise_latents: bool, noisy_latents, sigmas, noise_pred, noise):
|
||||
def maybe_denoise_latents(denoise_latents: bool, noisy_latents, sigma, noise_pred, noise):
|
||||
sigmas = sigma.view(-1, 1, 1, 1).expand(noise_pred.size(0), -1, -1, -1)
|
||||
if denoise_latents:
|
||||
if self.is_flow_matching:
|
||||
# denoise latents to use for wavelet loss
|
||||
|
||||
Reference in New Issue
Block a user