mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Setup to retrain guidance embedding for flux. Use defualt timestep distribution for flux
This commit is contained in:
@@ -330,7 +330,12 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
|
||||
elif self.sd.is_rectified_flow:
|
||||
# only if preconditioning model outputs
|
||||
# if not preconditioning, (target = noise - batch.latents) is used
|
||||
# if not preconditioning, (target = noise - batch.latents)
|
||||
|
||||
|
||||
# target = noise - batch.latents
|
||||
|
||||
# if preconditioning outputs, target latents
|
||||
target = batch.latents.detach()
|
||||
else:
|
||||
target = noise
|
||||
|
||||
Reference in New Issue
Block a user