MCPcopy Create free account
hub / github.com/horseee/DeepCache / __init__

Method __init__

DeepCache/sd/unet_2d_blocks.py:483–561  ·  view source on GitHub ↗
(
        self,
        in_channels: int,
        temb_channels: int,
        dropout: float = 0.0,
        num_layers: int = 1,
        resnet_eps: float = 1e-6,
        resnet_time_scale_shift: str = "default",  # default, spatial
        resnet_act_fn: str = "swish",
        resnet_groups: int = 32,
        resnet_pre_norm: bool = True,
        add_attention: bool = True,
        attention_head_dim=1,
        output_scale_factor=1.0,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

AttentionClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected