We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4450b1c commit ed14d26Copy full SHA for ed14d26
src/diffusers/models/unets/unet_1d.py
@@ -225,7 +225,7 @@ def forward(
225
226
timestep_embed = self.time_proj(timesteps)
227
if self.config.use_timestep_embedding:
228
- timestep_embed = self.time_mlp(timestep_embed)
+ timestep_embed = self.time_mlp(timestep_embed.to(sample.dtype))
229
else:
230
timestep_embed = timestep_embed[..., None]
231
timestep_embed = timestep_embed.repeat([1, 1, sample.shape[2]]).to(sample.dtype)
0 commit comments