Skip to content

Downsample in the MidResTemporalBlock1D #10247

Description

@holmosaint

Describe the bug

In decoding/model/autoencoders/unets/unet_1d_blocks.py:212-222

defforward(self, hidden_states: torch.Tensor, temb: torch.Tensor) ->torch.Tensor:
hidden_states=self.resnets[0](hidden_states, temb)
forresnetinself.resnets[1:]:
hidden_states=resnet(hidden_states, temb)
ifself.upsample:
hidden_states=self.upsample(hidden_states)
ifself.downsample:
self.downsample=self.downsample(hidden_states)
returnhidden_states

Looks like it should be

hidden_states=self.downsample(hidden_states)

Reproduction

N/A

Logs

No response

System Info

N/A

Who can help?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions