mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
Implement pseudo Huber loss for Flux and SD3
This commit is contained in:
@@ -378,7 +378,7 @@ class Sd3NetworkTrainer(train_network.NetworkTrainer):
|
||||
|
||||
target[diff_output_pr_indices] = model_pred_prior.to(target.dtype)
|
||||
|
||||
return model_pred, target, timesteps, None, weighting
|
||||
return model_pred, target, timesteps, weighting
|
||||
|
||||
def post_process_loss(self, loss, args, timesteps, noise_scheduler):
|
||||
return loss
|
||||
|
||||
Reference in New Issue
Block a user