Buckets:
hf-doc-build/doc / diffusers /v0.18.2 /en /_app /pages /api /models /controlnet.mdx-hf-doc-builder.js
| import{S as zn,i as Sn,s as Vn,e as n,k as d,w as h,t as l,M as Bn,c as s,d as t,m as c,a as r,x as _,h as i,b as a,G as e,g as p,y as g,L as Rn,q as b,o as v,B as N,v as Wn}from"../../../chunks/vendor-hf-doc-builder.js";import{D as k}from"../../../chunks/Docstring-hf-doc-builder.js";import{I as eo}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function Kn(Ht){let T,oo,A,O,De,X,Fo,Ee,Po,to,I,qo,J,Oo,Io,no,ve,Lo,so,Ne,Fe,jo,ro,M,L,Pe,H,Uo,qe,zo,ao,u,Z,So,Oe,Vo,Bo,j,G,Ro,Q,Wo,xe,Ko,Xo,Jo,U,Y,Ho,D,Zo,ye,Go,Qo,we,Yo,et,ot,$,ee,tt,Ie,nt,st,Le,rt,at,z,oe,lt,je,it,dt,S,te,ct,Ue,ft,lo,E,V,ze,ne,pt,Se,ut,io,F,se,mt,re,ht,Ce,_t,gt,co,P,B,Ve,ae,bt,Be,vt,fo,m,le,Nt,Re,xt,yt,ie,wt,$e,Ct,$t,kt,de,Tt,ce,We,At,Mt,Dt,Ke,Et,Ft,w,Xe,fe,Pt,qt,Je,pe,Ot,It,He,ue,Lt,jt,Ze,me,Ut,po,q,R,Ge,he,zt,Qe,St,uo,C,_e,Vt,ge,Bt,ke,Rt,Wt,Kt,W,be,Xt,Ye,Jt,mo;return X=new eo({}),H=new eo({}),Z=new k({props:{name:"class diffusers.ControlNetModel",anchor:"diffusers.ControlNetModel",parameters:[{name:"in_channels",val:": int = 4"},{name:"conditioning_channels",val:": int = 3"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"freq_shift",val:": int = 0"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"only_cross_attention",val:": typing.Union[bool, typing.Tuple[bool]] = False"},{name:"block_out_channels",val:": typing.Tuple[int] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"downsample_padding",val:": int = 1"},{name:"mid_block_scale_factor",val:": float = 1"},{name:"act_fn",val:": str = 'silu'"},{name:"norm_num_groups",val:": typing.Optional[int] = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1280"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 8"},{name:"num_attention_heads",val:": typing.Union[int, typing.Tuple[int], NoneType] = None"},{name:"use_linear_projection",val:": bool = False"},{name:"class_embed_type",val:": typing.Optional[str] = None"},{name:"num_class_embeds",val:": typing.Optional[int] = None"},{name:"upcast_attention",val:": bool = False"},{name:"resnet_time_scale_shift",val:": str = 'default'"},{name:"projection_class_embeddings_input_dim",val:": typing.Optional[int] = None"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Optional[typing.Tuple[int]] = (16, 32, 96, 256)"},{name:"global_pool_conditions",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, defaults to 4) — | |
| The number of channels in the input sample.`,name:"in_channels"},{anchor:"diffusers.ControlNetModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, defaults to <code>True</code>) — | |
| Whether to flip the sin to cos in the time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.ControlNetModel.freq_shift",description:`<strong>freq_shift</strong> (<code>int</code>, defaults to 0) — | |
| The frequency shift to apply to the time embedding.`,name:"freq_shift"},{anchor:"diffusers.ControlNetModel.down_block_types",description:`<strong>down_block_types</strong> (<code>tuple[str]</code>, defaults to <code>("CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D", "DownBlock2D")</code>) — | |
| The tuple of downsample blocks to use.`,name:"down_block_types"},{anchor:"diffusers.ControlNetModel.only_cross_attention",description:"<strong>only_cross_attention</strong> (<code>Union[bool, Tuple[bool]]</code>, defaults to <code>False</code>) —",name:"only_cross_attention"},{anchor:"diffusers.ControlNetModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>tuple[int]</code>, defaults to <code>(320, 640, 1280, 1280)</code>) — | |
| The tuple of output channels for each block.`,name:"block_out_channels"},{anchor:"diffusers.ControlNetModel.layers_per_block",description:`<strong>layers_per_block</strong> (<code>int</code>, defaults to 2) — | |
| The number of layers per block.`,name:"layers_per_block"},{anchor:"diffusers.ControlNetModel.downsample_padding",description:`<strong>downsample_padding</strong> (<code>int</code>, defaults to 1) — | |
| The padding to use for the downsampling convolution.`,name:"downsample_padding"},{anchor:"diffusers.ControlNetModel.mid_block_scale_factor",description:`<strong>mid_block_scale_factor</strong> (<code>float</code>, defaults to 1) — | |
| The scale factor to use for the mid block.`,name:"mid_block_scale_factor"},{anchor:"diffusers.ControlNetModel.act_fn",description:`<strong>act_fn</strong> (<code>str</code>, defaults to “silu”) — | |
| The activation function to use.`,name:"act_fn"},{anchor:"diffusers.ControlNetModel.norm_num_groups",description:`<strong>norm_num_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 32) — | |
| The number of groups to use for the normalization. If None, normalization and activation layers is skipped | |
| in post-processing.`,name:"norm_num_groups"},{anchor:"diffusers.ControlNetModel.norm_eps",description:`<strong>norm_eps</strong> (<code>float</code>, defaults to 1e-5) — | |
| The epsilon to use for the normalization.`,name:"norm_eps"},{anchor:"diffusers.ControlNetModel.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, defaults to 1280) — | |
| The dimension of the cross attention features.`,name:"cross_attention_dim"},{anchor:"diffusers.ControlNetModel.attention_head_dim",description:`<strong>attention_head_dim</strong> (<code>Union[int, Tuple[int]]</code>, defaults to 8) — | |
| The dimension of the attention heads.`,name:"attention_head_dim"},{anchor:"diffusers.ControlNetModel.use_linear_projection",description:"<strong>use_linear_projection</strong> (<code>bool</code>, defaults to <code>False</code>) —",name:"use_linear_projection"},{anchor:"diffusers.ControlNetModel.class_embed_type",description:`<strong>class_embed_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) — | |
| The type of class embedding to use which is ultimately summed with the time embeddings. Choose from None, | |
| <code>"timestep"</code>, <code>"identity"</code>, <code>"projection"</code>, or <code>"simple_projection"</code>.`,name:"class_embed_type"},{anchor:"diffusers.ControlNetModel.num_class_embeds",description:`<strong>num_class_embeds</strong> (<code>int</code>, <em>optional</em>, defaults to 0) — | |
| Input dimension of the learnable embedding matrix to be projected to <code>time_embed_dim</code>, when performing | |
| class conditioning with <code>class_embed_type</code> equal to <code>None</code>.`,name:"num_class_embeds"},{anchor:"diffusers.ControlNetModel.upcast_attention",description:"<strong>upcast_attention</strong> (<code>bool</code>, defaults to <code>False</code>) —",name:"upcast_attention"},{anchor:"diffusers.ControlNetModel.resnet_time_scale_shift",description:`<strong>resnet_time_scale_shift</strong> (<code>str</code>, defaults to <code>"default"</code>) — | |
| Time scale shift config for ResNet blocks (see <code>ResnetBlock2D</code>). Choose from <code>default</code> or <code>scale_shift</code>.`,name:"resnet_time_scale_shift"},{anchor:"diffusers.ControlNetModel.projection_class_embeddings_input_dim",description:`<strong>projection_class_embeddings_input_dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) — | |
| The dimension of the <code>class_labels</code> input when <code>class_embed_type="projection"</code>. Required when | |
| <code>class_embed_type="projection"</code>.`,name:"projection_class_embeddings_input_dim"},{anchor:"diffusers.ControlNetModel.controlnet_conditioning_channel_order",description:`<strong>controlnet_conditioning_channel_order</strong> (<code>str</code>, defaults to <code>"rgb"</code>) — | |
| The channel order of conditional image. Will convert to <code>rgb</code> if it’s <code>bgr</code>.`,name:"controlnet_conditioning_channel_order"},{anchor:"diffusers.ControlNetModel.conditioning_embedding_out_channels",description:`<strong>conditioning_embedding_out_channels</strong> (<code>tuple[int]</code>, <em>optional</em>, defaults to <code>(16, 32, 96, 256)</code>) — | |
| The tuple of output channel for each block in the <code>conditioning_embedding</code> layer.`,name:"conditioning_embedding_out_channels"},{anchor:"diffusers.ControlNetModel.global_pool_conditions",description:"<strong>global_pool_conditions</strong> (<code>bool</code>, defaults to <code>False</code>) —",name:"global_pool_conditions"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L103"}}),G=new k({props:{name:"forward",anchor:"diffusers.ControlNetModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": typing.Union[torch.Tensor, float, int]"},{name:"encoder_hidden_states",val:": Tensor"},{name:"controlnet_cond",val:": FloatTensor"},{name:"conditioning_scale",val:": float = 1.0"},{name:"class_labels",val:": typing.Optional[torch.Tensor] = None"},{name:"timestep_cond",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"guess_mode",val:": bool = False"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.forward.sample",description:`<strong>sample</strong> (<code>torch.FloatTensor</code>) — | |
| The noisy input tensor.`,name:"sample"},{anchor:"diffusers.ControlNetModel.forward.timestep",description:`<strong>timestep</strong> (<code>Union[torch.Tensor, float, int]</code>) — | |
| The number of timesteps to denoise an input.`,name:"timestep"},{anchor:"diffusers.ControlNetModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.Tensor</code>) — | |
| The encoder hidden states.`,name:"encoder_hidden_states"},{anchor:"diffusers.ControlNetModel.forward.controlnet_cond",description:`<strong>controlnet_cond</strong> (<code>torch.FloatTensor</code>) — | |
| The conditional input tensor of shape <code>(batch_size, sequence_length, hidden_size)</code>.`,name:"controlnet_cond"},{anchor:"diffusers.ControlNetModel.forward.conditioning_scale",description:`<strong>conditioning_scale</strong> (<code>float</code>, defaults to <code>1.0</code>) — | |
| The scale factor for ControlNet outputs.`,name:"conditioning_scale"},{anchor:"diffusers.ControlNetModel.forward.class_labels",description:`<strong>class_labels</strong> (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>) — | |
| Optional class labels for conditioning. Their embeddings will be summed with the timestep embeddings.`,name:"class_labels"},{anchor:"diffusers.ControlNetModel.forward.timestep_cond",description:"<strong>timestep_cond</strong> (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>) —",name:"timestep_cond"},{anchor:"diffusers.ControlNetModel.forward.attention_mask",description:"<strong>attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>, defaults to <code>None</code>) —",name:"attention_mask"},{anchor:"diffusers.ControlNetModel.forward.cross_attention_kwargs(dict[str],",description:`<strong>cross_attention_kwargs(<code>dict[str]</code>,</strong> <em>optional</em>, defaults to <code>None</code>) — | |
| A kwargs dictionary that if specified is passed along to the <code>AttnProcessor</code>.`,name:"cross_attention_kwargs(dict[str],"},{anchor:"diffusers.ControlNetModel.forward.guess_mode",description:`<strong>guess_mode</strong> (<code>bool</code>, defaults to <code>False</code>) — | |
| In this mode, the ControlNet encoder tries its best to recognize the input content of the input even if | |
| you remove all prompts. A <code>guidance_scale</code> between 3.0 and 5.0 is recommended.`,name:"guess_mode"},{anchor:"diffusers.ControlNetModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, defaults to <code>True</code>) — | |
| Whether or not to return a <a href="/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.models.controlnet.ControlNetOutput">ControlNetOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L535",returnDescription:` | |
| <p>If <code>return_dict</code> is <code>True</code>, a <a | |
| href="/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.models.controlnet.ControlNetOutput" | |
| >ControlNetOutput</a> is returned, otherwise a tuple is | |
| returned where the first element is the sample tensor.</p> | |
| `,returnType:` | |
| <p><a | |
| href="/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.models.controlnet.ControlNetOutput" | |
| >ControlNetOutput</a> <strong>or</strong> <code>tuple</code></p> | |
| `}}),Y=new k({props:{name:"from_unet",anchor:"diffusers.ControlNetModel.from_unet",parameters:[{name:"unet",val:": UNet2DConditionModel"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Optional[typing.Tuple[int]] = (16, 32, 96, 256)"},{name:"load_weights_from_unet",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.from_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) — | |
| The UNet model weights to copy to the <a href="/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a>. All configuration options are also copied | |
| where applicable.`,name:"unet"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L343"}}),ee=new k({props:{name:"set_attention_slice",anchor:"diffusers.ControlNetModel.set_attention_slice",parameters:[{name:"slice_size",val:""}],parametersDescription:[{anchor:"diffusers.ControlNetModel.set_attention_slice.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code> or <code>list(int)</code>, <em>optional</em>, defaults to <code>"auto"</code>) — | |
| When <code>"auto"</code>, input to the attention heads is halved, so attention is computed in two steps. If | |
| <code>"max"</code>, maximum amount of memory is saved by running only one slice at a time. If a number is | |
| provided, uses as many slices as <code>attention_head_dim // slice_size</code>. In this case, <code>attention_head_dim</code> | |
| must be a multiple of <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L466"}}),oe=new k({props:{name:"set_attn_processor",anchor:"diffusers.ControlNetModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor]]]"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.set_attn_processor.processor",description:`<strong>processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or only <code>AttentionProcessor</code>) — | |
| The instantiated processor class or a dictionary of processor classes that will be set as the processor | |
| for <strong>all</strong> <code>Attention</code> layers.</p> | |
| <p>If <code>processor</code> is a dict, the key needs to define the path to the corresponding cross attention | |
| processor. This is strongly recommended when setting trainable attention processors.`,name:"processor"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L424"}}),te=new k({props:{name:"set_default_attn_processor",anchor:"diffusers.ControlNetModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L459"}}),ne=new eo({}),se=new k({props:{name:"class diffusers.models.controlnet.ControlNetOutput",anchor:"diffusers.models.controlnet.ControlNetOutput",parameters:[{name:"down_block_res_samples",val:": typing.Tuple[torch.Tensor]"},{name:"mid_block_res_sample",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.models.controlnet.ControlNetOutput.down_block_res_samples",description:`<strong>down_block_res_samples</strong> (<code>tuple[torch.Tensor]</code>) — | |
| A tuple of downsample activations at different resolutions for each downsampling block. Each tensor should | |
| be of shape <code>(batch_size, channel * resolution, height //resolution, width // resolution)</code>. Output can be | |
| used to condition the original UNet’s downsampling activations.`,name:"down_block_res_samples"},{anchor:"diffusers.models.controlnet.ControlNetOutput.mid_down_block_re_sample",description:`<strong>mid_down_block_re_sample</strong> (<code>torch.Tensor</code>) — | |
| The activation of the midde block (the lowest sample resolution). Each tensor should be of shape | |
| <code>(batch_size, channel * lowest_resolution, height // lowest_resolution, width // lowest_resolution)</code>. | |
| Output can be used to condition the original UNet’s middle block activation.`,name:"mid_down_block_re_sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet.py#L39"}}),ae=new eo({}),le=new k({props:{name:"class diffusers.FlaxControlNetModel",anchor:"diffusers.FlaxControlNetModel",parameters:[{name:"sample_size",val:": int = 32"},{name:"in_channels",val:": int = 4"},{name:"down_block_types",val:": typing.Tuple[str] = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"only_cross_attention",val:": typing.Union[bool, typing.Tuple[bool]] = False"},{name:"block_out_channels",val:": typing.Tuple[int] = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"attention_head_dim",val:": typing.Union[int, typing.Tuple[int]] = 8"},{name:"num_attention_heads",val:": typing.Union[int, typing.Tuple[int], NoneType] = None"},{name:"cross_attention_dim",val:": int = 1280"},{name:"dropout",val:": float = 0.0"},{name:"use_linear_projection",val:": bool = False"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"flip_sin_to_cos",val:": bool = True"},{name:"freq_shift",val:": int = 0"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": typing.Tuple[int] = (16, 32, 96, 256)"},{name:"parent",val:": typing.Union[typing.Type[flax.linen.module.Module], typing.Type[flax.core.scope.Scope], typing.Type[flax.linen.module._Sentinel], NoneType] = <flax.linen.module._Sentinel object at 0x7facb47fa310>"},{name:"name",val:": str = None"}],parametersDescription:[{anchor:"diffusers.FlaxControlNetModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>) — | |
| The size of the input sample.`,name:"sample_size"},{anchor:"diffusers.FlaxControlNetModel.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 4) — | |
| The number of channels in the input sample.`,name:"in_channels"},{anchor:"diffusers.FlaxControlNetModel.down_block_types",description:`<strong>down_block_types</strong> (<code>Tuple[str]</code>, <em>optional</em>, defaults to <code>("FlaxCrossAttnDownBlock2D", "FlaxCrossAttnDownBlock2D", "FlaxCrossAttnDownBlock2D", "FlaxDownBlock2D")</code>) — | |
| The tuple of downsample blocks to use.`,name:"down_block_types"},{anchor:"diffusers.FlaxControlNetModel.block_out_channels",description:`<strong>block_out_channels</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to <code>(320, 640, 1280, 1280)</code>) — | |
| The tuple of output channels for each block.`,name:"block_out_channels"},{anchor:"diffusers.FlaxControlNetModel.layers_per_block",description:`<strong>layers_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 2) — | |
| The number of layers per block.`,name:"layers_per_block"},{anchor:"diffusers.FlaxControlNetModel.attention_head_dim",description:`<strong>attention_head_dim</strong> (<code>int</code> or <code>Tuple[int]</code>, <em>optional</em>, defaults to 8) — | |
| The dimension of the attention heads.`,name:"attention_head_dim"},{anchor:"diffusers.FlaxControlNetModel.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code> or <code>Tuple[int]</code>, <em>optional</em>) — | |
| The number of attention heads.`,name:"num_attention_heads"},{anchor:"diffusers.FlaxControlNetModel.cross_attention_dim",description:`<strong>cross_attention_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 768) — | |
| The dimension of the cross attention features.`,name:"cross_attention_dim"},{anchor:"diffusers.FlaxControlNetModel.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0) — | |
| Dropout probability for down, up and bottleneck blocks.`,name:"dropout"},{anchor:"diffusers.FlaxControlNetModel.flip_sin_to_cos",description:`<strong>flip_sin_to_cos</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to flip the sin to cos in the time embedding.`,name:"flip_sin_to_cos"},{anchor:"diffusers.FlaxControlNetModel.freq_shift",description:"<strong>freq_shift</strong> (<code>int</code>, <em>optional</em>, defaults to 0) — The frequency shift to apply to the time embedding.",name:"freq_shift"},{anchor:"diffusers.FlaxControlNetModel.controlnet_conditioning_channel_order",description:`<strong>controlnet_conditioning_channel_order</strong> (<code>str</code>, <em>optional</em>, defaults to <code>rgb</code>) — | |
| The channel order of conditional image. Will convert to <code>rgb</code> if it’s <code>bgr</code>.`,name:"controlnet_conditioning_channel_order"},{anchor:"diffusers.FlaxControlNetModel.conditioning_embedding_out_channels",description:`<strong>conditioning_embedding_out_channels</strong> (<code>tuple</code>, <em>optional</em>, defaults to <code>(16, 32, 96, 256)</code>) — | |
| The tuple of output channel for each block in the <code>conditioning_embedding</code> layer.`,name:"conditioning_embedding_out_channels"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet_flax.py#L104"}}),he=new eo({}),_e=new k({props:{name:"class diffusers.models.controlnet_flax.FlaxControlNetOutput",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput",parameters:[{name:"down_block_res_samples",val:": ndarray"},{name:"mid_block_res_sample",val:": ndarray"}],parametersDescription:[{anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.down_block_res_samples",description:"<strong>down_block_res_samples</strong> (<code>jnp.ndarray</code>) —",name:"down_block_res_samples"},{anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.mid_block_res_sample",description:"<strong>mid_block_res_sample</strong> (<code>jnp.ndarray</code>) —",name:"mid_block_res_sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/diffusers/models/controlnet_flax.py#L34"}}),be=new k({props:{name:"replace",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.18.2/src/flax/struct.py#L108"}}),{c(){T=n("meta"),oo=d(),A=n("h1"),O=n("a"),De=n("span"),h(X.$$.fragment),Fo=d(),Ee=n("span"),Po=l("ControlNet"),to=d(),I=n("p"),qo=l("The ControlNet model was introduced in "),J=n("a"),Oo=l("Adding Conditional Control to Text-to-Image Diffusion Models"),Io=l(" by Lvmin Zhang and Maneesh Agrawala. It provides a greater degree of control over text-to-image generation by conditioning the model on additional inputs such as edge maps, depth maps, segmentation maps, and keypoints for pose detection."),no=d(),ve=n("p"),Lo=l("The abstract from the paper is:"),so=d(),Ne=n("p"),Fe=n("em"),jo=l("We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications."),ro=d(),M=n("h2"),L=n("a"),Pe=n("span"),h(H.$$.fragment),Uo=d(),qe=n("span"),zo=l("ControlNetModel"),ao=d(),u=n("div"),h(Z.$$.fragment),So=d(),Oe=n("p"),Vo=l("A ControlNet model."),Bo=d(),j=n("div"),h(G.$$.fragment),Ro=d(),Q=n("p"),Wo=l("The "),xe=n("a"),Ko=l("ControlNetModel"),Xo=l(" forward method."),Jo=d(),U=n("div"),h(Y.$$.fragment),Ho=d(),D=n("p"),Zo=l("Instantiate a "),ye=n("a"),Go=l("ControlNetModel"),Qo=l(" from "),we=n("a"),Yo=l("UNet2DConditionModel"),et=l("."),ot=d(),$=n("div"),h(ee.$$.fragment),tt=d(),Ie=n("p"),nt=l("Enable sliced attention computation."),st=d(),Le=n("p"),rt=l(`When this option is enabled, the attention module splits the input tensor in slices to compute attention in | |
| several steps. This is useful for saving some memory in exchange for a small decrease in speed.`),at=d(),z=n("div"),h(oe.$$.fragment),lt=d(),je=n("p"),it=l("Sets the attention processor to use to compute attention."),dt=d(),S=n("div"),h(te.$$.fragment),ct=d(),Ue=n("p"),ft=l("Disables custom attention processors and sets the default attention implementation."),lo=d(),E=n("h2"),V=n("a"),ze=n("span"),h(ne.$$.fragment),pt=d(),Se=n("span"),ut=l("ControlNetOutput"),io=d(),F=n("div"),h(se.$$.fragment),mt=d(),re=n("p"),ht=l("The output of "),Ce=n("a"),_t=l("ControlNetModel"),gt=l("."),co=d(),P=n("h2"),B=n("a"),Ve=n("span"),h(ae.$$.fragment),bt=d(),Be=n("span"),vt=l("FlaxControlNetModel"),fo=d(),m=n("div"),h(le.$$.fragment),Nt=d(),Re=n("p"),xt=l("A ControlNet model."),yt=d(),ie=n("p"),wt=l("This model inherits from "),$e=n("a"),Ct=l("FlaxModelMixin"),$t=l(`. Check the superclass documentation for it\u2019s generic methods | |
| implemented for all models (such as downloading or saving).`),kt=d(),de=n("p"),Tt=l("This model is also a Flax Linen "),ce=n("a"),We=n("code"),At=l("flax.linen.Module"),Mt=l(` | |
| subclass. Use it as a regular Flax Linen module and refer to the Flax documentation for all matters related to its | |
| general usage and behavior.`),Dt=d(),Ke=n("p"),Et=l("Inherent JAX features such as the following are supported:"),Ft=d(),w=n("ul"),Xe=n("li"),fe=n("a"),Pt=l("Just-In-Time (JIT) compilation"),qt=d(),Je=n("li"),pe=n("a"),Ot=l("Automatic Differentiation"),It=d(),He=n("li"),ue=n("a"),Lt=l("Vectorization"),jt=d(),Ze=n("li"),me=n("a"),Ut=l("Parallelization"),po=d(),q=n("h2"),R=n("a"),Ge=n("span"),h(he.$$.fragment),zt=d(),Qe=n("span"),St=l("FlaxControlNetOutput"),uo=d(),C=n("div"),h(_e.$$.fragment),Vt=d(),ge=n("p"),Bt=l("The output of "),ke=n("a"),Rt=l("FlaxControlNetModel"),Wt=l("."),Kt=d(),W=n("div"),h(be.$$.fragment),Xt=d(),Ye=n("p"),Jt=l("\u201CReturns a new object replacing the specified fields with new values."),this.h()},l(o){const f=Bn('[data-svelte="svelte-1phssyn"]',document.head);T=s(f,"META",{name:!0,content:!0}),f.forEach(t),oo=c(o),A=s(o,"H1",{class:!0});var ho=r(A);O=s(ho,"A",{id:!0,class:!0,href:!0});var Zt=r(O);De=s(Zt,"SPAN",{});var Gt=r(De);_(X.$$.fragment,Gt),Gt.forEach(t),Zt.forEach(t),Fo=c(ho),Ee=s(ho,"SPAN",{});var Qt=r(Ee);Po=i(Qt,"ControlNet"),Qt.forEach(t),ho.forEach(t),to=c(o),I=s(o,"P",{});var _o=r(I);qo=i(_o,"The ControlNet model was introduced in "),J=s(_o,"A",{href:!0,rel:!0});var Yt=r(J);Oo=i(Yt,"Adding Conditional Control to Text-to-Image Diffusion Models"),Yt.forEach(t),Io=i(_o," by Lvmin Zhang and Maneesh Agrawala. It provides a greater degree of control over text-to-image generation by conditioning the model on additional inputs such as edge maps, depth maps, segmentation maps, and keypoints for pose detection."),_o.forEach(t),no=c(o),ve=s(o,"P",{});var en=r(ve);Lo=i(en,"The abstract from the paper is:"),en.forEach(t),so=c(o),Ne=s(o,"P",{});var on=r(Ne);Fe=s(on,"EM",{});var tn=r(Fe);jo=i(tn,"We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications."),tn.forEach(t),on.forEach(t),ro=c(o),M=s(o,"H2",{class:!0});var go=r(M);L=s(go,"A",{id:!0,class:!0,href:!0});var nn=r(L);Pe=s(nn,"SPAN",{});var sn=r(Pe);_(H.$$.fragment,sn),sn.forEach(t),nn.forEach(t),Uo=c(go),qe=s(go,"SPAN",{});var rn=r(qe);zo=i(rn,"ControlNetModel"),rn.forEach(t),go.forEach(t),ao=c(o),u=s(o,"DIV",{class:!0});var x=r(u);_(Z.$$.fragment,x),So=c(x),Oe=s(x,"P",{});var an=r(Oe);Vo=i(an,"A ControlNet model."),an.forEach(t),Bo=c(x),j=s(x,"DIV",{class:!0});var bo=r(j);_(G.$$.fragment,bo),Ro=c(bo),Q=s(bo,"P",{});var vo=r(Q);Wo=i(vo,"The "),xe=s(vo,"A",{href:!0});var ln=r(xe);Ko=i(ln,"ControlNetModel"),ln.forEach(t),Xo=i(vo," forward method."),vo.forEach(t),bo.forEach(t),Jo=c(x),U=s(x,"DIV",{class:!0});var No=r(U);_(Y.$$.fragment,No),Ho=c(No),D=s(No,"P",{});var Te=r(D);Zo=i(Te,"Instantiate a "),ye=s(Te,"A",{href:!0});var dn=r(ye);Go=i(dn,"ControlNetModel"),dn.forEach(t),Qo=i(Te," from "),we=s(Te,"A",{href:!0});var cn=r(we);Yo=i(cn,"UNet2DConditionModel"),cn.forEach(t),et=i(Te,"."),Te.forEach(t),No.forEach(t),ot=c(x),$=s(x,"DIV",{class:!0});var Ae=r($);_(ee.$$.fragment,Ae),tt=c(Ae),Ie=s(Ae,"P",{});var fn=r(Ie);nt=i(fn,"Enable sliced attention computation."),fn.forEach(t),st=c(Ae),Le=s(Ae,"P",{});var pn=r(Le);rt=i(pn,`When this option is enabled, the attention module splits the input tensor in slices to compute attention in | |
| several steps. This is useful for saving some memory in exchange for a small decrease in speed.`),pn.forEach(t),Ae.forEach(t),at=c(x),z=s(x,"DIV",{class:!0});var xo=r(z);_(oe.$$.fragment,xo),lt=c(xo),je=s(xo,"P",{});var un=r(je);it=i(un,"Sets the attention processor to use to compute attention."),un.forEach(t),xo.forEach(t),dt=c(x),S=s(x,"DIV",{class:!0});var yo=r(S);_(te.$$.fragment,yo),ct=c(yo),Ue=s(yo,"P",{});var mn=r(Ue);ft=i(mn,"Disables custom attention processors and sets the default attention implementation."),mn.forEach(t),yo.forEach(t),x.forEach(t),lo=c(o),E=s(o,"H2",{class:!0});var wo=r(E);V=s(wo,"A",{id:!0,class:!0,href:!0});var hn=r(V);ze=s(hn,"SPAN",{});var _n=r(ze);_(ne.$$.fragment,_n),_n.forEach(t),hn.forEach(t),pt=c(wo),Se=s(wo,"SPAN",{});var gn=r(Se);ut=i(gn,"ControlNetOutput"),gn.forEach(t),wo.forEach(t),io=c(o),F=s(o,"DIV",{class:!0});var Co=r(F);_(se.$$.fragment,Co),mt=c(Co),re=s(Co,"P",{});var $o=r(re);ht=i($o,"The output of "),Ce=s($o,"A",{href:!0});var bn=r(Ce);_t=i(bn,"ControlNetModel"),bn.forEach(t),gt=i($o,"."),$o.forEach(t),Co.forEach(t),co=c(o),P=s(o,"H2",{class:!0});var ko=r(P);B=s(ko,"A",{id:!0,class:!0,href:!0});var vn=r(B);Ve=s(vn,"SPAN",{});var Nn=r(Ve);_(ae.$$.fragment,Nn),Nn.forEach(t),vn.forEach(t),bt=c(ko),Be=s(ko,"SPAN",{});var xn=r(Be);vt=i(xn,"FlaxControlNetModel"),xn.forEach(t),ko.forEach(t),fo=c(o),m=s(o,"DIV",{class:!0});var y=r(m);_(le.$$.fragment,y),Nt=c(y),Re=s(y,"P",{});var yn=r(Re);xt=i(yn,"A ControlNet model."),yn.forEach(t),yt=c(y),ie=s(y,"P",{});var To=r(ie);wt=i(To,"This model inherits from "),$e=s(To,"A",{href:!0});var wn=r($e);Ct=i(wn,"FlaxModelMixin"),wn.forEach(t),$t=i(To,`. Check the superclass documentation for it\u2019s generic methods | |
| implemented for all models (such as downloading or saving).`),To.forEach(t),kt=c(y),de=s(y,"P",{});var Ao=r(de);Tt=i(Ao,"This model is also a Flax Linen "),ce=s(Ao,"A",{href:!0,rel:!0});var Cn=r(ce);We=s(Cn,"CODE",{});var $n=r(We);At=i($n,"flax.linen.Module"),$n.forEach(t),Cn.forEach(t),Mt=i(Ao,` | |
| subclass. Use it as a regular Flax Linen module and refer to the Flax documentation for all matters related to its | |
| general usage and behavior.`),Ao.forEach(t),Dt=c(y),Ke=s(y,"P",{});var kn=r(Ke);Et=i(kn,"Inherent JAX features such as the following are supported:"),kn.forEach(t),Ft=c(y),w=s(y,"UL",{});var K=r(w);Xe=s(K,"LI",{});var Tn=r(Xe);fe=s(Tn,"A",{href:!0,rel:!0});var An=r(fe);Pt=i(An,"Just-In-Time (JIT) compilation"),An.forEach(t),Tn.forEach(t),qt=c(K),Je=s(K,"LI",{});var Mn=r(Je);pe=s(Mn,"A",{href:!0,rel:!0});var Dn=r(pe);Ot=i(Dn,"Automatic Differentiation"),Dn.forEach(t),Mn.forEach(t),It=c(K),He=s(K,"LI",{});var En=r(He);ue=s(En,"A",{href:!0,rel:!0});var Fn=r(ue);Lt=i(Fn,"Vectorization"),Fn.forEach(t),En.forEach(t),jt=c(K),Ze=s(K,"LI",{});var Pn=r(Ze);me=s(Pn,"A",{href:!0,rel:!0});var qn=r(me);Ut=i(qn,"Parallelization"),qn.forEach(t),Pn.forEach(t),K.forEach(t),y.forEach(t),po=c(o),q=s(o,"H2",{class:!0});var Mo=r(q);R=s(Mo,"A",{id:!0,class:!0,href:!0});var On=r(R);Ge=s(On,"SPAN",{});var In=r(Ge);_(he.$$.fragment,In),In.forEach(t),On.forEach(t),zt=c(Mo),Qe=s(Mo,"SPAN",{});var Ln=r(Qe);St=i(Ln,"FlaxControlNetOutput"),Ln.forEach(t),Mo.forEach(t),uo=c(o),C=s(o,"DIV",{class:!0});var Me=r(C);_(_e.$$.fragment,Me),Vt=c(Me),ge=s(Me,"P",{});var Do=r(ge);Bt=i(Do,"The output of "),ke=s(Do,"A",{href:!0});var jn=r(ke);Rt=i(jn,"FlaxControlNetModel"),jn.forEach(t),Wt=i(Do,"."),Do.forEach(t),Kt=c(Me),W=s(Me,"DIV",{class:!0});var Eo=r(W);_(be.$$.fragment,Eo),Xt=c(Eo),Ye=s(Eo,"P",{});var Un=r(Ye);Jt=i(Un,"\u201CReturns a new object replacing the specified fields with new values."),Un.forEach(t),Eo.forEach(t),Me.forEach(t),this.h()},h(){a(T,"name","hf:doc:metadata"),a(T,"content",JSON.stringify(Xn)),a(O,"id","controlnet"),a(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),a(O,"href","#controlnet"),a(A,"class","relative group"),a(J,"href","https://huggingface.co/papers/2302.05543"),a(J,"rel","nofollow"),a(L,"id","diffusers.ControlNetModel"),a(L,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),a(L,"href","#diffusers.ControlNetModel"),a(M,"class","relative group"),a(xe,"href","/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.ControlNetModel"),a(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(ye,"href","/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.ControlNetModel"),a(we,"href","/docs/diffusers/v0.18.2/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel"),a(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(u,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(V,"id","diffusers.models.controlnet.ControlNetOutput"),a(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),a(V,"href","#diffusers.models.controlnet.ControlNetOutput"),a(E,"class","relative group"),a(Ce,"href","/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.ControlNetModel"),a(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(B,"id","diffusers.FlaxControlNetModel"),a(B,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),a(B,"href","#diffusers.FlaxControlNetModel"),a(P,"class","relative group"),a($e,"href","/docs/diffusers/v0.18.2/en/api/models/overview#diffusers.FlaxModelMixin"),a(ce,"href","https://flax.readthedocs.io/en/latest/flax.linen.html#module"),a(ce,"rel","nofollow"),a(fe,"href","https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit"),a(fe,"rel","nofollow"),a(pe,"href","https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation"),a(pe,"rel","nofollow"),a(ue,"href","https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap"),a(ue,"rel","nofollow"),a(me,"href","https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap"),a(me,"rel","nofollow"),a(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(R,"id","diffusers.models.controlnet_flax.FlaxControlNetOutput"),a(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),a(R,"href","#diffusers.models.controlnet_flax.FlaxControlNetOutput"),a(q,"class","relative group"),a(ke,"href","/docs/diffusers/v0.18.2/en/api/models/controlnet#diffusers.FlaxControlNetModel"),a(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,f){e(document.head,T),p(o,oo,f),p(o,A,f),e(A,O),e(O,De),g(X,De,null),e(A,Fo),e(A,Ee),e(Ee,Po),p(o,to,f),p(o,I,f),e(I,qo),e(I,J),e(J,Oo),e(I,Io),p(o,no,f),p(o,ve,f),e(ve,Lo),p(o,so,f),p(o,Ne,f),e(Ne,Fe),e(Fe,jo),p(o,ro,f),p(o,M,f),e(M,L),e(L,Pe),g(H,Pe,null),e(M,Uo),e(M,qe),e(qe,zo),p(o,ao,f),p(o,u,f),g(Z,u,null),e(u,So),e(u,Oe),e(Oe,Vo),e(u,Bo),e(u,j),g(G,j,null),e(j,Ro),e(j,Q),e(Q,Wo),e(Q,xe),e(xe,Ko),e(Q,Xo),e(u,Jo),e(u,U),g(Y,U,null),e(U,Ho),e(U,D),e(D,Zo),e(D,ye),e(ye,Go),e(D,Qo),e(D,we),e(we,Yo),e(D,et),e(u,ot),e(u,$),g(ee,$,null),e($,tt),e($,Ie),e(Ie,nt),e($,st),e($,Le),e(Le,rt),e(u,at),e(u,z),g(oe,z,null),e(z,lt),e(z,je),e(je,it),e(u,dt),e(u,S),g(te,S,null),e(S,ct),e(S,Ue),e(Ue,ft),p(o,lo,f),p(o,E,f),e(E,V),e(V,ze),g(ne,ze,null),e(E,pt),e(E,Se),e(Se,ut),p(o,io,f),p(o,F,f),g(se,F,null),e(F,mt),e(F,re),e(re,ht),e(re,Ce),e(Ce,_t),e(re,gt),p(o,co,f),p(o,P,f),e(P,B),e(B,Ve),g(ae,Ve,null),e(P,bt),e(P,Be),e(Be,vt),p(o,fo,f),p(o,m,f),g(le,m,null),e(m,Nt),e(m,Re),e(Re,xt),e(m,yt),e(m,ie),e(ie,wt),e(ie,$e),e($e,Ct),e(ie,$t),e(m,kt),e(m,de),e(de,Tt),e(de,ce),e(ce,We),e(We,At),e(de,Mt),e(m,Dt),e(m,Ke),e(Ke,Et),e(m,Ft),e(m,w),e(w,Xe),e(Xe,fe),e(fe,Pt),e(w,qt),e(w,Je),e(Je,pe),e(pe,Ot),e(w,It),e(w,He),e(He,ue),e(ue,Lt),e(w,jt),e(w,Ze),e(Ze,me),e(me,Ut),p(o,po,f),p(o,q,f),e(q,R),e(R,Ge),g(he,Ge,null),e(q,zt),e(q,Qe),e(Qe,St),p(o,uo,f),p(o,C,f),g(_e,C,null),e(C,Vt),e(C,ge),e(ge,Bt),e(ge,ke),e(ke,Rt),e(ge,Wt),e(C,Kt),e(C,W),g(be,W,null),e(W,Xt),e(W,Ye),e(Ye,Jt),mo=!0},p:Rn,i(o){mo||(b(X.$$.fragment,o),b(H.$$.fragment,o),b(Z.$$.fragment,o),b(G.$$.fragment,o),b(Y.$$.fragment,o),b(ee.$$.fragment,o),b(oe.$$.fragment,o),b(te.$$.fragment,o),b(ne.$$.fragment,o),b(se.$$.fragment,o),b(ae.$$.fragment,o),b(le.$$.fragment,o),b(he.$$.fragment,o),b(_e.$$.fragment,o),b(be.$$.fragment,o),mo=!0)},o(o){v(X.$$.fragment,o),v(H.$$.fragment,o),v(Z.$$.fragment,o),v(G.$$.fragment,o),v(Y.$$.fragment,o),v(ee.$$.fragment,o),v(oe.$$.fragment,o),v(te.$$.fragment,o),v(ne.$$.fragment,o),v(se.$$.fragment,o),v(ae.$$.fragment,o),v(le.$$.fragment,o),v(he.$$.fragment,o),v(_e.$$.fragment,o),v(be.$$.fragment,o),mo=!1},d(o){t(T),o&&t(oo),o&&t(A),N(X),o&&t(to),o&&t(I),o&&t(no),o&&t(ve),o&&t(so),o&&t(Ne),o&&t(ro),o&&t(M),N(H),o&&t(ao),o&&t(u),N(Z),N(G),N(Y),N(ee),N(oe),N(te),o&&t(lo),o&&t(E),N(ne),o&&t(io),o&&t(F),N(se),o&&t(co),o&&t(P),N(ae),o&&t(fo),o&&t(m),N(le),o&&t(po),o&&t(q),N(he),o&&t(uo),o&&t(C),N(_e),N(be)}}}const Xn={local:"controlnet",sections:[{local:"diffusers.ControlNetModel",title:"ControlNetModel"},{local:"diffusers.models.controlnet.ControlNetOutput",title:"ControlNetOutput"},{local:"diffusers.FlaxControlNetModel",title:"FlaxControlNetModel"},{local:"diffusers.models.controlnet_flax.FlaxControlNetOutput",title:"FlaxControlNetOutput"}],title:"ControlNet"};function Jn(Ht){return Wn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Qn extends zn{constructor(T){super();Sn(this,T,Jn,Kn,Vn,{})}}export{Qn as default,Xn as metadata}; | |
Xet Storage Details
- Size:
- 43 kB
- Xet hash:
- c0c5223f34f36d9bbf8630830458e16ca37715f14e86bf692904fa4e1a144d7f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.