Skip to content

Commit 401d7d7

Browse files
authored
Merge pull request #1025 from krahets/patch-1
Fix sinusoidal_embedding calculation for bf16 precision.
2 parents a30ed90 + b8d7d55 commit 401d7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffsynth/models/wan_video_dit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def forward(self,
362362
**kwargs,
363363
):
364364
t = self.time_embedding(
365-
sinusoidal_embedding_1d(self.freq_dim, timestep))
365+
sinusoidal_embedding_1d(self.freq_dim, timestep).to(x.dtype))
366366
t_mod = self.time_projection(t).unflatten(1, (6, self.dim))
367367
context = self.text_embedding(context)
368368

0 commit comments

Comments
 (0)