Buckets:

rtrm's picture
download
raw
43.2 kB
import{s as $o,n as To,o as Do}from"../chunks/scheduler.182ea377.js";import{S as Fo,i as jo,g as n,s as r,p,A as Ao,h as s,f as o,c as l,j as c,q as h,m,k as a,v as t,a as d,r as _,d as g,t as b,u as v}from"../chunks/index.008d68e4.js";import{D as y}from"../chunks/Docstring.7aec8b85.js";import{C as Uo}from"../chunks/CodeBlock.5ed6eb7b.js";import{I as qe}from"../chunks/IconCopyLink.96bbb92b.js";function qo(Bt){let M,Je,k,U,Oe,S,ht,me,Ht="ControlNet",Be,Z,St='The ControlNet model was introduced in <a href="https://huggingface.co/papers/2302.05543" rel="nofollow">Adding Conditional Control to Text-to-Image Diffusion Models</a> by Lvmin Zhang, Anyi Rao, 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.',He,G,Zt="The abstract from the paper is:",Se,V,Gt="<em>We present ControlNet, a neural network architecture to add spatial conditioning controls to large, pretrained text-to-image diffusion models. ControlNet locks the production-ready large diffusion models, and reuses their deep and robust encoding layers pretrained with billions of images as a strong backbone to learn a diverse set of conditional controls. The neural architecture is connected with “zero convolutions” (zero-initialized convolution layers) that progressively grow the parameters from zero and ensure that no harmful noise could affect the finetuning. We test various conditioning controls, eg, edges, depth, segmentation, human pose, etc, with Stable Diffusion, using single or multiple conditions, with or without prompts. We show that the training of ControlNets is robust with small (&lt;50k) and large (&gt;1m) datasets. Extensive results show that ControlNet may facilitate wider applications to control image diffusion models.</em>",Ze,$,q,Ee,W,_t,fe,Vt="Loading from the original format",Ge,R,Wt=`By default the <a href="/docs/diffusers/v0.25.0/ko/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a> should be loaded with <a href="/docs/diffusers/v0.25.0/ko/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a>, but it can also be loaded
from the original format using <code>FromOriginalControlnetMixin.from_single_file</code> as follows:`,Ve,Y,We,T,O,Le,X,gt,ue,Rt="ControlNetModel",Re,f,Q,bt,pe,Yt="A ControlNet model.",vt,E,K,xt,he,Xt='The <a href="/docs/diffusers/v0.25.0/ko/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a> forward method.',Ct,L,ee,wt,_e,Qt='Instantiate a <a href="/docs/diffusers/v0.25.0/ko/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a> from <a href="/docs/diffusers/v0.25.0/ko/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>.',Nt,N,te,yt,ge,Kt="Enable sliced attention computation.",Mt,be,eo=`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.`,kt,z,oe,$t,ve,to="Sets the attention processor to use to compute attention.",Tt,I,ne,Dt,xe,oo="Disables custom attention processors and sets the default attention implementation.",Ye,D,P,ze,se,Ft,Ce,no="ControlNetOutput",Xe,F,re,jt,we,so='The output of <a href="/docs/diffusers/v0.25.0/ko/api/models/controlnet#diffusers.ControlNetModel">ControlNetModel</a>.',Qe,j,J,Ie,le,At,Ne,ro="FlaxControlNetModel",Ke,u,ae,Ut,ye,lo="A ControlNet model.",qt,Me,ao=`This model inherits from <a href="/docs/diffusers/v0.25.0/ko/api/models/overview#diffusers.FlaxModelMixin">FlaxModelMixin</a>. Check the superclass documentation for it’s generic methods
implemented for all models (such as downloading or saving).`,Ot,ke,io=`This model is also a Flax Linen <a href="https://flax.readthedocs.io/en/latest/flax.linen.html#module" rel="nofollow"><code>flax.linen.Module</code></a>
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.`,Et,$e,co="Inherent JAX features such as the following are supported:",Lt,Te,mo='<li><a href="https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit" rel="nofollow">Just-In-Time (JIT) compilation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation" rel="nofollow">Automatic Differentiation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap" rel="nofollow">Vectorization</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap" rel="nofollow">Parallelization</a></li>',et,A,B,Pe,ie,zt,De,fo="FlaxControlNetOutput",tt,w,de,It,Fe,uo='The output of <a href="/docs/diffusers/v0.25.0/ko/api/models/controlnet#diffusers.FlaxControlNetModel">FlaxControlNetModel</a>.',Pt,H,ce,Jt,je,po="“Returns a new object replacing the specified fields with new values.",ot;return S=new qe({}),W=new qe({}),Y=new Uo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbkNvbnRyb2xOZXRQaXBlbGluZSUyQyUyMENvbnRyb2xOZXRNb2RlbCUwQSUwQXVybCUyMCUzRCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZsbGx5YXN2aWVsJTJGQ29udHJvbE5ldC12MS0xJTJGYmxvYiUyRm1haW4lMkZjb250cm9sX3YxMXBfc2QxNV9jYW5ueS5wdGglMjIlMjAlMjAlMjMlMjBjYW4lMjBhbHNvJTIwYmUlMjBhJTIwbG9jYWwlMjBwYXRoJTBBY29udHJvbG5ldCUyMCUzRCUyMENvbnRyb2xOZXRNb2RlbC5mcm9tX3NpbmdsZV9maWxlKHVybCklMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZibG9iJTJGbWFpbiUyRnYxLTUtcHJ1bmVkLnNhZmV0ZW5zb3JzJTIyJTIwJTIwJTIzJTIwY2FuJTIwYWxzbyUyMGJlJTIwYSUyMGxvY2FsJTIwcGF0aCUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25Db250cm9sTmV0UGlwZWxpbmUuZnJvbV9zaW5nbGVfZmlsZSh1cmwlMkMlMjBjb250cm9sbmV0JTNEY29udHJvbG5ldCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionControlNetPipeline, ControlNetModel
url = <span class="hljs-string">&quot;https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_canny.pth&quot;</span> <span class="hljs-comment"># can also be a local path</span>
controlnet = ControlNetModel.from_single_file(url)
url = <span class="hljs-string">&quot;https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned.safetensors&quot;</span> <span class="hljs-comment"># can also be a local path</span>
pipe = StableDiffusionControlNetPipeline.from_single_file(url, controlnet=controlnet)`}}),X=new qe({}),Q=new y({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:": Tuple = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"mid_block_type",val:": Optional = 'UNetMidBlock2DCrossAttn'"},{name:"only_cross_attention",val:": Union = False"},{name:"block_out_channels",val:": Tuple = (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:": Optional = 32"},{name:"norm_eps",val:": float = 1e-05"},{name:"cross_attention_dim",val:": int = 1280"},{name:"transformer_layers_per_block",val:": Union = 1"},{name:"encoder_hid_dim",val:": Optional = None"},{name:"encoder_hid_dim_type",val:": Optional = None"},{name:"attention_head_dim",val:": Union = 8"},{name:"num_attention_heads",val:": Union = None"},{name:"use_linear_projection",val:": bool = False"},{name:"class_embed_type",val:": Optional = None"},{name:"addition_embed_type",val:": Optional = None"},{name:"addition_time_embed_dim",val:": Optional = None"},{name:"num_class_embeds",val:": Optional = None"},{name:"upcast_attention",val:": bool = False"},{name:"resnet_time_scale_shift",val:": str = 'default'"},{name:"projection_class_embeddings_input_dim",val:": Optional = None"},{name:"controlnet_conditioning_channel_order",val:": str = 'rgb'"},{name:"conditioning_embedding_out_channels",val:": Optional = (16, 32, 96, 256)"},{name:"global_pool_conditions",val:": bool = False"},{name:"addition_embed_type_num_heads",val:": int = 64"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, defaults to 4) &#x2014;
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>) &#x2014;
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) &#x2014;
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>(&quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;CrossAttnDownBlock2D&quot;, &quot;DownBlock2D&quot;)</code>) &#x2014;
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>) &#x2014;",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>) &#x2014;
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) &#x2014;
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) &#x2014;
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) &#x2014;
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 &#x201C;silu&#x201D;) &#x2014;
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) &#x2014;
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) &#x2014;
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) &#x2014;
The dimension of the cross attention features.`,name:"cross_attention_dim"},{anchor:"diffusers.ControlNetModel.transformer_layers_per_block",description:`<strong>transformer_layers_per_block</strong> (<code>int</code> or <code>Tuple[int]</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of transformer blocks of type <code>BasicTransformerBlock</code>. Only relevant for
<code>CrossAttnDownBlock2D</code>, <code>CrossAttnUpBlock2D</code>,
<code>UNetMidBlock2DCrossAttn</code>.`,name:"transformer_layers_per_block"},{anchor:"diffusers.ControlNetModel.encoder_hid_dim",description:`<strong>encoder_hid_dim</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
If <code>encoder_hid_dim_type</code> is defined, <code>encoder_hidden_states</code> will be projected from <code>encoder_hid_dim</code>
dimension to <code>cross_attention_dim</code>.`,name:"encoder_hid_dim"},{anchor:"diffusers.ControlNetModel.encoder_hid_dim_type",description:`<strong>encoder_hid_dim_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If given, the <code>encoder_hidden_states</code> and potentially other embeddings are down-projected to text
embeddings of dimension <code>cross_attention</code> according to <code>encoder_hid_dim_type</code>.`,name:"encoder_hid_dim_type"},{anchor:"diffusers.ControlNetModel.attention_head_dim",description:`<strong>attention_head_dim</strong> (<code>Union[int, Tuple[int]]</code>, defaults to 8) &#x2014;
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>) &#x2014;",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>) &#x2014;
The type of class embedding to use which is ultimately summed with the time embeddings. Choose from None,
<code>&quot;timestep&quot;</code>, <code>&quot;identity&quot;</code>, <code>&quot;projection&quot;</code>, or <code>&quot;simple_projection&quot;</code>.`,name:"class_embed_type"},{anchor:"diffusers.ControlNetModel.addition_embed_type",description:`<strong>addition_embed_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Configures an optional embedding which will be summed with the time embeddings. Choose from <code>None</code> or
&#x201C;text&#x201D;. &#x201C;text&#x201D; will use the <code>TextTimeEmbedding</code> layer.`,name:"addition_embed_type"},{anchor:"diffusers.ControlNetModel.num_class_embeds",description:`<strong>num_class_embeds</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
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>) &#x2014;",name:"upcast_attention"},{anchor:"diffusers.ControlNetModel.resnet_time_scale_shift",description:`<strong>resnet_time_scale_shift</strong> (<code>str</code>, defaults to <code>&quot;default&quot;</code>) &#x2014;
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>) &#x2014;
The dimension of the <code>class_labels</code> input when <code>class_embed_type=&quot;projection&quot;</code>. Required when
<code>class_embed_type=&quot;projection&quot;</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>&quot;rgb&quot;</code>) &#x2014;
The channel order of conditional image. Will convert to <code>rgb</code> if it&#x2019;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>) &#x2014;
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>) &#x2014;
TODO(Patrick) - unused parameter.`,name:"global_pool_conditions"},{anchor:"diffusers.ControlNetModel.addition_embed_type_num_heads",description:`<strong>addition_embed_type_num_heads</strong> (<code>int</code>, defaults to 64) &#x2014;
The number of heads to use for the <code>TextTimeEmbedding</code> layer.`,name:"addition_embed_type_num_heads"}],source:"https://github.com/huggingface/diffusers/blob/v0.25.0/src/diffusers/models/controlnet.py#L105"}}),K=new y({props:{name:"forward",anchor:"diffusers.ControlNetModel.forward",parameters:[{name:"sample",val:": FloatTensor"},{name:"timestep",val:": Union"},{name:"encoder_hidden_states",val:": Tensor"},{name:"controlnet_cond",val:": FloatTensor"},{name:"conditioning_scale",val:": float = 1.0"},{name:"class_labels",val:": Optional = None"},{name:"timestep_cond",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"added_cond_kwargs",val:": Optional = None"},{name:"cross_attention_kwargs",val:": Optional = 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>) &#x2014;
The noisy input tensor.`,name:"sample"},{anchor:"diffusers.ControlNetModel.forward.timestep",description:`<strong>timestep</strong> (<code>Union[torch.Tensor, float, int]</code>) &#x2014;
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>) &#x2014;
The encoder hidden states.`,name:"encoder_hidden_states"},{anchor:"diffusers.ControlNetModel.forward.controlnet_cond",description:`<strong>controlnet_cond</strong> (<code>torch.FloatTensor</code>) &#x2014;
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>) &#x2014;
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>) &#x2014;
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>) &#x2014;
Additional conditional embeddings for timestep. If provided, the embeddings will be summed with the
timestep_embedding passed through the <code>self.time_embedding</code> layer to obtain the final timestep
embeddings.`,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>) &#x2014;
An attention mask of shape <code>(batch, key_tokens)</code> is applied to <code>encoder_hidden_states</code>. If <code>1</code> the mask
is kept, otherwise if <code>0</code> it is discarded. Mask will be converted into a bias, which adds large
negative values to the attention scores corresponding to &#x201C;discard&#x201D; tokens.`,name:"attention_mask"},{anchor:"diffusers.ControlNetModel.forward.added_cond_kwargs",description:`<strong>added_cond_kwargs</strong> (<code>dict</code>) &#x2014;
Additional conditions for the Stable Diffusion XL UNet.`,name:"added_cond_kwargs"},{anchor:"diffusers.ControlNetModel.forward.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict[str]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttnProcessor</code>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.ControlNetModel.forward.guess_mode",description:`<strong>guess_mode</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
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>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.25.0/ko/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.25.0/src/diffusers/models/controlnet.py#L659",returnDescription:`
<p>If <code>return_dict</code> is <code>True</code>, a <a
href="/docs/diffusers/v0.25.0/ko/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.25.0/ko/api/models/controlnet#diffusers.models.controlnet.ControlNetOutput"
>ControlNetOutput</a> <strong>or</strong> <code>tuple</code></p>
`}}),ee=new y({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:": Optional = (16, 32, 96, 256)"},{name:"load_weights_from_unet",val:": bool = True"},{name:"conditioning_channels",val:": int = 3"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.from_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model weights to copy to the <a href="/docs/diffusers/v0.25.0/ko/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.25.0/src/diffusers/models/controlnet.py#L438"}}),te=new y({props:{name:"set_attention_slice",anchor:"diffusers.ControlNetModel.set_attention_slice",parameters:[{name:"slice_size",val:": Union"}],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>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, input to the attention heads is halved, so attention is computed in two steps. If
<code>&quot;max&quot;</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.25.0/src/diffusers/models/controlnet.py#L590"}}),oe=new y({props:{name:"set_attn_processor",anchor:"diffusers.ControlNetModel.set_attn_processor",parameters:[{name:"processor",val:": Union"},{name:"_remove_lora",val:" = False"}],parametersDescription:[{anchor:"diffusers.ControlNetModel.set_attn_processor.processor",description:`<strong>processor</strong> (<code>dict</code> of <code>AttentionProcessor</code> or only <code>AttentionProcessor</code>) &#x2014;
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.25.0/src/diffusers/models/controlnet.py#L537"}}),ne=new y({props:{name:"set_default_attn_processor",anchor:"diffusers.ControlNetModel.set_default_attn_processor",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.25.0/src/diffusers/models/controlnet.py#L574"}}),se=new qe({}),re=new y({props:{name:"class diffusers.models.controlnet.ControlNetOutput",anchor:"diffusers.models.controlnet.ControlNetOutput",parameters:[{name:"down_block_res_samples",val:": Tuple"},{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>) &#x2014;
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&#x2019;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>) &#x2014;
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&#x2019;s middle block activation.`,name:"mid_down_block_re_sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.25.0/src/diffusers/models/controlnet.py#L40"}}),le=new qe({}),ae=new y({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:": Tuple = ('CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D')"},{name:"only_cross_attention",val:": Union = False"},{name:"block_out_channels",val:": Tuple = (320, 640, 1280, 1280)"},{name:"layers_per_block",val:": int = 2"},{name:"attention_head_dim",val:": Union = 8"},{name:"num_attention_heads",val:": Union = 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:": Tuple = (16, 32, 96, 256)"},{name:"parent",val:": Union = <flax.linen.module._Sentinel object at 0x7fba33533dc0>"},{name:"name",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.FlaxControlNetModel.sample_size",description:`<strong>sample_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
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) &#x2014;
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>(&quot;FlaxCrossAttnDownBlock2D&quot;, &quot;FlaxCrossAttnDownBlock2D&quot;, &quot;FlaxCrossAttnDownBlock2D&quot;, &quot;FlaxDownBlock2D&quot;)</code>) &#x2014;
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>) &#x2014;
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) &#x2014;
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) &#x2014;
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>) &#x2014;
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) &#x2014;
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) &#x2014;
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>) &#x2014;
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) &#x2014; 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>) &#x2014;
The channel order of conditional image. Will convert to <code>rgb</code> if it&#x2019;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>) &#x2014;
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.25.0/src/diffusers/models/controlnet_flax.py#L103"}}),ie=new qe({}),de=new y({props:{name:"class diffusers.models.controlnet_flax.FlaxControlNetOutput",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput",parameters:[{name:"down_block_res_samples",val:": Array"},{name:"mid_block_res_sample",val:": Array"}],parametersDescription:[{anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.down_block_res_samples",description:"<strong>down_block_res_samples</strong> (<code>jnp.ndarray</code>) &#x2014;",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>) &#x2014;",name:"mid_block_res_sample"}],source:"https://github.com/huggingface/diffusers/blob/v0.25.0/src/diffusers/models/controlnet_flax.py#L33"}}),ce=new y({props:{name:"replace",anchor:"diffusers.models.controlnet_flax.FlaxControlNetOutput.replace",parameters:[{name:"**updates",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.25.0/src/flax/struct.py#L110"}}),{c(){M=n("meta"),Je=r(),k=n("h1"),U=n("a"),Oe=n("span"),p(S.$$.fragment),ht=r(),me=n("span"),me.textContent=Ht,Be=r(),Z=n("p"),Z.innerHTML=St,He=r(),G=n("p"),G.textContent=Zt,Se=r(),V=n("p"),V.innerHTML=Gt,Ze=r(),$=n("h2"),q=n("a"),Ee=n("span"),p(W.$$.fragment),_t=r(),fe=n("span"),fe.textContent=Vt,Ge=r(),R=n("p"),R.innerHTML=Wt,Ve=r(),p(Y.$$.fragment),We=r(),T=n("h2"),O=n("a"),Le=n("span"),p(X.$$.fragment),gt=r(),ue=n("span"),ue.textContent=Rt,Re=r(),f=n("div"),p(Q.$$.fragment),bt=r(),pe=n("p"),pe.textContent=Yt,vt=r(),E=n("div"),p(K.$$.fragment),xt=r(),he=n("p"),he.innerHTML=Xt,Ct=r(),L=n("div"),p(ee.$$.fragment),wt=r(),_e=n("p"),_e.innerHTML=Qt,Nt=r(),N=n("div"),p(te.$$.fragment),yt=r(),ge=n("p"),ge.textContent=Kt,Mt=r(),be=n("p"),be.textContent=eo,kt=r(),z=n("div"),p(oe.$$.fragment),$t=r(),ve=n("p"),ve.textContent=to,Tt=r(),I=n("div"),p(ne.$$.fragment),Dt=r(),xe=n("p"),xe.textContent=oo,Ye=r(),D=n("h2"),P=n("a"),ze=n("span"),p(se.$$.fragment),Ft=r(),Ce=n("span"),Ce.textContent=no,Xe=r(),F=n("div"),p(re.$$.fragment),jt=r(),we=n("p"),we.innerHTML=so,Qe=r(),j=n("h2"),J=n("a"),Ie=n("span"),p(le.$$.fragment),At=r(),Ne=n("span"),Ne.textContent=ro,Ke=r(),u=n("div"),p(ae.$$.fragment),Ut=r(),ye=n("p"),ye.textContent=lo,qt=r(),Me=n("p"),Me.innerHTML=ao,Ot=r(),ke=n("p"),ke.innerHTML=io,Et=r(),$e=n("p"),$e.textContent=co,Lt=r(),Te=n("ul"),Te.innerHTML=mo,et=r(),A=n("h2"),B=n("a"),Pe=n("span"),p(ie.$$.fragment),zt=r(),De=n("span"),De.textContent=fo,tt=r(),w=n("div"),p(de.$$.fragment),It=r(),Fe=n("p"),Fe.innerHTML=uo,Pt=r(),H=n("div"),p(ce.$$.fragment),Jt=r(),je=n("p"),je.textContent=po,this.h()},l(e){const i=Ao("svelte-1phssyn",document.head);M=s(i,"META",{name:!0,content:!0}),i.forEach(o),Je=l(e),k=s(e,"H1",{class:!0});var nt=c(k);U=s(nt,"A",{id:!0,class:!0,href:!0});var ho=c(U);Oe=s(ho,"SPAN",{});var _o=c(Oe);h(S.$$.fragment,_o),_o.forEach(o),ho.forEach(o),ht=l(nt),me=s(nt,"SPAN",{"data-svelte-h":!0}),m(me)!=="svelte-1147sj1"&&(me.textContent=Ht),nt.forEach(o),Be=l(e),Z=s(e,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-1s65p96"&&(Z.innerHTML=St),He=l(e),G=s(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-1cwsb16"&&(G.textContent=Zt),Se=l(e),V=s(e,"P",{"data-svelte-h":!0}),m(V)!=="svelte-fbiw6t"&&(V.innerHTML=Gt),Ze=l(e),$=s(e,"H2",{class:!0});var st=c($);q=s(st,"A",{id:!0,class:!0,href:!0});var go=c(q);Ee=s(go,"SPAN",{});var bo=c(Ee);h(W.$$.fragment,bo),bo.forEach(o),go.forEach(o),_t=l(st),fe=s(st,"SPAN",{"data-svelte-h":!0}),m(fe)!=="svelte-sc26um"&&(fe.textContent=Vt),st.forEach(o),Ge=l(e),R=s(e,"P",{"data-svelte-h":!0}),m(R)!=="svelte-dnh8ef"&&(R.innerHTML=Wt),Ve=l(e),h(Y.$$.fragment,e),We=l(e),T=s(e,"H2",{class:!0});var rt=c(T);O=s(rt,"A",{id:!0,class:!0,href:!0});var vo=c(O);Le=s(vo,"SPAN",{});var xo=c(Le);h(X.$$.fragment,xo),xo.forEach(o),vo.forEach(o),gt=l(rt),ue=s(rt,"SPAN",{"data-svelte-h":!0}),m(ue)!=="svelte-16cjs6m"&&(ue.textContent=Rt),rt.forEach(o),Re=l(e),f=s(e,"DIV",{class:!0});var x=c(f);h(Q.$$.fragment,x),bt=l(x),pe=s(x,"P",{"data-svelte-h":!0}),m(pe)!=="svelte-1cnm7fm"&&(pe.textContent=Yt),vt=l(x),E=s(x,"DIV",{class:!0});var lt=c(E);h(K.$$.fragment,lt),xt=l(lt),he=s(lt,"P",{"data-svelte-h":!0}),m(he)!=="svelte-bwfvau"&&(he.innerHTML=Xt),lt.forEach(o),Ct=l(x),L=s(x,"DIV",{class:!0});var at=c(L);h(ee.$$.fragment,at),wt=l(at),_e=s(at,"P",{"data-svelte-h":!0}),m(_e)!=="svelte-1l57bys"&&(_e.innerHTML=Qt),at.forEach(o),Nt=l(x),N=s(x,"DIV",{class:!0});var Ae=c(N);h(te.$$.fragment,Ae),yt=l(Ae),ge=s(Ae,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-7fahc0"&&(ge.textContent=Kt),Mt=l(Ae),be=s(Ae,"P",{"data-svelte-h":!0}),m(be)!=="svelte-1yjwkav"&&(be.textContent=eo),Ae.forEach(o),kt=l(x),z=s(x,"DIV",{class:!0});var it=c(z);h(oe.$$.fragment,it),$t=l(it),ve=s(it,"P",{"data-svelte-h":!0}),m(ve)!=="svelte-1o77hl2"&&(ve.textContent=to),it.forEach(o),Tt=l(x),I=s(x,"DIV",{class:!0});var dt=c(I);h(ne.$$.fragment,dt),Dt=l(dt),xe=s(dt,"P",{"data-svelte-h":!0}),m(xe)!=="svelte-1lxcwhv"&&(xe.textContent=oo),dt.forEach(o),x.forEach(o),Ye=l(e),D=s(e,"H2",{class:!0});var ct=c(D);P=s(ct,"A",{id:!0,class:!0,href:!0});var Co=c(P);ze=s(Co,"SPAN",{});var wo=c(ze);h(se.$$.fragment,wo),wo.forEach(o),Co.forEach(o),Ft=l(ct),Ce=s(ct,"SPAN",{"data-svelte-h":!0}),m(Ce)!=="svelte-dhuia6"&&(Ce.textContent=no),ct.forEach(o),Xe=l(e),F=s(e,"DIV",{class:!0});var mt=c(F);h(re.$$.fragment,mt),jt=l(mt),we=s(mt,"P",{"data-svelte-h":!0}),m(we)!=="svelte-1oz5s6y"&&(we.innerHTML=so),mt.forEach(o),Qe=l(e),j=s(e,"H2",{class:!0});var ft=c(j);J=s(ft,"A",{id:!0,class:!0,href:!0});var No=c(J);Ie=s(No,"SPAN",{});var yo=c(Ie);h(le.$$.fragment,yo),yo.forEach(o),No.forEach(o),At=l(ft),Ne=s(ft,"SPAN",{"data-svelte-h":!0}),m(Ne)!=="svelte-1r95u67"&&(Ne.textContent=ro),ft.forEach(o),Ke=l(e),u=s(e,"DIV",{class:!0});var C=c(u);h(ae.$$.fragment,C),Ut=l(C),ye=s(C,"P",{"data-svelte-h":!0}),m(ye)!=="svelte-1cnm7fm"&&(ye.textContent=lo),qt=l(C),Me=s(C,"P",{"data-svelte-h":!0}),m(Me)!=="svelte-1o7ay3"&&(Me.innerHTML=ao),Ot=l(C),ke=s(C,"P",{"data-svelte-h":!0}),m(ke)!=="svelte-3yoxzz"&&(ke.innerHTML=io),Et=l(C),$e=s(C,"P",{"data-svelte-h":!0}),m($e)!=="svelte-ngiliw"&&($e.textContent=co),Lt=l(C),Te=s(C,"UL",{"data-svelte-h":!0}),m(Te)!=="svelte-1w7z84m"&&(Te.innerHTML=mo),C.forEach(o),et=l(e),A=s(e,"H2",{class:!0});var ut=c(A);B=s(ut,"A",{id:!0,class:!0,href:!0});var Mo=c(B);Pe=s(Mo,"SPAN",{});var ko=c(Pe);h(ie.$$.fragment,ko),ko.forEach(o),Mo.forEach(o),zt=l(ut),De=s(ut,"SPAN",{"data-svelte-h":!0}),m(De)!=="svelte-r7q6zj"&&(De.textContent=fo),ut.forEach(o),tt=l(e),w=s(e,"DIV",{class:!0});var Ue=c(w);h(de.$$.fragment,Ue),It=l(Ue),Fe=s(Ue,"P",{"data-svelte-h":!0}),m(Fe)!=="svelte-ap4gyy"&&(Fe.innerHTML=uo),Pt=l(Ue),H=s(Ue,"DIV",{class:!0});var pt=c(H);h(ce.$$.fragment,pt),Jt=l(pt),je=s(pt,"P",{"data-svelte-h":!0}),m(je)!=="svelte-5ihtpa"&&(je.textContent=po),pt.forEach(o),Ue.forEach(o),this.h()},h(){a(M,"name","hf:doc:metadata"),a(M,"content",JSON.stringify(Oo)),a(U,"id","controlnet"),a(U,"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(U,"href","#controlnet"),a(k,"class","relative group"),a(q,"id","loading-from-the-original-format"),a(q,"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(q,"href","#loading-from-the-original-format"),a($,"class","relative group"),a(O,"id","diffusers.ControlNetModel"),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","#diffusers.ControlNetModel"),a(T,"class","relative group"),a(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),a(N,"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(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(P,"id","diffusers.models.controlnet.ControlNetOutput"),a(P,"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(P,"href","#diffusers.models.controlnet.ControlNetOutput"),a(D,"class","relative group"),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(J,"id","diffusers.FlaxControlNetModel"),a(J,"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(J,"href","#diffusers.FlaxControlNetModel"),a(j,"class","relative group"),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(B,"id","diffusers.models.controlnet_flax.FlaxControlNetOutput"),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.models.controlnet_flax.FlaxControlNetOutput"),a(A,"class","relative group"),a(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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")},m(e,i){t(document.head,M),d(e,Je,i),d(e,k,i),t(k,U),t(U,Oe),_(S,Oe,null),t(k,ht),t(k,me),d(e,Be,i),d(e,Z,i),d(e,He,i),d(e,G,i),d(e,Se,i),d(e,V,i),d(e,Ze,i),d(e,$,i),t($,q),t(q,Ee),_(W,Ee,null),t($,_t),t($,fe),d(e,Ge,i),d(e,R,i),d(e,Ve,i),_(Y,e,i),d(e,We,i),d(e,T,i),t(T,O),t(O,Le),_(X,Le,null),t(T,gt),t(T,ue),d(e,Re,i),d(e,f,i),_(Q,f,null),t(f,bt),t(f,pe),t(f,vt),t(f,E),_(K,E,null),t(E,xt),t(E,he),t(f,Ct),t(f,L),_(ee,L,null),t(L,wt),t(L,_e),t(f,Nt),t(f,N),_(te,N,null),t(N,yt),t(N,ge),t(N,Mt),t(N,be),t(f,kt),t(f,z),_(oe,z,null),t(z,$t),t(z,ve),t(f,Tt),t(f,I),_(ne,I,null),t(I,Dt),t(I,xe),d(e,Ye,i),d(e,D,i),t(D,P),t(P,ze),_(se,ze,null),t(D,Ft),t(D,Ce),d(e,Xe,i),d(e,F,i),_(re,F,null),t(F,jt),t(F,we),d(e,Qe,i),d(e,j,i),t(j,J),t(J,Ie),_(le,Ie,null),t(j,At),t(j,Ne),d(e,Ke,i),d(e,u,i),_(ae,u,null),t(u,Ut),t(u,ye),t(u,qt),t(u,Me),t(u,Ot),t(u,ke),t(u,Et),t(u,$e),t(u,Lt),t(u,Te),d(e,et,i),d(e,A,i),t(A,B),t(B,Pe),_(ie,Pe,null),t(A,zt),t(A,De),d(e,tt,i),d(e,w,i),_(de,w,null),t(w,It),t(w,Fe),t(w,Pt),t(w,H),_(ce,H,null),t(H,Jt),t(H,je),ot=!0},p:To,i(e){ot||(g(S.$$.fragment,e),g(W.$$.fragment,e),g(Y.$$.fragment,e),g(X.$$.fragment,e),g(Q.$$.fragment,e),g(K.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(re.$$.fragment,e),g(le.$$.fragment,e),g(ae.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),ot=!0)},o(e){b(S.$$.fragment,e),b(W.$$.fragment,e),b(Y.$$.fragment,e),b(X.$$.fragment,e),b(Q.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(oe.$$.fragment,e),b(ne.$$.fragment,e),b(se.$$.fragment,e),b(re.$$.fragment,e),b(le.$$.fragment,e),b(ae.$$.fragment,e),b(ie.$$.fragment,e),b(de.$$.fragment,e),b(ce.$$.fragment,e),ot=!1},d(e){e&&(o(Je),o(k),o(Be),o(Z),o(He),o(G),o(Se),o(V),o(Ze),o($),o(Ge),o(R),o(Ve),o(We),o(T),o(Re),o(f),o(Ye),o(D),o(Xe),o(F),o(Qe),o(j),o(Ke),o(u),o(et),o(A),o(tt),o(w)),o(M),v(S),v(W),v(Y,e),v(X),v(Q),v(K),v(ee),v(te),v(oe),v(ne),v(se),v(re),v(le),v(ae),v(ie),v(de),v(ce)}}}const Oo={local:"controlnet",sections:[{local:"loading-from-the-original-format",title:"Loading from the original format"},{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 Eo(Bt){return Do(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bo extends Fo{constructor(M){super(),jo(this,M,Eo,qo,$o,{})}}export{Bo as component};

Xet Storage Details

Size:
43.2 kB
·
Xet hash:
11ee5ea1b5c78041f367e3a50983c1b7754508b2082a51513c478e1a3f99e9aa

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.