import{s as Qo,n as Ro,o as Xo}from"../chunks/scheduler.53228c21.js";import{S as ei,i as ti,e as a,s as o,c,h as oi,a as r,d as n,b as i,f as w,g as u,j as l,k as x,l as t,m as d,n as f,t as g,o as p,p as m}from"../chunks/index.100fac89.js";import{C as ii}from"../chunks/CopyLLMTxtMenu.b0ff86f3.js";import{D as G}from"../chunks/Docstring.db856a1e.js";import{H as F,E as ni}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.136ef3fd.js";function ai(mo){let P,Qe,Ye,Re,N,Xe,z,et,U,ho="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.",tt,V,ot,_,Z,Lt,me,_o="Base class providing the skeleton for implementing guidance techniques.",Ft,D,W,Pt,he,vo=`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>.`,At,L,O,Ht,_e,bo="Instantiate a guider from a pre-defined JSON configuration file in a local directory or Hub repository.",qt,J,yo=`<p>&gt; 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 &gt; auth login</code>. You can also activate the special &gt;
<a href="https://huggingface.co/diffusers/installation.html#offline-mode" rel="nofollow">“offline-mode”</a> to use this method in a &gt;
firewalled environment.</p>`,Dt,M,Y,Mt,ve,xo=`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.`,Et,E,K,Bt,be,wo=`Save a guider configuration object to a directory so that it can be reloaded using the
<code>~BaseGuidance.from_pretrained</code> class method.`,It,B,Q,jt,ye,$o=`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.`,it,R,nt,b,X,Nt,xe,Go='Classifier-free guidance (CFG): <a href="https://huggingface.co/papers/2207.12598" rel="nofollow">https://huggingface.co/papers/2207.12598</a>',zt,we,Co=`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)]`,Ut,$e,To=`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)]`,Vt,Ge,So=`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.)`,Zt,Ce,ko=`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.`,at,ee,rt,C,te,Wt,Te,Lo='Classifier-free Zero<em>(CFG-Zero</em>): <a href="https://huggingface.co/papers/2503.18886" rel="nofollow">https://huggingface.co/papers/2503.18886</a>',Ot,Se,Fo=`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.`,Jt,ke,Po="The authors of the paper suggest setting zero initialization in the first 4% of the inference steps.",st,oe,dt,h,ie,Yt,Le,Ao='Skip Layer Guidance (SLG): <a href="https://github.com/Stability-AI/sd3.5" rel="nofollow">https://github.com/Stability-AI/sd3.5</a>',Kt,Fe,Ho='Spatio-Temporal Guidance (STG): <a href="https://huggingface.co/papers/2411.18664" rel="nofollow">https://huggingface.co/papers/2411.18664</a>',Qt,Pe,qo=`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.`,Rt,Ae,Do=`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).`,Xt,He,Mo=`STG is an improvement and follow-up work combining ideas from SLG, PAG and similar techniques for improving
generation quality in video diffusion models.`,eo,qe,Eo="Additional reading:",to,De,Bo='<li><a href="https://huggingface.co/papers/2406.02507" rel="nofollow">Guiding a Diffusion Model with a Bad Version of Itself</a></li>',oo,Me,Io=`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.`,lt,ne,ct,T,ae,io,Ee,jo='Smoothed Energy Guidance (SEG): <a href="https://huggingface.co/papers/2408.00760" rel="nofollow">https://huggingface.co/papers/2408.00760</a>',no,Be,No=`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:`,ao,Ie,zo=`<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>`,ut,re,ft,y,se,ro,je,Uo='Perturbed Attention Guidance (PAG): <a href="https://huggingface.co/papers/2403.17377" rel="nofollow">https://huggingface.co/papers/2403.17377</a>',so,Ne,Vo=`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.`,lo,ze,Zo="Additional reading:",co,Ue,Wo='<li><a href="https://huggingface.co/papers/2406.02507" rel="nofollow">Guiding a Diffusion Model with a Bad Version of Itself</a></li>',uo,Ve,Oo=`PAG is implemented with similar implementation to SkipLayerGuidance due to overlap in the configuration parameters
and implementation details.`,gt,de,pt,A,le,fo,Ze,Jo='Adaptive Projected Guidance (APG): <a href="https://huggingface.co/papers/2410.02416" rel="nofollow">https://huggingface.co/papers/2410.02416</a>',mt,ce,ht,H,ue,go,We,Yo='AutoGuidance: <a href="https://huggingface.co/papers/2406.02507" rel="nofollow">https://huggingface.co/papers/2406.02507</a>',_t,fe,vt,q,ge,po,Oe,Ko='Tangential Classifier Free Guidance (TCFG): <a href="https://huggingface.co/papers/2503.18137" rel="nofollow">https://huggingface.co/papers/2503.18137</a>',bt,pe,yt,Ke,xt;return N=new ii({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),z=new F({props:{title:"Guiders",local:"guiders",headingTag:"h1"}}),V=new F({props:{title:"BaseGuidance",local:"diffusers.guiders.guider_utils.BaseGuidance",headingTag:"h2"}}),Z=new G({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"}}),W=new G({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"}}),O=new G({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"}}),Y=new G({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 G({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#L265"}}),Q=new G({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"}}),R=new F({props:{title:"ClassifierFreeGuidance",local:"diffusers.ClassifierFreeGuidance",headingTag:"h2"}}),X=new G({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"}}),ee=new F({props:{title:"ClassifierFreeZeroStarGuidance",local:"diffusers.ClassifierFreeZeroStarGuidance",headingTag:"h2"}}),te=new G({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"}}),oe=new F({props:{title:"SkipLayerGuidance",local:"diffusers.SkipLayerGuidance",headingTag:"h2"}}),ie=new G({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"}}),ne=new F({props:{title:"SmoothedEnergyGuidance",local:"diffusers.SmoothedEnergyGuidance",headingTag:"h2"}}),ae=new G({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"}}),re=new F({props:{title:"PerturbedAttentionGuidance",local:"diffusers.PerturbedAttentionGuidance",headingTag:"h2"}}),se=new G({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"}}),de=new F({props:{title:"AdaptiveProjectedGuidance",local:"diffusers.AdaptiveProjectedGuidance",headingTag:"h2"}}),le=new G({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"}}),ce=new F({props:{title:"AutoGuidance",local:"diffusers.AutoGuidance",headingTag:"h2"}}),ue=new G({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"}}),fe=new F({props:{title:"TangentialClassifierFreeGuidance",local:"diffusers.TangentialClassifierFreeGuidance",headingTag:"h2"}}),ge=new G({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"}}),pe=new ni({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/guiders.md"}}),{c(){P=a("meta"),Qe=o(),Ye=a("p"),Re=o(),c(N.$$.fragment),Xe=o(),c(z.$$.fragment),et=o(),U=a("p"),U.textContent=ho,tt=o(),c(V.$$.fragment),ot=o(),_=a("div"),c(Z.$$.fragment),Lt=o(),me=a("p"),me.textContent=_o,Ft=o(),D=a("div"),c(W.$$.fragment),Pt=o(),he=a("p"),he.innerHTML=vo,At=o(),L=a("div"),c(O.$$.fragment),Ht=o(),_e=a("p"),_e.textContent=bo,qt=o(),J=a("blockquote"),J.innerHTML=yo,Dt=o(),M=a("div"),c(Y.$$.fragment),Mt=o(),ve=a("p"),ve.textContent=xo,Et=o(),E=a("div"),c(K.$$.fragment),Bt=o(),be=a("p"),be.innerHTML=wo,It=o(),B=a("div"),c(Q.$$.fragment),jt=o(),ye=a("p"),ye.innerHTML=$o,it=o(),c(R.$$.fragment),nt=o(),b=a("div"),c(X.$$.fragment),Nt=o(),xe=a("p"),xe.innerHTML=Go,zt=o(),we=a("p"),we.textContent=Co,Ut=o(),$e=a("p"),$e.innerHTML=To,Vt=o(),Ge=a("p"),Ge.textContent=So,Zt=o(),Ce=a("p"),Ce.innerHTML=ko,at=o(),c(ee.$$.fragment),rt=o(),C=a("div"),c(te.$$.fragment),Wt=o(),Te=a("p"),Te.innerHTML=Lo,Ot=o(),Se=a("p"),Se.textContent=Fo,Jt=o(),ke=a("p"),ke.textContent=Po,st=o(),c(oe.$$.fragment),dt=o(),h=a("div"),c(ie.$$.fragment),Yt=o(),Le=a("p"),Le.innerHTML=Ao,Kt=o(),Fe=a("p"),Fe.innerHTML=Ho,Qt=o(),Pe=a("p"),Pe.textContent=qo,Rt=o(),Ae=a("p"),Ae.textContent=Do,Xt=o(),He=a("p"),He.textContent=Mo,eo=o(),qe=a("p"),qe.textContent=Eo,to=o(),De=a("ul"),De.innerHTML=Bo,oo=o(),Me=a("p"),Me.innerHTML=Io,lt=o(),c(ne.$$.fragment),ct=o(),T=a("div"),c(ae.$$.fragment),io=o(),Ee=a("p"),Ee.innerHTML=jo,no=o(),Be=a("p"),Be.textContent=No,ao=o(),Ie=a("ul"),Ie.innerHTML=zo,ut=o(),c(re.$$.fragment),ft=o(),y=a("div"),c(se.$$.fragment),ro=o(),je=a("p"),je.innerHTML=Uo,so=o(),Ne=a("p"),Ne.textContent=Vo,lo=o(),ze=a("p"),ze.textContent=Zo,co=o(),Ue=a("ul"),Ue.innerHTML=Wo,uo=o(),Ve=a("p"),Ve.textContent=Oo,gt=o(),c(de.$$.fragment),pt=o(),A=a("div"),c(le.$$.fragment),fo=o(),Ze=a("p"),Ze.innerHTML=Jo,mt=o(),c(ce.$$.fragment),ht=o(),H=a("div"),c(ue.$$.fragment),go=o(),We=a("p"),We.innerHTML=Yo,_t=o(),c(fe.$$.fragment),vt=o(),q=a("div"),c(ge.$$.fragment),po=o(),Oe=a("p"),Oe.innerHTML=Ko,bt=o(),c(pe.$$.fragment),yt=o(),Ke=a("p"),this.h()},l(e){const s=oi("svelte-u9bgzb",document.head);P=r(s,"META",{name:!0,content:!0}),s.forEach(n),Qe=i(e),Ye=r(e,"P",{}),w(Ye).forEach(n),Re=i(e),u(N.$$.fragment,e),Xe=i(e),u(z.$$.fragment,e),et=i(e),U=r(e,"P",{"data-svelte-h":!0}),l(U)!=="svelte-ybejk6"&&(U.textContent=ho),tt=i(e),u(V.$$.fragment,e),ot=i(e),_=r(e,"DIV",{class:!0});var $=w(_);u(Z.$$.fragment,$),Lt=i($),me=r($,"P",{"data-svelte-h":!0}),l(me)!=="svelte-12un9fg"&&(me.textContent=_o),Ft=i($),D=r($,"DIV",{class:!0});var wt=w(D);u(W.$$.fragment,wt),Pt=i(wt),he=r(wt,"P",{"data-svelte-h":!0}),l(he)!=="svelte-9t9sns"&&(he.innerHTML=vo),wt.forEach(n),At=i($),L=r($,"DIV",{class:!0});var Je=w(L);u(O.$$.fragment,Je),Ht=i(Je),_e=r(Je,"P",{"data-svelte-h":!0}),l(_e)!=="svelte-17q0wdp"&&(_e.textContent=bo),qt=i(Je),J=r(Je,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),l(J)!=="svelte-82moo4"&&(J.innerHTML=yo),Je.forEach(n),Dt=i($),M=r($,"DIV",{class:!0});var $t=w(M);u(Y.$$.fragment,$t),Mt=i($t),ve=r($t,"P",{"data-svelte-h":!0}),l(ve)!=="svelte-finagn"&&(ve.textContent=xo),$t.forEach(n),Et=i($),E=r($,"DIV",{class:!0});var Gt=w(E);u(K.$$.fragment,Gt),Bt=i(Gt),be=r(Gt,"P",{"data-svelte-h":!0}),l(be)!=="svelte-1sb1pyy"&&(be.innerHTML=wo),Gt.forEach(n),It=i($),B=r($,"DIV",{class:!0});var Ct=w(B);u(Q.$$.fragment,Ct),jt=i(Ct),ye=r(Ct,"P",{"data-svelte-h":!0}),l(ye)!=="svelte-1psn8kq"&&(ye.innerHTML=$o),Ct.forEach(n),$.forEach(n),it=i(e),u(R.$$.fragment,e),nt=i(e),b=r(e,"DIV",{class:!0});var S=w(b);u(X.$$.fragment,S),Nt=i(S),xe=r(S,"P",{"data-svelte-h":!0}),l(xe)!=="svelte-cef4ke"&&(xe.innerHTML=Go),zt=i(S),we=r(S,"P",{"data-svelte-h":!0}),l(we)!=="svelte-1le0cfq"&&(we.textContent=Co),Ut=i(S),$e=r(S,"P",{"data-svelte-h":!0}),l($e)!=="svelte-c1mvns"&&($e.innerHTML=To),Vt=i(S),Ge=r(S,"P",{"data-svelte-h":!0}),l(Ge)!=="svelte-l7mg1d"&&(Ge.textContent=So),Zt=i(S),Ce=r(S,"P",{"data-svelte-h":!0}),l(Ce)!=="svelte-v3xasa"&&(Ce.innerHTML=ko),S.forEach(n),at=i(e),u(ee.$$.fragment,e),rt=i(e),C=r(e,"DIV",{class:!0});var I=w(C);u(te.$$.fragment,I),Wt=i(I),Te=r(I,"P",{"data-svelte-h":!0}),l(Te)!=="svelte-1hi356a"&&(Te.innerHTML=Lo),Ot=i(I),Se=r(I,"P",{"data-svelte-h":!0}),l(Se)!=="svelte-i1r8um"&&(Se.textContent=Fo),Jt=i(I),ke=r(I,"P",{"data-svelte-h":!0}),l(ke)!=="svelte-6r1q6g"&&(ke.textContent=Po),I.forEach(n),st=i(e),u(oe.$$.fragment,e),dt=i(e),h=r(e,"DIV",{class:!0});var v=w(h);u(ie.$$.fragment,v),Yt=i(v),Le=r(v,"P",{"data-svelte-h":!0}),l(Le)!=="svelte-olo6nk"&&(Le.innerHTML=Ao),Kt=i(v),Fe=r(v,"P",{"data-svelte-h":!0}),l(Fe)!=="svelte-9gv3up"&&(Fe.innerHTML=Ho),Qt=i(v),Pe=r(v,"P",{"data-svelte-h":!0}),l(Pe)!=="svelte-1wesk73"&&(Pe.textContent=qo),Rt=i(v),Ae=r(v,"P",{"data-svelte-h":!0}),l(Ae)!=="svelte-mjex08"&&(Ae.textContent=Do),Xt=i(v),He=r(v,"P",{"data-svelte-h":!0}),l(He)!=="svelte-ytfov5"&&(He.textContent=Mo),eo=i(v),qe=r(v,"P",{"data-svelte-h":!0}),l(qe)!=="svelte-g5irbt"&&(qe.textContent=Eo),to=i(v),De=r(v,"UL",{"data-svelte-h":!0}),l(De)!=="svelte-1qz5dw8"&&(De.innerHTML=Bo),oo=i(v),Me=r(v,"P",{"data-svelte-h":!0}),l(Me)!=="svelte-133syuz"&&(Me.innerHTML=Io),v.forEach(n),lt=i(e),u(ne.$$.fragment,e),ct=i(e),T=r(e,"DIV",{class:!0});var j=w(T);u(ae.$$.fragment,j),io=i(j),Ee=r(j,"P",{"data-svelte-h":!0}),l(Ee)!=="svelte-g8e9eu"&&(Ee.innerHTML=jo),no=i(j),Be=r(j,"P",{"data-svelte-h":!0}),l(Be)!=="svelte-1xzzhid"&&(Be.textContent=No),ao=i(j),Ie=r(j,"UL",{"data-svelte-h":!0}),l(Ie)!=="svelte-x901y0"&&(Ie.innerHTML=zo),j.forEach(n),ut=i(e),u(re.$$.fragment,e),ft=i(e),y=r(e,"DIV",{class:!0});var k=w(y);u(se.$$.fragment,k),ro=i(k),je=r(k,"P",{"data-svelte-h":!0}),l(je)!=="svelte-1xgk0w9"&&(je.innerHTML=Uo),so=i(k),Ne=r(k,"P",{"data-svelte-h":!0}),l(Ne)!=="svelte-8jegxw"&&(Ne.textContent=Vo),lo=i(k),ze=r(k,"P",{"data-svelte-h":!0}),l(ze)!=="svelte-g5irbt"&&(ze.textContent=Zo),co=i(k),Ue=r(k,"UL",{"data-svelte-h":!0}),l(Ue)!=="svelte-1qz5dw8"&&(Ue.innerHTML=Wo),uo=i(k),Ve=r(k,"P",{"data-svelte-h":!0}),l(Ve)!=="svelte-emkxpt"&&(Ve.textContent=Oo),k.forEach(n),gt=i(e),u(de.$$.fragment,e),pt=i(e),A=r(e,"DIV",{class:!0});var Tt=w(A);u(le.$$.fragment,Tt),fo=i(Tt),Ze=r(Tt,"P",{"data-svelte-h":!0}),l(Ze)!=="svelte-1eqebqq"&&(Ze.innerHTML=Jo),Tt.forEach(n),mt=i(e),u(ce.$$.fragment,e),ht=i(e),H=r(e,"DIV",{class:!0});var St=w(H);u(ue.$$.fragment,St),go=i(St),We=r(St,"P",{"data-svelte-h":!0}),l(We)!=="svelte-rbymam"&&(We.innerHTML=Yo),St.forEach(n),_t=i(e),u(fe.$$.fragment,e),vt=i(e),q=r(e,"DIV",{class:!0});var kt=w(q);u(ge.$$.fragment,kt),po=i(kt),Oe=r(kt,"P",{"data-svelte-h":!0}),l(Oe)!=="svelte-1s37jjw"&&(Oe.innerHTML=Ko),kt.forEach(n),bt=i(e),u(pe.$$.fragment,e),yt=i(e),Ke=r(e,"P",{}),w(Ke).forEach(n),this.h()},h(){x(P,"name","hf:doc:metadata"),x(P,"content",ri),x(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","tip"),x(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(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,s){t(document.head,P),d(e,Qe,s),d(e,Ye,s),d(e,Re,s),f(N,e,s),d(e,Xe,s),f(z,e,s),d(e,et,s),d(e,U,s),d(e,tt,s),f(V,e,s),d(e,ot,s),d(e,_,s),f(Z,_,null),t(_,Lt),t(_,me),t(_,Ft),t(_,D),f(W,D,null),t(D,Pt),t(D,he),t(_,At),t(_,L),f(O,L,null),t(L,Ht),t(L,_e),t(L,qt),t(L,J),t(_,Dt),t(_,M),f(Y,M,null),t(M,Mt),t(M,ve),t(_,Et),t(_,E),f(K,E,null),t(E,Bt),t(E,be),t(_,It),t(_,B),f(Q,B,null),t(B,jt),t(B,ye),d(e,it,s),f(R,e,s),d(e,nt,s),d(e,b,s),f(X,b,null),t(b,Nt),t(b,xe),t(b,zt),t(b,we),t(b,Ut),t(b,$e),t(b,Vt),t(b,Ge),t(b,Zt),t(b,Ce),d(e,at,s),f(ee,e,s),d(e,rt,s),d(e,C,s),f(te,C,null),t(C,Wt),t(C,Te),t(C,Ot),t(C,Se),t(C,Jt),t(C,ke),d(e,st,s),f(oe,e,s),d(e,dt,s),d(e,h,s),f(ie,h,null),t(h,Yt),t(h,Le),t(h,Kt),t(h,Fe),t(h,Qt),t(h,Pe),t(h,Rt),t(h,Ae),t(h,Xt),t(h,He),t(h,eo),t(h,qe),t(h,to),t(h,De),t(h,oo),t(h,Me),d(e,lt,s),f(ne,e,s),d(e,ct,s),d(e,T,s),f(ae,T,null),t(T,io),t(T,Ee),t(T,no),t(T,Be),t(T,ao),t(T,Ie),d(e,ut,s),f(re,e,s),d(e,ft,s),d(e,y,s),f(se,y,null),t(y,ro),t(y,je),t(y,so),t(y,Ne),t(y,lo),t(y,ze),t(y,co),t(y,Ue),t(y,uo),t(y,Ve),d(e,gt,s),f(de,e,s),d(e,pt,s),d(e,A,s),f(le,A,null),t(A,fo),t(A,Ze),d(e,mt,s),f(ce,e,s),d(e,ht,s),d(e,H,s),f(ue,H,null),t(H,go),t(H,We),d(e,_t,s),f(fe,e,s),d(e,vt,s),d(e,q,s),f(ge,q,null),t(q,po),t(q,Oe),d(e,bt,s),f(pe,e,s),d(e,yt,s),d(e,Ke,s),xt=!0},p:Ro,i(e){xt||(g(N.$$.fragment,e),g(z.$$.fragment,e),g(V.$$.fragment,e),g(Z.$$.fragment,e),g(W.$$.fragment,e),g(O.$$.fragment,e),g(Y.$$.fragment,e),g(K.$$.fragment,e),g(Q.$$.fragment,e),g(R.$$.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),xt=!0)},o(e){p(N.$$.fragment,e),p(z.$$.fragment,e),p(V.$$.fragment,e),p(Z.$$.fragment,e),p(W.$$.fragment,e),p(O.$$.fragment,e),p(Y.$$.fragment,e),p(K.$$.fragment,e),p(Q.$$.fragment,e),p(R.$$.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),xt=!1},d(e){e&&(n(Qe),n(Ye),n(Re),n(Xe),n(et),n(U),n(tt),n(ot),n(_),n(it),n(nt),n(b),n(at),n(rt),n(C),n(st),n(dt),n(h),n(lt),n(ct),n(T),n(ut),n(ft),n(y),n(gt),n(pt),n(A),n(mt),n(ht),n(H),n(_t),n(vt),n(q),n(bt),n(yt),n(Ke)),n(P),m(N,e),m(z,e),m(V,e),m(Z),m(W),m(O),m(Y),m(K),m(Q),m(R,e),m(X),m(ee,e),m(te),m(oe,e),m(ie),m(ne,e),m(ae),m(re,e),m(se),m(de,e),m(le),m(ce,e),m(ue),m(fe,e),m(ge),m(pe,e)}}}const ri='{"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 si(mo){return Xo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gi extends ei{constructor(P){super(),ti(this,P,si,ai,Qo,{})}}export{gi as component};
