import{s as Oe,o as Ke,n as We}from"../chunks/scheduler.8c3d61f6.js";import{S as Qe,i as Be,g as a,s,r as u,A as Ye,h as l,f as o,c as r,j as y,u as p,x as P,k as C,y as d,a as n,v as _,d as g,t as h,w as A}from"../chunks/index.da70eac4.js";import{T as qe}from"../chunks/Tip.1d9b8c37.js";import{D as Q}from"../chunks/Docstring.6b390b9a.js";import{C as et}from"../chunks/CodeBlock.00a903b3.js";import{H as ye,E as tt}from"../chunks/EditOnGithub.1e64e623.js";function ot(B){let i,$="This API is 🧪 experimental.";return{c(){i=a("p"),i.textContent=$},l(c){i=l(c,"P",{"data-svelte-h":!0}),P(i)!=="svelte-89q1io"&&(i.textContent=$)},m(c,w){n(c,i,w)},p:We,d(c){c&&o(i)}}}function st(B){let i,$="This API is 🧪 experimental.";return{c(){i=a("p"),i.textContent=$},l(c){i=l(c,"P",{"data-svelte-h":!0}),P(i)!=="svelte-89q1io"&&(i.textContent=$)},m(c,w){n(c,i,w)},p:We,d(c){c&&o(i)}}}function rt(B){let i,$,c,w,F,de,T,Ve="SD3ControlNetModel is an implementation of ControlNet for Stable Diffusion 3.",ae,L,Ie='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.',le,k,je="The abstract from the paper is:",ce,G,Re="<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>",fe,V,me,I,Xe='By default the <a href="/docs/diffusers/main/en/api/models/controlnet_sd3#diffusers.SD3ControlNetModel">SD3ControlNetModel</a> should be loaded with <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a>.',ue,j,pe,R,_e,f,X,Ce,M,U,we,Y,Ue=`Sets the attention processor to use <a href="https://huggingface.co/blog/reformer#2-chunked-feed-forward-layers" rel="nofollow">feed forward
chunking</a>.`,Me,S,Z,Se,ee,Ze='The <a href="/docs/diffusers/main/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a> forward method.',De,b,z,xe,te,ze=`Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value)
are fused. For cross-attention modules, key and value projection matrices are fused.`,Ne,D,Fe,x,E,Te,oe,Ee="Sets the attention processor to use to compute attention.",Le,v,H,ke,se,He="Disables the fused QKV projection if enabled.",Ge,N,ge,J,he,q,W,Ae,O,Pe,ie,$e;return F=new ye({props:{title:"SD3ControlNetModel",local:"sd3controlnetmodel",headingTag:"h1"}}),V=new ye({props:{title:"Loading from the original format",local:"loading-from-the-original-format",headingTag:"h2"}}),j=new et({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbjNDb250cm9sTmV0UGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLm1vZGVscyUyMGltcG9ydCUyMFNEM0NvbnRyb2xOZXRNb2RlbCUyQyUyMFNEM011bHRpQ29udHJvbE5ldE1vZGVsJTBBJTBBY29udHJvbG5ldCUyMCUzRCUyMFNEM0NvbnRyb2xOZXRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIySW5zdGFudFglMkZTRDMtQ29udHJvbG5ldC1DYW5ueSUyMiklMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uM0NvbnRyb2xOZXRQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTMtbWVkaXVtLWRpZmZ1c2VycyUyMiUyQyUyMGNvbnRyb2xuZXQlM0Rjb250cm9sbmV0KQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusion3ControlNetPipeline
<span class="hljs-keyword">from</span> diffusers.models <span class="hljs-keyword">import</span> SD3ControlNetModel, SD3MultiControlNetModel

controlnet = SD3ControlNetModel.from_pretrained(<span class="hljs-string">&quot;InstantX/SD3-Controlnet-Canny&quot;</span>)
pipe = StableDiffusion3ControlNetPipeline.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-3-medium-diffusers&quot;</span>, controlnet=controlnet)`,wrap:!1}}),R=new ye({props:{title:"SD3ControlNetModel",local:"diffusers.SD3ControlNetModel",headingTag:"h2"}}),X=new Q({props:{name:"class diffusers.SD3ControlNetModel",anchor:"diffusers.SD3ControlNetModel",parameters:[{name:"sample_size",val:": int = 128"},{name:"patch_size",val:": int = 2"},{name:"in_channels",val:": int = 16"},{name:"num_layers",val:": int = 18"},{name:"attention_head_dim",val:": int = 64"},{name:"num_attention_heads",val:": int = 18"},{name:"joint_attention_dim",val:": int = 4096"},{name:"caption_projection_dim",val:": int = 1152"},{name:"pooled_projection_dim",val:": int = 2048"},{name:"out_channels",val:": int = 16"},{name:"pos_embed_max_size",val:": int = 96"},{name:"extra_conditioning_channels",val:": int = 0"},{name:"dual_attention_layers",val:": typing.Tuple[int, ...] = ()"},{name:"qk_norm",val:": typing.Optional[str] = None"},{name:"pos_embed_type",val:": typing.Optional[str] = 'sincos'"},{name:"use_pos_embed",val:": bool = True"},{name:"force_zeros_for_pooled_projection",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L42"}}),U=new Q({props:{name:"enable_forward_chunking",anchor:"diffusers.SD3ControlNetModel.enable_forward_chunking",parameters:[{name:"chunk_size",val:": typing.Optional[int] = None"},{name:"dim",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.SD3ControlNetModel.enable_forward_chunking.chunk_size",description:`<strong>chunk_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The chunk size of the feed-forward layers. If not specified, will run feed-forward layer individually
over each tensor of dim=<code>dim</code>.`,name:"chunk_size"},{anchor:"diffusers.SD3ControlNetModel.enable_forward_chunking.dim",description:`<strong>dim</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
The dimension over which the feed-forward computation should be chunked. Choose between dim=0 (batch)
or dim=1 (sequence length).`,name:"dim"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L136"}}),Z=new Q({props:{name:"forward",anchor:"diffusers.SD3ControlNetModel.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"controlnet_cond",val:": Tensor"},{name:"conditioning_scale",val:": float = 1.0"},{name:"encoder_hidden_states",val:": FloatTensor = None"},{name:"pooled_projections",val:": FloatTensor = None"},{name:"timestep",val:": LongTensor = None"},{name:"joint_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.SD3ControlNetModel.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch size, channel, height, width)</code>) &#x2014;
Input <code>hidden_states</code>.`,name:"hidden_states"},{anchor:"diffusers.SD3ControlNetModel.forward.controlnet_cond",description:`<strong>controlnet_cond</strong> (<code>torch.Tensor</code>) &#x2014;
The conditional input tensor of shape <code>(batch_size, sequence_length, hidden_size)</code>.`,name:"controlnet_cond"},{anchor:"diffusers.SD3ControlNetModel.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.SD3ControlNetModel.forward.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch size, sequence_len, embed_dims)</code>) &#x2014;
Conditional embeddings (embeddings computed from the input conditions such as prompts) to use.`,name:"encoder_hidden_states"},{anchor:"diffusers.SD3ControlNetModel.forward.pooled_projections",description:`<strong>pooled_projections</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, projection_dim)</code>) &#x2014; Embeddings projected
from the embeddings of input conditions.`,name:"pooled_projections"},{anchor:"diffusers.SD3ControlNetModel.forward.timestep",description:`<strong>timestep</strong> ( <code>torch.LongTensor</code>) &#x2014;
Used to indicate denoising step.`,name:"timestep"},{anchor:"diffusers.SD3ControlNetModel.forward.joint_attention_kwargs",description:`<strong>joint_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"joint_attention_kwargs"},{anchor:"diffusers.SD3ControlNetModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <code>~models.transformer_2d.Transformer2DModelOutput</code> instead of a plain
tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L298",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is True, an <code>~models.transformer_2d.Transformer2DModelOutput</code> is returned, otherwise a
<code>tuple</code> where the first element is the sample tensor.</p>
`}}),z=new Q({props:{name:"fuse_qkv_projections",anchor:"diffusers.SD3ControlNetModel.fuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L226"}}),D=new qe({props:{warning:!0,$$slots:{default:[ot]},$$scope:{ctx:B}}}),E=new Q({props:{name:"set_attn_processor",anchor:"diffusers.SD3ControlNetModel.set_attn_processor",parameters:[{name:"processor",val:": typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor, typing.Dict[str, typing.Union[diffusers.models.attention_processor.AttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor, diffusers.models.attention_processor.AttnAddedKVProcessor2_0, diffusers.models.attention_processor.JointAttnProcessor2_0, diffusers.models.attention_processor.PAGJointAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGJointAttnProcessor2_0, diffusers.models.attention_processor.FusedJointAttnProcessor2_0, diffusers.models.attention_processor.AllegroAttnProcessor2_0, diffusers.models.attention_processor.AuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FusedAuraFlowAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0, diffusers.models.attention_processor.FluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0, diffusers.models.attention_processor.FusedFluxAttnProcessor2_0_NPU, diffusers.models.attention_processor.CogVideoXAttnProcessor2_0, diffusers.models.attention_processor.FusedCogVideoXAttnProcessor2_0, diffusers.models.attention_processor.XFormersAttnAddedKVProcessor, diffusers.models.attention_processor.XFormersAttnProcessor, diffusers.models.attention_processor.XLAFlashAttnProcessor2_0, diffusers.models.attention_processor.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_0, diffusers.models.attention_processor.MochiAttnProcessor2_0, diffusers.models.attention_processor.StableAudioAttnProcessor2_0, diffusers.models.attention_processor.HunyuanAttnProcessor2_0, diffusers.models.attention_processor.FusedHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGHunyuanAttnProcessor2_0, diffusers.models.attention_processor.LuminaAttnProcessor2_0, diffusers.models.attention_processor.FusedAttnProcessor2_0, diffusers.models.attention_processor.CustomDiffusionXFormersAttnProcessor, diffusers.models.attention_processor.CustomDiffusionAttnProcessor2_0, diffusers.models.attention_processor.SlicedAttnProcessor, diffusers.models.attention_processor.SlicedAttnAddedKVProcessor, diffusers.models.attention_processor.SanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleLinearAttention, diffusers.models.attention_processor.SanaMultiscaleAttnProcessor2_0, diffusers.models.attention_processor.SanaMultiscaleAttentionProjection, diffusers.models.attention_processor.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, diffusers.models.attention_processor.SD3IPAdapterJointAttnProcessor2_0, diffusers.models.attention_processor.PAGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0, diffusers.models.attention_processor.LoRAAttnProcessor, diffusers.models.attention_processor.LoRAAttnProcessor2_0, diffusers.models.attention_processor.LoRAXFormersAttnProcessor, diffusers.models.attention_processor.LoRAAttnAddedKVProcessor]]]"}],parametersDescription:[{anchor:"diffusers.SD3ControlNetModel.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/main/src/diffusers/models/controlnets/controlnet_sd3.py#L191"}}),H=new Q({props:{name:"unfuse_qkv_projections",anchor:"diffusers.SD3ControlNetModel.unfuse_qkv_projections",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L252"}}),N=new qe({props:{warning:!0,$$slots:{default:[st]},$$scope:{ctx:B}}}),J=new ye({props:{title:"SD3ControlNetOutput",local:"diffusers.models.controlnets.SD3ControlNetOutput",headingTag:"h2"}}),W=new Q({props:{name:"class diffusers.models.controlnets.SD3ControlNetOutput",anchor:"diffusers.models.controlnets.SD3ControlNetOutput",parameters:[{name:"controlnet_block_samples",val:": typing.Tuple[torch.Tensor]"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/controlnets/controlnet_sd3.py#L37"}}),O=new tt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/controlnet_sd3.md"}}),{c(){i=a("meta"),$=s(),c=a("p"),w=s(),u(F.$$.fragment),de=s(),T=a("p"),T.textContent=Ve,ae=s(),L=a("p"),L.innerHTML=Ie,le=s(),k=a("p"),k.textContent=je,ce=s(),G=a("p"),G.innerHTML=Re,fe=s(),u(V.$$.fragment),me=s(),I=a("p"),I.innerHTML=Xe,ue=s(),u(j.$$.fragment),pe=s(),u(R.$$.fragment),_e=s(),f=a("div"),u(X.$$.fragment),Ce=s(),M=a("div"),u(U.$$.fragment),we=s(),Y=a("p"),Y.innerHTML=Ue,Me=s(),S=a("div"),u(Z.$$.fragment),Se=s(),ee=a("p"),ee.innerHTML=Ze,De=s(),b=a("div"),u(z.$$.fragment),xe=s(),te=a("p"),te.textContent=ze,Ne=s(),u(D.$$.fragment),Fe=s(),x=a("div"),u(E.$$.fragment),Te=s(),oe=a("p"),oe.textContent=Ee,Le=s(),v=a("div"),u(H.$$.fragment),ke=s(),se=a("p"),se.textContent=He,Ge=s(),u(N.$$.fragment),ge=s(),u(J.$$.fragment),he=s(),q=a("div"),u(W.$$.fragment),Ae=s(),u(O.$$.fragment),Pe=s(),ie=a("p"),this.h()},l(e){const t=Ye("svelte-u9bgzb",document.head);i=l(t,"META",{name:!0,content:!0}),t.forEach(o),$=r(e),c=l(e,"P",{}),y(c).forEach(o),w=r(e),p(F.$$.fragment,e),de=r(e),T=l(e,"P",{"data-svelte-h":!0}),P(T)!=="svelte-plv1v9"&&(T.textContent=Ve),ae=r(e),L=l(e,"P",{"data-svelte-h":!0}),P(L)!=="svelte-1s65p96"&&(L.innerHTML=Ie),le=r(e),k=l(e,"P",{"data-svelte-h":!0}),P(k)!=="svelte-1cwsb16"&&(k.textContent=je),ce=r(e),G=l(e,"P",{"data-svelte-h":!0}),P(G)!=="svelte-fbiw6t"&&(G.innerHTML=Re),fe=r(e),p(V.$$.fragment,e),me=r(e),I=l(e,"P",{"data-svelte-h":!0}),P(I)!=="svelte-i9x6qn"&&(I.innerHTML=Xe),ue=r(e),p(j.$$.fragment,e),pe=r(e),p(R.$$.fragment,e),_e=r(e),f=l(e,"DIV",{class:!0});var m=y(f);p(X.$$.fragment,m),Ce=r(m),M=l(m,"DIV",{class:!0});var K=y(M);p(U.$$.fragment,K),we=r(K),Y=l(K,"P",{"data-svelte-h":!0}),P(Y)!=="svelte-2m23sy"&&(Y.innerHTML=Ue),K.forEach(o),Me=r(m),S=l(m,"DIV",{class:!0});var be=y(S);p(Z.$$.fragment,be),Se=r(be),ee=l(be,"P",{"data-svelte-h":!0}),P(ee)!=="svelte-1fdt9lr"&&(ee.innerHTML=Ze),be.forEach(o),De=r(m),b=l(m,"DIV",{class:!0});var re=y(b);p(z.$$.fragment,re),xe=r(re),te=l(re,"P",{"data-svelte-h":!0}),P(te)!=="svelte-1254b9i"&&(te.textContent=ze),Ne=r(re),p(D.$$.fragment,re),re.forEach(o),Fe=r(m),x=l(m,"DIV",{class:!0});var ve=y(x);p(E.$$.fragment,ve),Te=r(ve),oe=l(ve,"P",{"data-svelte-h":!0}),P(oe)!=="svelte-1o77hl2"&&(oe.textContent=Ee),ve.forEach(o),Le=r(m),v=l(m,"DIV",{class:!0});var ne=y(v);p(H.$$.fragment,ne),ke=r(ne),se=l(ne,"P",{"data-svelte-h":!0}),P(se)!=="svelte-1vhtc74"&&(se.textContent=He),Ge=r(ne),p(N.$$.fragment,ne),ne.forEach(o),m.forEach(o),ge=r(e),p(J.$$.fragment,e),he=r(e),q=l(e,"DIV",{class:!0});var Je=y(q);p(W.$$.fragment,Je),Je.forEach(o),Ae=r(e),p(O.$$.fragment,e),Pe=r(e),ie=l(e,"P",{}),y(ie).forEach(o),this.h()},h(){C(i,"name","hf:doc:metadata"),C(i,"content",nt),C(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(q,"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,t){d(document.head,i),n(e,$,t),n(e,c,t),n(e,w,t),_(F,e,t),n(e,de,t),n(e,T,t),n(e,ae,t),n(e,L,t),n(e,le,t),n(e,k,t),n(e,ce,t),n(e,G,t),n(e,fe,t),_(V,e,t),n(e,me,t),n(e,I,t),n(e,ue,t),_(j,e,t),n(e,pe,t),_(R,e,t),n(e,_e,t),n(e,f,t),_(X,f,null),d(f,Ce),d(f,M),_(U,M,null),d(M,we),d(M,Y),d(f,Me),d(f,S),_(Z,S,null),d(S,Se),d(S,ee),d(f,De),d(f,b),_(z,b,null),d(b,xe),d(b,te),d(b,Ne),_(D,b,null),d(f,Fe),d(f,x),_(E,x,null),d(x,Te),d(x,oe),d(f,Le),d(f,v),_(H,v,null),d(v,ke),d(v,se),d(v,Ge),_(N,v,null),n(e,ge,t),_(J,e,t),n(e,he,t),n(e,q,t),_(W,q,null),n(e,Ae,t),_(O,e,t),n(e,Pe,t),n(e,ie,t),$e=!0},p(e,[t]){const m={};t&2&&(m.$$scope={dirty:t,ctx:e}),D.$set(m);const K={};t&2&&(K.$$scope={dirty:t,ctx:e}),N.$set(K)},i(e){$e||(g(F.$$.fragment,e),g(V.$$.fragment,e),g(j.$$.fragment,e),g(R.$$.fragment,e),g(X.$$.fragment,e),g(U.$$.fragment,e),g(Z.$$.fragment,e),g(z.$$.fragment,e),g(D.$$.fragment,e),g(E.$$.fragment,e),g(H.$$.fragment,e),g(N.$$.fragment,e),g(J.$$.fragment,e),g(W.$$.fragment,e),g(O.$$.fragment,e),$e=!0)},o(e){h(F.$$.fragment,e),h(V.$$.fragment,e),h(j.$$.fragment,e),h(R.$$.fragment,e),h(X.$$.fragment,e),h(U.$$.fragment,e),h(Z.$$.fragment,e),h(z.$$.fragment,e),h(D.$$.fragment,e),h(E.$$.fragment,e),h(H.$$.fragment,e),h(N.$$.fragment,e),h(J.$$.fragment,e),h(W.$$.fragment,e),h(O.$$.fragment,e),$e=!1},d(e){e&&(o($),o(c),o(w),o(de),o(T),o(ae),o(L),o(le),o(k),o(ce),o(G),o(fe),o(me),o(I),o(ue),o(pe),o(_e),o(f),o(ge),o(he),o(q),o(Ae),o(Pe),o(ie)),o(i),A(F,e),A(V,e),A(j,e),A(R,e),A(X),A(U),A(Z),A(z),A(D),A(E),A(H),A(N),A(J,e),A(W),A(O,e)}}}const nt='{"title":"SD3ControlNetModel","local":"sd3controlnetmodel","sections":[{"title":"Loading from the original format","local":"loading-from-the-original-format","sections":[],"depth":2},{"title":"SD3ControlNetModel","local":"diffusers.SD3ControlNetModel","sections":[],"depth":2},{"title":"SD3ControlNetOutput","local":"diffusers.models.controlnets.SD3ControlNetOutput","sections":[],"depth":2}],"depth":1}';function it(B){return Ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ut extends Qe{constructor(i){super(),Be(this,i,it,rt,Oe,{})}}export{ut as component};
