Fixed for DFEs with pixelspace and video models
This commit is contained in:
1 parent
0e17841767
commit
fb204b7677
4 files changed
+92
-53
No files matched your search
@@ -796,7 +796,10 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
tv = torch.clamp(tv, min=0.001)
|
||||
|
||||
# step latent, use here or with do_fft_loss
|
||||
t0 = noisy_latents - tv * noise_pred
|
||||
if self.sd.x0_pred:
|
||||
t0 = noise_pred
|
||||
else:
|
||||
t0 = noisy_latents - tv * noise_pred
|
||||
|
||||
if self.train_config.t0_loss_target:
|
||||
# replace the loss targets and pred
|
||||
|
||||
Reference in new issue
Block a user