mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-05-11 16:30:40 +00:00
Change the velocity weight cap on dfe 9
This commit is contained in:
@@ -1150,7 +1150,7 @@ class DiffusionFeatureExtractor9(nn.Module):
|
||||
perceptual_loss = torch.nn.functional.mse_loss(
|
||||
pred.float(), target.float(), reduction="none"
|
||||
)
|
||||
velocity_equiv_weight = (1.0 / torch.clamp(tv, min=0.001) ** 2)
|
||||
velocity_equiv_weight = (1.0 / torch.clamp(tv, min=0.1) ** 2)
|
||||
loss_perceptual = (perceptual_loss * velocity_equiv_weight).mean()
|
||||
|
||||
if self.do_partial_step:
|
||||
|
||||
Reference in New Issue
Block a user