mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-16 00:49:40 +00:00
Use args.wavelet_loss to activate
This commit is contained in:
@@ -469,7 +469,7 @@ class NetworkTrainer:
|
||||
loss = train_util.conditional_loss(noise_pred.float(), target.float(), args.loss_type, "none", huber_c)
|
||||
|
||||
wav_loss = None
|
||||
if args.wavelet_loss_alpha:
|
||||
if args.wavelet_loss:
|
||||
if args.wavelet_loss_rectified_flow:
|
||||
# Calculate flow-based clean estimate using the target
|
||||
flow_based_clean = noisy_latents - sigmas.view(-1, 1, 1, 1) * target
|
||||
|
||||
Reference in New Issue
Block a user