mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
fix flux_train.py is not working
This commit is contained in:
@@ -667,7 +667,7 @@ def train(args):
|
|||||||
|
|
||||||
# calculate loss
|
# calculate loss
|
||||||
loss = train_util.conditional_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:
|
if weighting is not None:
|
||||||
loss = loss * weighting
|
loss = loss * weighting
|
||||||
|
|||||||
Reference in New Issue
Block a user