Skip to content

Commit

Permalink
Update ResNet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
toummHus authored Aug 16, 2024
1 parent d2cd41c commit 84cb63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/ResNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def forward(self, x):
out = self.proj_out(out)
return x+out


def make_attn(in_channels, attn_type="vanilla", attn_kwargs=None):
return AttnBlock(in_channels)

def make_attn(in_channels, attn_type="vanilla", attn_kwargs=None):
assert attn_type in ["vanilla", "vanilla-xformers", "memory-efficient-cross-attn", "linear", "none"], f'attn_type {attn_type} unknown'
Expand Down

0 comments on commit 84cb63f

Please sign in to comment.