import{s as Jo,o as Yo,n as Ro}from"../chunks/scheduler.8c3d61f6.js";import{S as Ko,i as Qo,g as r,s as o,r as c,A as Xo,h as s,f as n,c as i,j as $,u,x as l,k as G,y as t,a as d,v as f,d as g,t as p,w as m}from"../chunks/index.da70eac4.js";import{T as ei}from"../chunks/Tip.6f698f24.js";import{D as T}from"../chunks/Docstring.367be9ed.js";import{H as A,E as ti}from"../chunks/getInferenceSnippets.cb466318.js";function oi(Qe){let b,U=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated models</a>, log-in with <code>hf auth login</code>. You can also activate the special
<a href="https://huggingface.co/diffusers/installation.html#offline-mode" rel="nofollow">“offline-mode”</a> to use this method in a
firewalled environment.`;return{c(){b=r("p"),b.innerHTML=U},l(F){b=s(F,"P",{"data-svelte-h":!0}),l(b)!=="svelte-kjkp1z"&&(b.innerHTML=U)},m(F,he){d(F,b,he)},p:Ro,d(F){F&&n(b)}}}function ii(Qe){let b,U,F,he,V,Xe,Z,po="Guiders are components in Modular Diffusers that control how the diffusion process is guided during generation. They implement various guidance techniques to improve generation quality and control.",et,W,tt,_,O,St,_e,mo="Base class providing the skeleton for implementing guidance techniques.",Lt,M,J,Ft,ve,ho=`Cleans up the models for the guidance technique after a given batch of data. This method should be overridden
in subclasses to implement specific model cleanup logic. It is useful for removing any hooks or other stateful
modifications made during <code>prepare_models</code>.`,Pt,P,Y,At,be,_o="Instantiate a guider from a pre-defined JSON configuration file in a local directory or Hub repository.",Ht,E,qt,B,R,Dt,ye,vo=`Prepares the models for the guidance technique on a given batch of data. This method should be overridden in
subclasses to implement specific model preparation logic.`,Mt,I,K,Et,xe,bo=`Save a guider configuration object to a directory so that it can be reloaded using the
<code>~BaseGuidance.from_pretrained</code> class method.`,Bt,j,Q,It,we,yo=`Set the input fields for the guidance technique. The input fields are used to specify the names of the returned
attributes containing the prepared data after <code>prepare_inputs</code> is called. The prepared data is obtained from
the values of the provided keyword arguments to this method.`,ot,X,it,y,ee,jt,$e,xo='Classifier-free guidance (CFG): <a href="https://huggingface.co/papers/2207.12598" rel="nofollow">https://huggingface.co/papers/2207.12598</a>',Nt,Ge,wo=`CFG is a technique used to improve generation quality and condition-following in diffusion models. It works by
jointly training a model on both conditional and unconditional data, and using a weighted sum of the two during
inference. This allows the model to tradeoff between generation quality and sample diversity. The original paper
proposes scaling and shifting the conditional distribution based on the difference between conditional and
unconditional predictions. [x_pred = x_cond + scale * (x_cond - x_uncond)]`,zt,Te,$o=`Diffusers implemented the scaling and shifting on the unconditional prediction instead based on the <a href="https://huggingface.co/papers/2205.11487" rel="nofollow">Imagen
paper</a>, which is equivalent to what the original paper proposed in
theory. [x_pred = x_uncond + scale * (x_cond - x_uncond)]`,Ut,Ce,Go=`The intution behind the original formulation can be thought of as moving the conditional distribution estimates
further away from the unconditional distribution estimates, while the diffusers-native implementation can be
thought of as moving the unconditional distribution towards the conditional distribution estimates to get rid of
the unconditional predictions (usually negative features like “bad quality, bad anotomy, watermarks”, etc.)`,Vt,ke,To=`The <code>use_original_formulation</code> argument can be set to <code>True</code> to use the original CFG formulation mentioned in the
paper. By default, we use the diffusers-native implementation that has been in the codebase for a long time.`,nt,te,at,C,oe,Zt,Se,Co='Classifier-free Zero<em>(CFG-Zero</em>): <a href="https://huggingface.co/papers/2503.18886" rel="nofollow">https://huggingface.co/papers/2503.18886</a>',Wt,Le,ko=`This is an implementation of the Classifier-Free Zero* guidance technique, which is a variant of classifier-free
guidance. It proposes zero initialization of the noise predictions for the first few steps of the diffusion
process, and also introduces an optimal rescaling factor for the noise predictions, which can help in improving the
quality of generated images.`,Ot,Fe,So="The authors of the paper suggest setting zero initialization in the first 4% of the inference steps.",rt,ie,st,h,ne,Jt,Pe,Lo='Skip Layer Guidance (SLG): <a href="https://github.com/Stability-AI/sd3.5" rel="nofollow">https://github.com/Stability-AI/sd3.5</a>',Yt,Ae,Fo='Spatio-Temporal Guidance (STG): <a href="https://huggingface.co/papers/2411.18664" rel="nofollow">https://huggingface.co/papers/2411.18664</a>',Rt,He,Po=`SLG was introduced by StabilityAI for improving structure and anotomy coherence in generated images. It works by
skipping the forward pass of specified transformer blocks during the denoising process on an additional conditional
batch of data, apart from the conditional and unconditional batches already used in CFG
([~guiders.classifier_free_guidance.ClassifierFreeGuidance]), and then scaling and shifting the CFG predictions
based on the difference between conditional without skipping and conditional with skipping predictions.`,Kt,qe,Ao=`The intution behind SLG can be thought of as moving the CFG predicted distribution estimates further away from
worse versions of the conditional distribution estimates (because skipping layers is equivalent to using a worse
version of the model for the conditional prediction).`,Qt,De,Ho=`STG is an improvement and follow-up work combining ideas from SLG, PAG and similar techniques for improving
generation quality in video diffusion models.`,Xt,Me,qo="Additional reading:",eo,Ee,Do='<li><a href="https://huggingface.co/papers/2406.02507" rel="nofollow">Guiding a Diffusion Model with a Bad Version of Itself</a></li>',to,Be,Mo=`The values for <code>skip_layer_guidance_scale</code>, <code>skip_layer_guidance_start</code>, and <code>skip_layer_guidance_stop</code> are
defaulted to the recommendations by StabilityAI for Stable Diffusion 3.5 Medium.`,dt,ae,lt,k,re,oo,Ie,Eo='Smoothed Energy Guidance (SEG): <a href="https://huggingface.co/papers/2408.00760" rel="nofollow">https://huggingface.co/papers/2408.00760</a>',io,je,Bo=`SEG is only supported as an experimental prototype feature for now, so the implementation may be modified in the
future without warning or guarantee of reproducibility. This implementation assumes:`,no,Ne,Io=`<li>Generated images are square (height == width)</li> <li>The model does not combine different modalities together (e.g., text and image latent streams are not combined
together such as Flux)</li>`,ct,se,ut,x,de,ao,ze,jo='Perturbed Attention Guidance (PAG): <a href="https://huggingface.co/papers/2403.17377" rel="nofollow">https://huggingface.co/papers/2403.17377</a>',ro,Ue,No=`The intution behind PAG can be thought of as moving the CFG predicted distribution estimates further away from
worse versions of the conditional distribution estimates. PAG was one of the first techniques to introduce the idea
of using a worse version of the trained model for better guiding itself in the denoising process. It perturbs the
attention scores of the latent stream by replacing the score matrix with an identity matrix for selectively chosen
layers.`,so,Ve,zo="Additional reading:",lo,Ze,Uo='<li><a href="https://huggingface.co/papers/2406.02507" rel="nofollow">Guiding a Diffusion Model with a Bad Version of Itself</a></li>',co,We,Vo=`PAG is implemented with similar implementation to SkipLayerGuidance due to overlap in the configuration parameters
and implementation details.`,ft,le,gt,H,ce,uo,Oe,Zo='Adaptive Projected Guidance (APG): <a href="https://huggingface.co/papers/2410.02416" rel="nofollow">https://huggingface.co/papers/2410.02416</a>',pt,ue,mt,q,fe,fo,Je,Wo='AutoGuidance: <a href="https://huggingface.co/papers/2406.02507" rel="nofollow">https://huggingface.co/papers/2406.02507</a>',ht,ge,_t,D,pe,go,Ye,Oo='Tangential Classifier Free Guidance (TCFG): <a href="https://huggingface.co/papers/2503.18137" rel="nofollow">https://huggingface.co/papers/2503.18137</a>',vt,me,bt,Ke,yt;return V=new A({props:{title:"Guiders",local:"guiders",headingTag:"h1"}}),W=new A({props:{title:"BaseGuidance",local:"diffusers.guiders.guider_utils.BaseGuidance",headingTag:"h2"}}),O=new T({props:{name:"class diffusers.guiders.guider_utils.BaseGuidance",anchor:"diffusers.guiders.guider_utils.BaseGuidance",parameters:[{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L36"}}),J=new T({props:{name:"cleanup_models",anchor:"diffusers.guiders.guider_utils.BaseGuidance.cleanup_models",parameters:[{name:"denoiser",val:": Module"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L119"}}),Y=new T({props:{name:"from_pretrained",anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"subfolder",val:": typing.Optional[str] = None"},{name:"return_unused_kwargs",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the guider configuration
saved with <code>~BaseGuidance.save_pretrained</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.return_unused_kwargs",description:`<strong>return_unused_kwargs</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether kwargs that are not consumed by the Python class should be returned or not.`,name:"return_unused_kwargs"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only(bool,"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L204"}}),E=new ei({props:{$$slots:{default:[oi]},$$scope:{ctx:Qe}}}),R=new T({props:{name:"prepare_models",anchor:"diffusers.guiders.guider_utils.BaseGuidance.prepare_models",parameters:[{name:"denoiser",val:": Module"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L112"}}),K=new T({props:{name:"save_pretrained",anchor:"diffusers.guiders.guider_utils.BaseGuidance.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.guiders.guider_utils.BaseGuidance.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the configuration JSON file will be saved (will be created if it does not exist).`,name:"save_directory"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face Hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"diffusers.guiders.guider_utils.BaseGuidance.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L269"}}),Q=new T({props:{name:"set_input_fields",anchor:"diffusers.guiders.guider_utils.BaseGuidance.set_input_fields",parameters:[{name:"**kwargs",val:": typing.Dict[str, typing.Union[str, typing.Tuple[str, str]]]"}],parametersDescription:[{anchor:"diffusers.guiders.guider_utils.BaseGuidance.set_input_fields.*kwargs",description:`*<strong>*kwargs</strong> (<code>Dict[str, Union[str, Tuple[str, str]]]</code>) &#x2014;
A dictionary where the keys are the names of the fields that will be used to store the data once it is
prepared with <code>prepare_inputs</code>. The values can be either a string or a tuple of length 2, which is used
to look up the required data provided for preparation.</p>
<p>If a string is provided, it will be used as the conditional data (or unconditional if used with a
guidance method that requires it). If a tuple of length 2 is provided, the first element must be the
conditional data identifier and the second element must be the unconditional data identifier or None.</p>
<p>Example:`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/guider_utils.py#L75"}}),X=new A({props:{title:"ClassifierFreeGuidance",local:"diffusers.ClassifierFreeGuidance",headingTag:"h2"}}),ee=new T({props:{name:"class diffusers.ClassifierFreeGuidance",anchor:"diffusers.ClassifierFreeGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.ClassifierFreeGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.ClassifierFreeGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.ClassifierFreeGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.ClassifierFreeGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.ClassifierFreeGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/classifier_free_guidance.py#L28"}}),te=new A({props:{title:"ClassifierFreeZeroStarGuidance",local:"diffusers.ClassifierFreeZeroStarGuidance",headingTag:"h2"}}),oe=new T({props:{name:"class diffusers.ClassifierFreeZeroStarGuidance",anchor:"diffusers.ClassifierFreeZeroStarGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"zero_init_steps",val:": int = 1"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.ClassifierFreeZeroStarGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.ClassifierFreeZeroStarGuidance.zero_init_steps",description:`<strong>zero_init_steps</strong> (<code>int</code>, defaults to <code>1</code>) &#x2014;
The number of inference steps for which the noise predictions are zeroed out (see Section 4.2).`,name:"zero_init_steps"},{anchor:"diffusers.ClassifierFreeZeroStarGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.ClassifierFreeZeroStarGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.ClassifierFreeZeroStarGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.ClassifierFreeZeroStarGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/classifier_free_zero_star_guidance.py#L28"}}),ie=new A({props:{title:"SkipLayerGuidance",local:"diffusers.SkipLayerGuidance",headingTag:"h2"}}),ne=new T({props:{name:"class diffusers.SkipLayerGuidance",anchor:"diffusers.SkipLayerGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"skip_layer_guidance_scale",val:": float = 2.8"},{name:"skip_layer_guidance_start",val:": float = 0.01"},{name:"skip_layer_guidance_stop",val:": float = 0.2"},{name:"skip_layer_guidance_layers",val:": typing.Union[int, typing.List[int], NoneType] = None"},{name:"skip_layer_config",val:": typing.Union[diffusers.hooks.layer_skip.LayerSkipConfig, typing.List[diffusers.hooks.layer_skip.LayerSkipConfig], typing.Dict[str, typing.Any]] = None"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.SkipLayerGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.SkipLayerGuidance.skip_layer_guidance_scale",description:`<strong>skip_layer_guidance_scale</strong> (<code>float</code>, defaults to <code>2.8</code>) &#x2014;
The scale parameter for skip layer guidance. Anatomy and structure coherence may improve with higher
values, but it may also lead to overexposure and saturation.`,name:"skip_layer_guidance_scale"},{anchor:"diffusers.SkipLayerGuidance.skip_layer_guidance_start",description:`<strong>skip_layer_guidance_start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which skip layer guidance starts.`,name:"skip_layer_guidance_start"},{anchor:"diffusers.SkipLayerGuidance.skip_layer_guidance_stop",description:`<strong>skip_layer_guidance_stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which skip layer guidance stops.`,name:"skip_layer_guidance_stop"},{anchor:"diffusers.SkipLayerGuidance.skip_layer_guidance_layers",description:`<strong>skip_layer_guidance_layers</strong> (<code>int</code> or <code>List[int]</code>, <em>optional</em>) &#x2014;
The layer indices to apply skip layer guidance to. Can be a single integer or a list of integers. If not
provided, <code>skip_layer_config</code> must be provided. The recommended values are <code>[7, 8, 9]</code> for Stable Diffusion
3.5 Medium.`,name:"skip_layer_guidance_layers"},{anchor:"diffusers.SkipLayerGuidance.skip_layer_config",description:`<strong>skip_layer_config</strong> (<code>LayerSkipConfig</code> or <code>List[LayerSkipConfig]</code>, <em>optional</em>) &#x2014;
The configuration for the skip layer guidance. Can be a single <code>LayerSkipConfig</code> or a list of
<code>LayerSkipConfig</code>. If not provided, <code>skip_layer_guidance_layers</code> must be provided.`,name:"skip_layer_config"},{anchor:"diffusers.SkipLayerGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.SkipLayerGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.SkipLayerGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.SkipLayerGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/skip_layer_guidance.py#L30"}}),ae=new A({props:{title:"SmoothedEnergyGuidance",local:"diffusers.SmoothedEnergyGuidance",headingTag:"h2"}}),re=new T({props:{name:"class diffusers.SmoothedEnergyGuidance",anchor:"diffusers.SmoothedEnergyGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"seg_guidance_scale",val:": float = 2.8"},{name:"seg_blur_sigma",val:": float = 9999999.0"},{name:"seg_blur_threshold_inf",val:": float = 9999.0"},{name:"seg_guidance_start",val:": float = 0.0"},{name:"seg_guidance_stop",val:": float = 1.0"},{name:"seg_guidance_layers",val:": typing.Union[int, typing.List[int], NoneType] = None"},{name:"seg_guidance_config",val:": typing.Union[diffusers.hooks.smoothed_energy_guidance_utils.SmoothedEnergyGuidanceConfig, typing.List[diffusers.hooks.smoothed_energy_guidance_utils.SmoothedEnergyGuidanceConfig]] = None"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.SmoothedEnergyGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_guidance_scale",description:`<strong>seg_guidance_scale</strong> (<code>float</code>, defaults to <code>3.0</code>) &#x2014;
The scale parameter for smoothed energy guidance. Anatomy and structure coherence may improve with higher
values, but it may also lead to overexposure and saturation.`,name:"seg_guidance_scale"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_blur_sigma",description:`<strong>seg_blur_sigma</strong> (<code>float</code>, defaults to <code>9999999.0</code>) &#x2014;
The amount by which we blur the attention weights. Setting this value greater than 9999.0 results in
infinite blur, which means uniform queries. Controlling it exponentially is empirically effective.`,name:"seg_blur_sigma"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_blur_threshold_inf",description:`<strong>seg_blur_threshold_inf</strong> (<code>float</code>, defaults to <code>9999.0</code>) &#x2014;
The threshold above which the blur is considered infinite.`,name:"seg_blur_threshold_inf"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_guidance_start",description:`<strong>seg_guidance_start</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The fraction of the total number of denoising steps after which smoothed energy guidance starts.`,name:"seg_guidance_start"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_guidance_stop",description:`<strong>seg_guidance_stop</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The fraction of the total number of denoising steps after which smoothed energy guidance stops.`,name:"seg_guidance_stop"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_guidance_layers",description:`<strong>seg_guidance_layers</strong> (<code>int</code> or <code>List[int]</code>, <em>optional</em>) &#x2014;
The layer indices to apply smoothed energy guidance to. Can be a single integer or a list of integers. If
not provided, <code>seg_guidance_config</code> must be provided. The recommended values are <code>[7, 8, 9]</code> for Stable
Diffusion 3.5 Medium.`,name:"seg_guidance_layers"},{anchor:"diffusers.SmoothedEnergyGuidance.seg_guidance_config",description:`<strong>seg_guidance_config</strong> (<code>SmoothedEnergyGuidanceConfig</code> or <code>List[SmoothedEnergyGuidanceConfig]</code>, <em>optional</em>) &#x2014;
The configuration for the smoothed energy layer guidance. Can be a single <code>SmoothedEnergyGuidanceConfig</code> or
a list of <code>SmoothedEnergyGuidanceConfig</code>. If not provided, <code>seg_guidance_layers</code> must be provided.`,name:"seg_guidance_config"},{anchor:"diffusers.SmoothedEnergyGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.SmoothedEnergyGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.SmoothedEnergyGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.SmoothedEnergyGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/smoothed_energy_guidance.py#L30"}}),se=new A({props:{title:"PerturbedAttentionGuidance",local:"diffusers.PerturbedAttentionGuidance",headingTag:"h2"}}),de=new T({props:{name:"class diffusers.PerturbedAttentionGuidance",anchor:"diffusers.PerturbedAttentionGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"perturbed_guidance_scale",val:": float = 2.8"},{name:"perturbed_guidance_start",val:": float = 0.01"},{name:"perturbed_guidance_stop",val:": float = 0.2"},{name:"perturbed_guidance_layers",val:": typing.Union[int, typing.List[int], NoneType] = None"},{name:"perturbed_guidance_config",val:": typing.Union[diffusers.hooks.layer_skip.LayerSkipConfig, typing.List[diffusers.hooks.layer_skip.LayerSkipConfig], typing.Dict[str, typing.Any]] = None"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.PerturbedAttentionGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.PerturbedAttentionGuidance.perturbed_guidance_scale",description:`<strong>perturbed_guidance_scale</strong> (<code>float</code>, defaults to <code>2.8</code>) &#x2014;
The scale parameter for perturbed attention guidance.`,name:"perturbed_guidance_scale"},{anchor:"diffusers.PerturbedAttentionGuidance.perturbed_guidance_start",description:`<strong>perturbed_guidance_start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which perturbed attention guidance starts.`,name:"perturbed_guidance_start"},{anchor:"diffusers.PerturbedAttentionGuidance.perturbed_guidance_stop",description:`<strong>perturbed_guidance_stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which perturbed attention guidance stops.`,name:"perturbed_guidance_stop"},{anchor:"diffusers.PerturbedAttentionGuidance.perturbed_guidance_layers",description:`<strong>perturbed_guidance_layers</strong> (<code>int</code> or <code>List[int]</code>, <em>optional</em>) &#x2014;
The layer indices to apply perturbed attention guidance to. Can be a single integer or a list of integers.
If not provided, <code>perturbed_guidance_config</code> must be provided.`,name:"perturbed_guidance_layers"},{anchor:"diffusers.PerturbedAttentionGuidance.perturbed_guidance_config",description:`<strong>perturbed_guidance_config</strong> (<code>LayerSkipConfig</code> or <code>List[LayerSkipConfig]</code>, <em>optional</em>) &#x2014;
The configuration for the perturbed attention guidance. Can be a single <code>LayerSkipConfig</code> or a list of
<code>LayerSkipConfig</code>. If not provided, <code>perturbed_guidance_layers</code> must be provided.`,name:"perturbed_guidance_config"},{anchor:"diffusers.PerturbedAttentionGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.PerturbedAttentionGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.PerturbedAttentionGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.01</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.PerturbedAttentionGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>0.2</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/perturbed_attention_guidance.py#L34"}}),le=new A({props:{title:"AdaptiveProjectedGuidance",local:"diffusers.AdaptiveProjectedGuidance",headingTag:"h2"}}),ce=new T({props:{name:"class diffusers.AdaptiveProjectedGuidance",anchor:"diffusers.AdaptiveProjectedGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"adaptive_projected_guidance_momentum",val:": typing.Optional[float] = None"},{name:"adaptive_projected_guidance_rescale",val:": float = 15.0"},{name:"eta",val:": float = 1.0"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.AdaptiveProjectedGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.AdaptiveProjectedGuidance.adaptive_projected_guidance_momentum",description:`<strong>adaptive_projected_guidance_momentum</strong> (<code>float</code>, defaults to <code>None</code>) &#x2014;
The momentum parameter for the adaptive projected guidance. Disabled if set to <code>None</code>.`,name:"adaptive_projected_guidance_momentum"},{anchor:"diffusers.AdaptiveProjectedGuidance.adaptive_projected_guidance_rescale",description:`<strong>adaptive_projected_guidance_rescale</strong> (<code>float</code>, defaults to <code>15.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix`,name:"adaptive_projected_guidance_rescale"},{anchor:"diffusers.AdaptiveProjectedGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.AdaptiveProjectedGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.AdaptiveProjectedGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.AdaptiveProjectedGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/adaptive_projected_guidance.py#L28"}}),ue=new A({props:{title:"AutoGuidance",local:"diffusers.AutoGuidance",headingTag:"h2"}}),fe=new T({props:{name:"class diffusers.AutoGuidance",anchor:"diffusers.AutoGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"auto_guidance_layers",val:": typing.Union[int, typing.List[int], NoneType] = None"},{name:"auto_guidance_config",val:": typing.Union[diffusers.hooks.layer_skip.LayerSkipConfig, typing.List[diffusers.hooks.layer_skip.LayerSkipConfig], typing.Dict[str, typing.Any]] = None"},{name:"dropout",val:": typing.Optional[float] = None"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.AutoGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.AutoGuidance.auto_guidance_layers",description:`<strong>auto_guidance_layers</strong> (<code>int</code> or <code>List[int]</code>, <em>optional</em>) &#x2014;
The layer indices to apply skip layer guidance to. Can be a single integer or a list of integers. If not
provided, <code>skip_layer_config</code> must be provided.`,name:"auto_guidance_layers"},{anchor:"diffusers.AutoGuidance.auto_guidance_config",description:`<strong>auto_guidance_config</strong> (<code>LayerSkipConfig</code> or <code>List[LayerSkipConfig]</code>, <em>optional</em>) &#x2014;
The configuration for the skip layer guidance. Can be a single <code>LayerSkipConfig</code> or a list of
<code>LayerSkipConfig</code>. If not provided, <code>skip_layer_guidance_layers</code> must be provided.`,name:"auto_guidance_config"},{anchor:"diffusers.AutoGuidance.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The dropout probability for autoguidance on the enabled skip layers (either with <code>auto_guidance_layers</code> or
<code>auto_guidance_config</code>). If not provided, the dropout probability will be set to 1.0.`,name:"dropout"},{anchor:"diffusers.AutoGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.AutoGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.AutoGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.AutoGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/auto_guidance.py#L30"}}),ge=new A({props:{title:"TangentialClassifierFreeGuidance",local:"diffusers.TangentialClassifierFreeGuidance",headingTag:"h2"}}),pe=new T({props:{name:"class diffusers.TangentialClassifierFreeGuidance",anchor:"diffusers.TangentialClassifierFreeGuidance",parameters:[{name:"guidance_scale",val:": float = 7.5"},{name:"guidance_rescale",val:": float = 0.0"},{name:"use_original_formulation",val:": bool = False"},{name:"start",val:": float = 0.0"},{name:"stop",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.TangentialClassifierFreeGuidance.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>7.5</code>) &#x2014;
The scale parameter for classifier-free guidance. Higher values result in stronger conditioning on the text
prompt, while lower values allow for more freedom in generation. Higher values may lead to saturation and
deterioration of image quality.`,name:"guidance_scale"},{anchor:"diffusers.TangentialClassifierFreeGuidance.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The rescale factor applied to the noise predictions. This is used to improve image quality and fix
overexposure. Based on Section 3.4 from <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>.`,name:"guidance_rescale"},{anchor:"diffusers.TangentialClassifierFreeGuidance.use_original_formulation",description:`<strong>use_original_formulation</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to use the original formulation of classifier-free guidance as proposed in the paper. By default,
we use the diffusers-native implementation that has been in the codebase for a long time. See
[~guiders.classifier_free_guidance.ClassifierFreeGuidance] for more details.`,name:"use_original_formulation"},{anchor:"diffusers.TangentialClassifierFreeGuidance.start",description:`<strong>start</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance starts.`,name:"start"},{anchor:"diffusers.TangentialClassifierFreeGuidance.stop",description:`<strong>stop</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The fraction of the total number of denoising steps after which guidance stops.`,name:"stop"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/guiders/tangential_classifier_free_guidance.py#L28"}}),me=new ti({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/guiders.md"}}),{c(){b=r("meta"),U=o(),F=r("p"),he=o(),c(V.$$.fragment),Xe=o(),Z=r("p"),Z.textContent=po,et=o(),c(W.$$.fragment),tt=o(),_=r("div"),c(O.$$.fragment),St=o(),_e=r("p"),_e.textContent=mo,Lt=o(),M=r("div"),c(J.$$.fragment),Ft=o(),ve=r("p"),ve.innerHTML=ho,Pt=o(),P=r("div"),c(Y.$$.fragment),At=o(),be=r("p"),be.textContent=_o,Ht=o(),c(E.$$.fragment),qt=o(),B=r("div"),c(R.$$.fragment),Dt=o(),ye=r("p"),ye.textContent=vo,Mt=o(),I=r("div"),c(K.$$.fragment),Et=o(),xe=r("p"),xe.innerHTML=bo,Bt=o(),j=r("div"),c(Q.$$.fragment),It=o(),we=r("p"),we.innerHTML=yo,ot=o(),c(X.$$.fragment),it=o(),y=r("div"),c(ee.$$.fragment),jt=o(),$e=r("p"),$e.innerHTML=xo,Nt=o(),Ge=r("p"),Ge.textContent=wo,zt=o(),Te=r("p"),Te.innerHTML=$o,Ut=o(),Ce=r("p"),Ce.textContent=Go,Vt=o(),ke=r("p"),ke.innerHTML=To,nt=o(),c(te.$$.fragment),at=o(),C=r("div"),c(oe.$$.fragment),Zt=o(),Se=r("p"),Se.innerHTML=Co,Wt=o(),Le=r("p"),Le.textContent=ko,Ot=o(),Fe=r("p"),Fe.textContent=So,rt=o(),c(ie.$$.fragment),st=o(),h=r("div"),c(ne.$$.fragment),Jt=o(),Pe=r("p"),Pe.innerHTML=Lo,Yt=o(),Ae=r("p"),Ae.innerHTML=Fo,Rt=o(),He=r("p"),He.textContent=Po,Kt=o(),qe=r("p"),qe.textContent=Ao,Qt=o(),De=r("p"),De.textContent=Ho,Xt=o(),Me=r("p"),Me.textContent=qo,eo=o(),Ee=r("ul"),Ee.innerHTML=Do,to=o(),Be=r("p"),Be.innerHTML=Mo,dt=o(),c(ae.$$.fragment),lt=o(),k=r("div"),c(re.$$.fragment),oo=o(),Ie=r("p"),Ie.innerHTML=Eo,io=o(),je=r("p"),je.textContent=Bo,no=o(),Ne=r("ul"),Ne.innerHTML=Io,ct=o(),c(se.$$.fragment),ut=o(),x=r("div"),c(de.$$.fragment),ao=o(),ze=r("p"),ze.innerHTML=jo,ro=o(),Ue=r("p"),Ue.textContent=No,so=o(),Ve=r("p"),Ve.textContent=zo,lo=o(),Ze=r("ul"),Ze.innerHTML=Uo,co=o(),We=r("p"),We.textContent=Vo,ft=o(),c(le.$$.fragment),gt=o(),H=r("div"),c(ce.$$.fragment),uo=o(),Oe=r("p"),Oe.innerHTML=Zo,pt=o(),c(ue.$$.fragment),mt=o(),q=r("div"),c(fe.$$.fragment),fo=o(),Je=r("p"),Je.innerHTML=Wo,ht=o(),c(ge.$$.fragment),_t=o(),D=r("div"),c(pe.$$.fragment),go=o(),Ye=r("p"),Ye.innerHTML=Oo,vt=o(),c(me.$$.fragment),bt=o(),Ke=r("p"),this.h()},l(e){const a=Xo("svelte-u9bgzb",document.head);b=s(a,"META",{name:!0,content:!0}),a.forEach(n),U=i(e),F=s(e,"P",{}),$(F).forEach(n),he=i(e),u(V.$$.fragment,e),Xe=i(e),Z=s(e,"P",{"data-svelte-h":!0}),l(Z)!=="svelte-ybejk6"&&(Z.textContent=po),et=i(e),u(W.$$.fragment,e),tt=i(e),_=s(e,"DIV",{class:!0});var w=$(_);u(O.$$.fragment,w),St=i(w),_e=s(w,"P",{"data-svelte-h":!0}),l(_e)!=="svelte-12un9fg"&&(_e.textContent=mo),Lt=i(w),M=s(w,"DIV",{class:!0});var xt=$(M);u(J.$$.fragment,xt),Ft=i(xt),ve=s(xt,"P",{"data-svelte-h":!0}),l(ve)!=="svelte-9t9sns"&&(ve.innerHTML=ho),xt.forEach(n),Pt=i(w),P=s(w,"DIV",{class:!0});var Re=$(P);u(Y.$$.fragment,Re),At=i(Re),be=s(Re,"P",{"data-svelte-h":!0}),l(be)!=="svelte-17q0wdp"&&(be.textContent=_o),Ht=i(Re),u(E.$$.fragment,Re),Re.forEach(n),qt=i(w),B=s(w,"DIV",{class:!0});var wt=$(B);u(R.$$.fragment,wt),Dt=i(wt),ye=s(wt,"P",{"data-svelte-h":!0}),l(ye)!=="svelte-finagn"&&(ye.textContent=vo),wt.forEach(n),Mt=i(w),I=s(w,"DIV",{class:!0});var $t=$(I);u(K.$$.fragment,$t),Et=i($t),xe=s($t,"P",{"data-svelte-h":!0}),l(xe)!=="svelte-1sb1pyy"&&(xe.innerHTML=bo),$t.forEach(n),Bt=i(w),j=s(w,"DIV",{class:!0});var Gt=$(j);u(Q.$$.fragment,Gt),It=i(Gt),we=s(Gt,"P",{"data-svelte-h":!0}),l(we)!=="svelte-1psn8kq"&&(we.innerHTML=yo),Gt.forEach(n),w.forEach(n),ot=i(e),u(X.$$.fragment,e),it=i(e),y=s(e,"DIV",{class:!0});var S=$(y);u(ee.$$.fragment,S),jt=i(S),$e=s(S,"P",{"data-svelte-h":!0}),l($e)!=="svelte-cef4ke"&&($e.innerHTML=xo),Nt=i(S),Ge=s(S,"P",{"data-svelte-h":!0}),l(Ge)!=="svelte-1le0cfq"&&(Ge.textContent=wo),zt=i(S),Te=s(S,"P",{"data-svelte-h":!0}),l(Te)!=="svelte-c1mvns"&&(Te.innerHTML=$o),Ut=i(S),Ce=s(S,"P",{"data-svelte-h":!0}),l(Ce)!=="svelte-l7mg1d"&&(Ce.textContent=Go),Vt=i(S),ke=s(S,"P",{"data-svelte-h":!0}),l(ke)!=="svelte-v3xasa"&&(ke.innerHTML=To),S.forEach(n),nt=i(e),u(te.$$.fragment,e),at=i(e),C=s(e,"DIV",{class:!0});var N=$(C);u(oe.$$.fragment,N),Zt=i(N),Se=s(N,"P",{"data-svelte-h":!0}),l(Se)!=="svelte-1hi356a"&&(Se.innerHTML=Co),Wt=i(N),Le=s(N,"P",{"data-svelte-h":!0}),l(Le)!=="svelte-i1r8um"&&(Le.textContent=ko),Ot=i(N),Fe=s(N,"P",{"data-svelte-h":!0}),l(Fe)!=="svelte-6r1q6g"&&(Fe.textContent=So),N.forEach(n),rt=i(e),u(ie.$$.fragment,e),st=i(e),h=s(e,"DIV",{class:!0});var v=$(h);u(ne.$$.fragment,v),Jt=i(v),Pe=s(v,"P",{"data-svelte-h":!0}),l(Pe)!=="svelte-olo6nk"&&(Pe.innerHTML=Lo),Yt=i(v),Ae=s(v,"P",{"data-svelte-h":!0}),l(Ae)!=="svelte-9gv3up"&&(Ae.innerHTML=Fo),Rt=i(v),He=s(v,"P",{"data-svelte-h":!0}),l(He)!=="svelte-1wesk73"&&(He.textContent=Po),Kt=i(v),qe=s(v,"P",{"data-svelte-h":!0}),l(qe)!=="svelte-mjex08"&&(qe.textContent=Ao),Qt=i(v),De=s(v,"P",{"data-svelte-h":!0}),l(De)!=="svelte-ytfov5"&&(De.textContent=Ho),Xt=i(v),Me=s(v,"P",{"data-svelte-h":!0}),l(Me)!=="svelte-g5irbt"&&(Me.textContent=qo),eo=i(v),Ee=s(v,"UL",{"data-svelte-h":!0}),l(Ee)!=="svelte-1qz5dw8"&&(Ee.innerHTML=Do),to=i(v),Be=s(v,"P",{"data-svelte-h":!0}),l(Be)!=="svelte-133syuz"&&(Be.innerHTML=Mo),v.forEach(n),dt=i(e),u(ae.$$.fragment,e),lt=i(e),k=s(e,"DIV",{class:!0});var z=$(k);u(re.$$.fragment,z),oo=i(z),Ie=s(z,"P",{"data-svelte-h":!0}),l(Ie)!=="svelte-g8e9eu"&&(Ie.innerHTML=Eo),io=i(z),je=s(z,"P",{"data-svelte-h":!0}),l(je)!=="svelte-1xzzhid"&&(je.textContent=Bo),no=i(z),Ne=s(z,"UL",{"data-svelte-h":!0}),l(Ne)!=="svelte-x901y0"&&(Ne.innerHTML=Io),z.forEach(n),ct=i(e),u(se.$$.fragment,e),ut=i(e),x=s(e,"DIV",{class:!0});var L=$(x);u(de.$$.fragment,L),ao=i(L),ze=s(L,"P",{"data-svelte-h":!0}),l(ze)!=="svelte-1xgk0w9"&&(ze.innerHTML=jo),ro=i(L),Ue=s(L,"P",{"data-svelte-h":!0}),l(Ue)!=="svelte-8jegxw"&&(Ue.textContent=No),so=i(L),Ve=s(L,"P",{"data-svelte-h":!0}),l(Ve)!=="svelte-g5irbt"&&(Ve.textContent=zo),lo=i(L),Ze=s(L,"UL",{"data-svelte-h":!0}),l(Ze)!=="svelte-1qz5dw8"&&(Ze.innerHTML=Uo),co=i(L),We=s(L,"P",{"data-svelte-h":!0}),l(We)!=="svelte-emkxpt"&&(We.textContent=Vo),L.forEach(n),ft=i(e),u(le.$$.fragment,e),gt=i(e),H=s(e,"DIV",{class:!0});var Tt=$(H);u(ce.$$.fragment,Tt),uo=i(Tt),Oe=s(Tt,"P",{"data-svelte-h":!0}),l(Oe)!=="svelte-1eqebqq"&&(Oe.innerHTML=Zo),Tt.forEach(n),pt=i(e),u(ue.$$.fragment,e),mt=i(e),q=s(e,"DIV",{class:!0});var Ct=$(q);u(fe.$$.fragment,Ct),fo=i(Ct),Je=s(Ct,"P",{"data-svelte-h":!0}),l(Je)!=="svelte-rbymam"&&(Je.innerHTML=Wo),Ct.forEach(n),ht=i(e),u(ge.$$.fragment,e),_t=i(e),D=s(e,"DIV",{class:!0});var kt=$(D);u(pe.$$.fragment,kt),go=i(kt),Ye=s(kt,"P",{"data-svelte-h":!0}),l(Ye)!=="svelte-1s37jjw"&&(Ye.innerHTML=Oo),kt.forEach(n),vt=i(e),u(me.$$.fragment,e),bt=i(e),Ke=s(e,"P",{}),$(Ke).forEach(n),this.h()},h(){G(b,"name","hf:doc:metadata"),G(b,"content",ni),G(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),G(D,"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,a){t(document.head,b),d(e,U,a),d(e,F,a),d(e,he,a),f(V,e,a),d(e,Xe,a),d(e,Z,a),d(e,et,a),f(W,e,a),d(e,tt,a),d(e,_,a),f(O,_,null),t(_,St),t(_,_e),t(_,Lt),t(_,M),f(J,M,null),t(M,Ft),t(M,ve),t(_,Pt),t(_,P),f(Y,P,null),t(P,At),t(P,be),t(P,Ht),f(E,P,null),t(_,qt),t(_,B),f(R,B,null),t(B,Dt),t(B,ye),t(_,Mt),t(_,I),f(K,I,null),t(I,Et),t(I,xe),t(_,Bt),t(_,j),f(Q,j,null),t(j,It),t(j,we),d(e,ot,a),f(X,e,a),d(e,it,a),d(e,y,a),f(ee,y,null),t(y,jt),t(y,$e),t(y,Nt),t(y,Ge),t(y,zt),t(y,Te),t(y,Ut),t(y,Ce),t(y,Vt),t(y,ke),d(e,nt,a),f(te,e,a),d(e,at,a),d(e,C,a),f(oe,C,null),t(C,Zt),t(C,Se),t(C,Wt),t(C,Le),t(C,Ot),t(C,Fe),d(e,rt,a),f(ie,e,a),d(e,st,a),d(e,h,a),f(ne,h,null),t(h,Jt),t(h,Pe),t(h,Yt),t(h,Ae),t(h,Rt),t(h,He),t(h,Kt),t(h,qe),t(h,Qt),t(h,De),t(h,Xt),t(h,Me),t(h,eo),t(h,Ee),t(h,to),t(h,Be),d(e,dt,a),f(ae,e,a),d(e,lt,a),d(e,k,a),f(re,k,null),t(k,oo),t(k,Ie),t(k,io),t(k,je),t(k,no),t(k,Ne),d(e,ct,a),f(se,e,a),d(e,ut,a),d(e,x,a),f(de,x,null),t(x,ao),t(x,ze),t(x,ro),t(x,Ue),t(x,so),t(x,Ve),t(x,lo),t(x,Ze),t(x,co),t(x,We),d(e,ft,a),f(le,e,a),d(e,gt,a),d(e,H,a),f(ce,H,null),t(H,uo),t(H,Oe),d(e,pt,a),f(ue,e,a),d(e,mt,a),d(e,q,a),f(fe,q,null),t(q,fo),t(q,Je),d(e,ht,a),f(ge,e,a),d(e,_t,a),d(e,D,a),f(pe,D,null),t(D,go),t(D,Ye),d(e,vt,a),f(me,e,a),d(e,bt,a),d(e,Ke,a),yt=!0},p(e,[a]){const w={};a&2&&(w.$$scope={dirty:a,ctx:e}),E.$set(w)},i(e){yt||(g(V.$$.fragment,e),g(W.$$.fragment,e),g(O.$$.fragment,e),g(J.$$.fragment,e),g(Y.$$.fragment,e),g(E.$$.fragment,e),g(R.$$.fragment,e),g(K.$$.fragment,e),g(Q.$$.fragment,e),g(X.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(oe.$$.fragment,e),g(ie.$$.fragment,e),g(ne.$$.fragment,e),g(ae.$$.fragment,e),g(re.$$.fragment,e),g(se.$$.fragment,e),g(de.$$.fragment,e),g(le.$$.fragment,e),g(ce.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(ge.$$.fragment,e),g(pe.$$.fragment,e),g(me.$$.fragment,e),yt=!0)},o(e){p(V.$$.fragment,e),p(W.$$.fragment,e),p(O.$$.fragment,e),p(J.$$.fragment,e),p(Y.$$.fragment,e),p(E.$$.fragment,e),p(R.$$.fragment,e),p(K.$$.fragment,e),p(Q.$$.fragment,e),p(X.$$.fragment,e),p(ee.$$.fragment,e),p(te.$$.fragment,e),p(oe.$$.fragment,e),p(ie.$$.fragment,e),p(ne.$$.fragment,e),p(ae.$$.fragment,e),p(re.$$.fragment,e),p(se.$$.fragment,e),p(de.$$.fragment,e),p(le.$$.fragment,e),p(ce.$$.fragment,e),p(ue.$$.fragment,e),p(fe.$$.fragment,e),p(ge.$$.fragment,e),p(pe.$$.fragment,e),p(me.$$.fragment,e),yt=!1},d(e){e&&(n(U),n(F),n(he),n(Xe),n(Z),n(et),n(tt),n(_),n(ot),n(it),n(y),n(nt),n(at),n(C),n(rt),n(st),n(h),n(dt),n(lt),n(k),n(ct),n(ut),n(x),n(ft),n(gt),n(H),n(pt),n(mt),n(q),n(ht),n(_t),n(D),n(vt),n(bt),n(Ke)),n(b),m(V,e),m(W,e),m(O),m(J),m(Y),m(E),m(R),m(K),m(Q),m(X,e),m(ee),m(te,e),m(oe),m(ie,e),m(ne),m(ae,e),m(re),m(se,e),m(de),m(le,e),m(ce),m(ue,e),m(fe),m(ge,e),m(pe),m(me,e)}}}const ni='{"title":"Guiders","local":"guiders","sections":[{"title":"BaseGuidance","local":"diffusers.guiders.guider_utils.BaseGuidance","sections":[],"depth":2},{"title":"ClassifierFreeGuidance","local":"diffusers.ClassifierFreeGuidance","sections":[],"depth":2},{"title":"ClassifierFreeZeroStarGuidance","local":"diffusers.ClassifierFreeZeroStarGuidance","sections":[],"depth":2},{"title":"SkipLayerGuidance","local":"diffusers.SkipLayerGuidance","sections":[],"depth":2},{"title":"SmoothedEnergyGuidance","local":"diffusers.SmoothedEnergyGuidance","sections":[],"depth":2},{"title":"PerturbedAttentionGuidance","local":"diffusers.PerturbedAttentionGuidance","sections":[],"depth":2},{"title":"AdaptiveProjectedGuidance","local":"diffusers.AdaptiveProjectedGuidance","sections":[],"depth":2},{"title":"AutoGuidance","local":"diffusers.AutoGuidance","sections":[],"depth":2},{"title":"TangentialClassifierFreeGuidance","local":"diffusers.TangentialClassifierFreeGuidance","sections":[],"depth":2}],"depth":1}';function ai(Qe){return Yo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ui extends Ko{constructor(b){super(),Qo(this,b,ai,ii,Jo,{})}}export{ui as component};
