mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-06 21:52:27 +00:00
fix flux_train.py is not working
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user