ngs.


mid_block_only_cross_attention (bool, optional, defaults to None) —
Whether to use cross attention with the mid block when using the UNetMidBlock2DSimpleCrossAttn. If
only_cross_attention is given as a single boolean and mid_block_only_cross_attention is None, the
only_cross_attention value will be used as the value for mid_block_only_cross_attention. Else, it will
default to False.



UNet2DConditionModel is a conditional 2D UNet model 