fix flux_train.py is not working

This commit is contained in:
Kohya S
2024-12-01 14:13:37 +09:00
parent 14f642f88b
commit 0fe6320f09

View File

@@ -667,7 +667,7 @@ def train(args):
# calculate loss
loss = train_util.conditional_loss(
args, noise_pred.float(), target.float(), timesteps, "none", noise_scheduler
args, model_pred.float(), target.float(), timesteps, "none", noise_scheduler
)
if weighting is not None:
loss = loss * weighting