Skip to content

Commit

Permalink
fix downsample bug in MidResTemporalBlock1D (#10250)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmosaint authored Dec 16, 2024
1 parent 5ed761a commit aafed3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/models/unets/unet_1d_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def forward(self, hidden_states: torch.Tensor, temb: torch.Tensor) -> torch.Tens
if self.upsample:
hidden_states = self.upsample(hidden_states)
if self.downsample:
self.downsample = self.downsample(hidden_states)
hidden_states = self.downsample(hidden_states)

return hidden_states

Expand Down

0 comments on commit aafed3f

Please sign in to comment.