mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-23 17:38:10 +00:00
Fix dtype issue in time embedding calculation
This commit is contained in:
@@ -362,7 +362,7 @@ class WanModel(torch.nn.Module):
|
|||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
t = self.time_embedding(
|
t = self.time_embedding(
|
||||||
sinusoidal_embedding_1d(self.freq_dim, timestep))
|
sinusoidal_embedding_1d(self.freq_dim, timestep).to(x.dtype))
|
||||||
t_mod = self.time_projection(t).unflatten(1, (6, self.dim))
|
t_mod = self.time_projection(t).unflatten(1, (6, self.dim))
|
||||||
context = self.text_embedding(context)
|
context = self.text_embedding(context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user