Fixed for DFEs with pixelspace and video models
This commit is contained in:
@@ -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