Change the velocity weight cap on dfe 9
This commit is contained in:
1 parent
6bb8acbffc
commit
a12ddd72a1
1 file changed
+1
-1
@@ -1150,7 +1150,7 @@ class DiffusionFeatureExtractor9(nn.Module):
|
|||||||
perceptual_loss = torch.nn.functional.mse_loss(
|
perceptual_loss = torch.nn.functional.mse_loss(
|
||||||
pred.float(), target.float(), reduction="none"
|
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()
|
loss_perceptual = (perceptual_loss * velocity_equiv_weight).mean()
|
||||||
|
|
||||||
if self.do_partial_step:
|
if self.do_partial_step:
|
||||||
|
|||||||
Reference in new issue
Block a user