Block2DCrossAttn") —
The mid block type. Choose from UNetMidBlock2DCrossAttn or UNetMidBlock2DSimpleCrossAttn, will skip the
mid block layer if None.


up_block_types (Tuple[str], optional, defaults to ("UpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "CrossAttnUpBlock2D",)) —
The tuple of upsample blocks to use.


only_cross_attention(bool or Tuple[bool], optional, default to False) —
Whether to include self-attention in the basic tran