import{s as Oe,o as Ke,n as qe}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 $,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 We}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,b="This API is 🧪 experimental.";return{c(){i=a("p"),i.textContent=b},l(c){i=l(c,"P",{"data-svelte-h":!0}),$(i)!=="svelte-89q1io"&&(i.textContent=b)},m(c,w){n(c,i,w)},p:qe,d(c){c&&o(i)}}}function st(B){let i,b="This API is 🧪 experimental.";return{c(){i=a("p"),i.textContent=b},l(c){i=l(c,"P",{"data-svelte-h":!0}),$(i)!=="svelte-89q1io"&&(i.textContent=b)},m(c,w){n(c,i,w)},p:qe,d(c){c&&o(i)}}}function rt(B){let i,b,c,w,S,de,F,Ve="SD3ControlNetModel is an implementation of ControlNet for Stable Diffusion 3.",ae,k,Re='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,G,je="The abstract from the paper is:",ce,L,Ie="<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,R,Ue='By default the <a href="/docs/diffusers/pr_10037/en/api/models/controlnet_sd3#diffusers.SD3ControlNetModel">SD3ControlNetModel</a> should be loaded with <a href="/docs/diffusers/pr_10037/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a>.',ue,j,pe,I,_e,f,U,Ce,M,Z,we,Y,Ze=`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,x,X,xe,ee,Xe='The <a href="/docs/diffusers/pr_10037/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a> forward method.',De,P,z,Ne,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.`,Te,D,Se,N,E,Fe,oe,Ee="Sets the attention processor to use to compute attention.",ke,v,H,Ge,se,He="Disables the fused QKV projection if enabled.",Le,T,ge,J,he,W,q,Ae,O,$e,ie,be;return S=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}}),I=new ye({props:{title:"SD3ControlNetModel",local:"diffusers.SD3ControlNetModel",headingTag:"h2"}}),U=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/vr_10037/src/diffusers/models/controlnets/controlnet_sd3.py#L42"}}),Z=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/vr_10037/src/diffusers/models/controlnets/controlnet_sd3.py#L136"}}),X=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/vr_10037/src/diffusers/models/controlnets/controlnet_sd3.py#L302",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/vr_10037/src/diffusers/models/controlnets/controlnet_sd3.py#L226"}}),D=new We({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.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_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.MochiAttnProcessor2_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.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, 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.AttnProcessorNPU, diffusers.models.attention_processor.AttnProcessor2_0, diffusers.models.attention_processor.MochiVaeAttnProcessor2_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.MochiAttnProcessor2_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.IPAdapterAttnProcessor, diffusers.models.attention_processor.IPAdapterAttnProcessor2_0, diffusers.models.attention_processor.IPAdapterXFormersAttnProcessor, 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/vr_10037/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/vr_10037/src/diffusers/models/controlnets/controlnet_sd3.py#L252"}}),T=new We({props:{warning:!0,$$slots:{default:[st]},$$scope:{ctx:B}}}),J=new ye({props:{title:"SD3ControlNetOutput",local:"diffusers.models.controlnets.SD3ControlNetOutput",headingTag:"h2"}}),q=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/vr_10037/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"),b=s(),c=a("p"),w=s(),u(S.$$.fragment),de=s(),F=a("p"),F.textContent=Ve,ae=s(),k=a("p"),k.innerHTML=Re,le=s(),G=a("p"),G.textContent=je,ce=s(),L=a("p"),L.innerHTML=Ie,fe=s(),u(V.$$.fragment),me=s(),R=a("p"),R.innerHTML=Ue,ue=s(),u(j.$$.fragment),pe=s(),u(I.$$.fragment),_e=s(),f=a("div"),u(U.$$.fragment),Ce=s(),M=a("div"),u(Z.$$.fragment),we=s(),Y=a("p"),Y.innerHTML=Ze,Me=s(),x=a("div"),u(X.$$.fragment),xe=s(),ee=a("p"),ee.innerHTML=Xe,De=s(),P=a("div"),u(z.$$.fragment),Ne=s(),te=a("p"),te.textContent=ze,Te=s(),u(D.$$.fragment),Se=s(),N=a("div"),u(E.$$.fragment),Fe=s(),oe=a("p"),oe.textContent=Ee,ke=s(),v=a("div"),u(H.$$.fragment),Ge=s(),se=a("p"),se.textContent=He,Le=s(),u(T.$$.fragment),ge=s(),u(J.$$.fragment),he=s(),W=a("div"),u(q.$$.fragment),Ae=s(),u(O.$$.fragment),$e=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),b=r(e),c=l(e,"P",{}),y(c).forEach(o),w=r(e),p(S.$$.fragment,e),de=r(e),F=l(e,"P",{"data-svelte-h":!0}),$(F)!=="svelte-plv1v9"&&(F.textContent=Ve),ae=r(e),k=l(e,"P",{"data-svelte-h":!0}),$(k)!=="svelte-1s65p96"&&(k.innerHTML=Re),le=r(e),G=l(e,"P",{"data-svelte-h":!0}),$(G)!=="svelte-1cwsb16"&&(G.textContent=je),ce=r(e),L=l(e,"P",{"data-svelte-h":!0}),$(L)!=="svelte-fbiw6t"&&(L.innerHTML=Ie),fe=r(e),p(V.$$.fragment,e),me=r(e),R=l(e,"P",{"data-svelte-h":!0}),$(R)!=="svelte-1416sx1"&&(R.innerHTML=Ue),ue=r(e),p(j.$$.fragment,e),pe=r(e),p(I.$$.fragment,e),_e=r(e),f=l(e,"DIV",{class:!0});var m=y(f);p(U.$$.fragment,m),Ce=r(m),M=l(m,"DIV",{class:!0});var K=y(M);p(Z.$$.fragment,K),we=r(K),Y=l(K,"P",{"data-svelte-h":!0}),$(Y)!=="svelte-2m23sy"&&(Y.innerHTML=Ze),K.forEach(o),Me=r(m),x=l(m,"DIV",{class:!0});var Pe=y(x);p(X.$$.fragment,Pe),xe=r(Pe),ee=l(Pe,"P",{"data-svelte-h":!0}),$(ee)!=="svelte-148nssa"&&(ee.innerHTML=Xe),Pe.forEach(o),De=r(m),P=l(m,"DIV",{class:!0});var re=y(P);p(z.$$.fragment,re),Ne=r(re),te=l(re,"P",{"data-svelte-h":!0}),$(te)!=="svelte-1254b9i"&&(te.textContent=ze),Te=r(re),p(D.$$.fragment,re),re.forEach(o),Se=r(m),N=l(m,"DIV",{class:!0});var ve=y(N);p(E.$$.fragment,ve),Fe=r(ve),oe=l(ve,"P",{"data-svelte-h":!0}),$(oe)!=="svelte-1o77hl2"&&(oe.textContent=Ee),ve.forEach(o),ke=r(m),v=l(m,"DIV",{class:!0});var ne=y(v);p(H.$$.fragment,ne),Ge=r(ne),se=l(ne,"P",{"data-svelte-h":!0}),$(se)!=="svelte-1vhtc74"&&(se.textContent=He),Le=r(ne),p(T.$$.fragment,ne),ne.forEach(o),m.forEach(o),ge=r(e),p(J.$$.fragment,e),he=r(e),W=l(e,"DIV",{class:!0});var Je=y(W);p(q.$$.fragment,Je),Je.forEach(o),Ae=r(e),p(O.$$.fragment,e),$e=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(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(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(N,"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(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,t){d(document.head,i),n(e,b,t),n(e,c,t),n(e,w,t),_(S,e,t),n(e,de,t),n(e,F,t),n(e,ae,t),n(e,k,t),n(e,le,t),n(e,G,t),n(e,ce,t),n(e,L,t),n(e,fe,t),_(V,e,t),n(e,me,t),n(e,R,t),n(e,ue,t),_(j,e,t),n(e,pe,t),_(I,e,t),n(e,_e,t),n(e,f,t),_(U,f,null),d(f,Ce),d(f,M),_(Z,M,null),d(M,we),d(M,Y),d(f,Me),d(f,x),_(X,x,null),d(x,xe),d(x,ee),d(f,De),d(f,P),_(z,P,null),d(P,Ne),d(P,te),d(P,Te),_(D,P,null),d(f,Se),d(f,N),_(E,N,null),d(N,Fe),d(N,oe),d(f,ke),d(f,v),_(H,v,null),d(v,Ge),d(v,se),d(v,Le),_(T,v,null),n(e,ge,t),_(J,e,t),n(e,he,t),n(e,W,t),_(q,W,null),n(e,Ae,t),_(O,e,t),n(e,$e,t),n(e,ie,t),be=!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}),T.$set(K)},i(e){be||(g(S.$$.fragment,e),g(V.$$.fragment,e),g(j.$$.fragment,e),g(I.$$.fragment,e),g(U.$$.fragment,e),g(Z.$$.fragment,e),g(X.$$.fragment,e),g(z.$$.fragment,e),g(D.$$.fragment,e),g(E.$$.fragment,e),g(H.$$.fragment,e),g(T.$$.fragment,e),g(J.$$.fragment,e),g(q.$$.fragment,e),g(O.$$.fragment,e),be=!0)},o(e){h(S.$$.fragment,e),h(V.$$.fragment,e),h(j.$$.fragment,e),h(I.$$.fragment,e),h(U.$$.fragment,e),h(Z.$$.fragment,e),h(X.$$.fragment,e),h(z.$$.fragment,e),h(D.$$.fragment,e),h(E.$$.fragment,e),h(H.$$.fragment,e),h(T.$$.fragment,e),h(J.$$.fragment,e),h(q.$$.fragment,e),h(O.$$.fragment,e),be=!1},d(e){e&&(o(b),o(c),o(w),o(de),o(F),o(ae),o(k),o(le),o(G),o(ce),o(L),o(fe),o(me),o(R),o(ue),o(pe),o(_e),o(f),o(ge),o(he),o(W),o(Ae),o($e),o(ie)),o(i),A(S,e),A(V,e),A(j,e),A(I,e),A(U),A(Z),A(X),A(z),A(D),A(E),A(H),A(T),A(J,e),A(q),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};
