Skip to content

Commit

Permalink
Fix typo in unet_blocks.py (huggingface#353)
Browse files Browse the repository at this point in the history
Update unet_blocks.py

fix typo
  • Loading branch information
da03 authored Sep 4, 2022
1 parent cab7650 commit 6c0ca5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/models/unet_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_down_block(
)
elif down_block_type == "CrossAttnDownBlock2D":
if cross_attention_dim is None:
raise ValueError("cross_attention_dim must be specified for CrossAttnUpBlock2D")
raise ValueError("cross_attention_dim must be specified for CrossAttnDownBlock2D")
return CrossAttnDownBlock2D(
num_layers=num_layers,
in_channels=in_channels,
Expand Down

0 comments on commit 6c0ca5e

Please sign in to comment.