# StableCascadeUNet

A UNet model from the [Stable Cascade pipeline](../pipelines/stable_cascade.md).

## StableCascadeUNet[[diffusers.models.StableCascadeUNet]]

<div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8">


<docstring><name>class diffusers.models.StableCascadeUNet</name><anchor>diffusers.models.StableCascadeUNet</anchor><source>https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unets/unet_stable_cascade.py#L137</source><parameters>[{"name": "in_channels", "val": ": int = 16"}, {"name": "out_channels", "val": ": int = 16"}, {"name": "timestep_ratio_embedding_dim", "val": ": int = 64"}, {"name": "patch_size", "val": ": int = 1"}, {"name": "conditioning_dim", "val": ": int = 2048"}, {"name": "block_out_channels", "val": ": typing.Tuple[int] = (2048, 2048)"}, {"name": "num_attention_heads", "val": ": typing.Tuple[int] = (32, 32)"}, {"name": "down_num_layers_per_block", "val": ": typing.Tuple[int] = (8, 24)"}, {"name": "up_num_layers_per_block", "val": ": typing.Tuple[int] = (24, 8)"}, {"name": "down_blocks_repeat_mappers", "val": ": typing.Optional[typing.Tuple[int]] = (1, 1)"}, {"name": "up_blocks_repeat_mappers", "val": ": typing.Optional[typing.Tuple[int]] = (1, 1)"}, {"name": "block_types_per_layer", "val": ": typing.Tuple[typing.Tuple[str]] = (('SDCascadeResBlock', 'SDCascadeTimestepBlock', 'SDCascadeAttnBlock'), ('SDCascadeResBlock', 'SDCascadeTimestepBlock', 'SDCascadeAttnBlock'))"}, {"name": "clip_text_in_channels", "val": ": typing.Optional[int] = None"}, {"name": "clip_text_pooled_in_channels", "val": " = 1280"}, {"name": "clip_image_in_channels", "val": ": typing.Optional[int] = None"}, {"name": "clip_seq", "val": " = 4"}, {"name": "effnet_in_channels", "val": ": typing.Optional[int] = None"}, {"name": "pixel_mapper_in_channels", "val": ": typing.Optional[int] = None"}, {"name": "kernel_size", "val": " = 3"}, {"name": "dropout", "val": ": typing.Union[float, typing.Tuple[float]] = (0.1, 0.1)"}, {"name": "self_attn", "val": ": typing.Union[bool, typing.Tuple[bool]] = True"}, {"name": "timestep_conditioning_type", "val": ": typing.Tuple[str] = ('sca', 'crp')"}, {"name": "switch_level", "val": ": typing.Optional[typing.Tuple[bool]] = None"}]</parameters></docstring>


</div>

<EditOnGithub source="https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/stable_cascade_unet.md" />