Unverified Commit 6c0ca5ef authored by Yuntian Deng's avatar Yuntian Deng Committed by GitHub
Browse files

Fix typo in unet_blocks.py (#353)

Update unet_blocks.py

fix typo
parent cab76505
...@@ -60,7 +60,7 @@ def get_down_block( ...@@ -60,7 +60,7 @@ def get_down_block(
) )
elif down_block_type == "CrossAttnDownBlock2D": elif down_block_type == "CrossAttnDownBlock2D":
if cross_attention_dim is None: 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( return CrossAttnDownBlock2D(
num_layers=num_layers, num_layers=num_layers,
in_channels=in_channels, in_channels=in_channels,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment