import{S as on,i as sn,s as ln,e as n,k as r,w as T,t as d,M as rn,c as a,d as i,m as c,a as o,x as U,h as p,b as s,N as cn,G as t,g as f,y as j,L as dn,q as D,o as J,B as I,v as pn}from"../../../chunks/vendor-hf-doc-builder.js";import{D as fi}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as fn}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as $e}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function un(ui){let _,Be,b,P,he,Z,mt,ge,ht,Le,x,gt,W,_t,bt,Ze,ne,yt,We,ae,_e,vt,Ve,V,be,wt,Mt,Qe,E,ye,m,ve,St,Tt,we,Ut,jt,oe,Dt,Jt,se,It,Pt,Me,h,Se,Q,xt,Et,Te,Ue,Ct,kt,le,R,re,mi,At,ce,Y,Gt,Re,y,C,je,H,Nt,De,$t,Ye,de,z,Bt,pe,Lt,Zt,He,v,k,Je,O,Wt,Ie,Vt,ze,A,Qt,fe,Rt,Yt,Oe,X,Xe,ue,Ht,Fe,w,G,Pe,F,zt,xe,Ot,qe,M,q,Xt,Ee,Ft,Ke,S,N,Ce,K,qt,ke,Kt,et,u,ee,ei,Ae,ti,ii,te,ni,me,ai,oi,si,Ge,li,ri,$,ie,ci,Ne,di,tt;return Z=new $e({}),H=new $e({}),O=new $e({}),X=new fn({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU2VtYW50aWNTdGFibGVEaWZmdXNpb25QaXBlbGluZSUwQSUwQXBpcGUlMjAlM0QlMjBTZW1hbnRpY1N0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQW91dCUyMCUzRCUyMHBpcGUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTNEJTIyYSUyMHBob3RvJTIwb2YlMjB0aGUlMjBmYWNlJTIwb2YlMjBhJTIwd29tYW4lMjIlMkMlMEElMjAlMjAlMjAlMjBudW1faW1hZ2VzX3Blcl9wcm9tcHQlM0QxJTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2Vfc2NhbGUlM0Q3JTJDJTBBJTIwJTIwJTIwJTIwZWRpdGluZ19wcm9tcHQlM0QlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJzbWlsaW5nJTJDJTIwc21pbGUlMjIlMkMlMjAlMjAlMjMlMjBDb25jZXB0cyUyMHRvJTIwYXBwbHklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJnbGFzc2VzJTJDJTIwd2VhcmluZyUyMGdsYXNzZXMlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjdXJscyUyQyUyMHdhdnklMjBoYWlyJTJDJTIwY3VybHklMjBoYWlyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyYmVhcmQlMkMlMjBmdWxsJTIwYmVhcmQlMkMlMjBtdXN0YWNoZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMHJldmVyc2VfZWRpdGluZ19kaXJlY3Rpb24lM0QlNUJGYWxzZSUyQyUyMEZhbHNlJTJDJTIwRmFsc2UlMkMlMjBGYWxzZSU1RCUyQyUyMCUyMCUyMyUyMERpcmVjdGlvbiUyMG9mJTIwZ3VpZGFuY2UlMjBpLmUuJTIwaW5jcmVhc2UlMjBhbGwlMjBjb25jZXB0cyUwQSUyMCUyMCUyMCUyMGVkaXRfd2FybXVwX3N0ZXBzJTNEJTVCMTAlMkMlMjAxMCUyQyUyMDEwJTJDJTIwMTAlNUQlMkMlMjAlMjAlMjMlMjBXYXJtdXAlMjBwZXJpb2QlMjBmb3IlMjBlYWNoJTIwY29uY2VwdCUwQSUyMCUyMCUyMCUyMGVkaXRfZ3VpZGFuY2Vfc2NhbGUlM0QlNUI0JTJDJTIwNSUyQyUyMDUlMkMlMjA1LjQlNUQlMkMlMjAlMjAlMjMlMjBHdWlkYW5jZSUyMHNjYWxlJTIwZm9yJTIwZWFjaCUyMGNvbmNlcHQlMEElMjAlMjAlMjAlMjBlZGl0X3RocmVzaG9sZCUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMDAuOTklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAwLjk3NSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMDAuOTI1JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwMC45NiUyQyUwQSUyMCUyMCUyMCUyMCU1RCUyQyUyMCUyMCUyMyUyMFRocmVzaG9sZCUyMGZvciUyMGVhY2glMjBjb25jZXB0LiUyMFRocmVzaG9sZCUyMGVxdWFscyUyMHRoZSUyMHBlcmNlbnRpbGUlMjBvZiUyMHRoZSUyMGxhdGVudCUyMHNwYWNlJTIwdGhhdCUyMHdpbGwlMjBiZSUyMGRpc2NhcmRlZC4lMjBJLmUuJTIwdGhyZXNob2xkJTNEMC45OSUyMHVzZXMlMjAxJTI1JTIwb2YlMjB0aGUlMjBsYXRlbnQlMjBkaW1lbnNpb25zJTBBJTIwJTIwJTIwJTIwZWRpdF9tb21lbnR1bV9zY2FsZSUzRDAuMyUyQyUyMCUyMCUyMyUyME1vbWVudHVtJTIwc2NhbGUlMjB0aGF0JTIwd2lsbCUyMGJlJTIwYWRkZWQlMjB0byUyMHRoZSUyMGxhdGVudCUyMGd1aWRhbmNlJTBBJTIwJTIwJTIwJTIwZWRpdF9tb21fYmV0YSUzRDAuNiUyQyUyMCUyMCUyMyUyME1vbWVudHVtJTIwYmV0YSUwQSUyMCUyMCUyMCUyMGVkaXRfd2VpZ2h0cyUzRCU1QjElMkMlMjAxJTJDJTIwMSUyQyUyMDElMkMlMjAxJTVEJTJDJTIwJTIwJTIzJTIwV2VpZ2h0cyUyMG9mJTIwdGhlJTIwaW5kaXZpZHVhbCUyMGNvbmNlcHRzJTIwYWdhaW5zdCUyMGVhY2glMjBvdGhlciUwQSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> SemanticStableDiffusionPipeline

pipe = SemanticStableDiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, torch_dtype=torch.float16)
pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

out = pipe(
    prompt=<span class="hljs-string">&quot;a photo of the face of a woman&quot;</span>,
    num_images_per_prompt=<span class="hljs-number">1</span>,
    guidance_scale=<span class="hljs-number">7</span>,
    editing_prompt=[
        <span class="hljs-string">&quot;smiling, smile&quot;</span>,  <span class="hljs-comment"># Concepts to apply</span>
        <span class="hljs-string">&quot;glasses, wearing glasses&quot;</span>,
        <span class="hljs-string">&quot;curls, wavy hair, curly hair&quot;</span>,
        <span class="hljs-string">&quot;beard, full beard, mustache&quot;</span>,
    ],
    reverse_editing_direction=[<span class="hljs-literal">False</span>, <span class="hljs-literal">False</span>, <span class="hljs-literal">False</span>, <span class="hljs-literal">False</span>],  <span class="hljs-comment"># Direction of guidance i.e. increase all concepts</span>
    edit_warmup_steps=[<span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>],  <span class="hljs-comment"># Warmup period for each concept</span>
    edit_guidance_scale=[<span class="hljs-number">4</span>, <span class="hljs-number">5</span>, <span class="hljs-number">5</span>, <span class="hljs-number">5.4</span>],  <span class="hljs-comment"># Guidance scale for each concept</span>
    edit_threshold=[
        <span class="hljs-number">0.99</span>,
        <span class="hljs-number">0.975</span>,
        <span class="hljs-number">0.925</span>,
        <span class="hljs-number">0.96</span>,
    ],  <span class="hljs-comment"># Threshold for each concept. Threshold equals the percentile of the latent space that will be discarded. I.e. threshold=0.99 uses 1% of the latent dimensions</span>
    edit_momentum_scale=<span class="hljs-number">0.3</span>,  <span class="hljs-comment"># Momentum scale that will be added to the latent guidance</span>
    edit_mom_beta=<span class="hljs-number">0.6</span>,  <span class="hljs-comment"># Momentum beta</span>
    edit_weights=[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],  <span class="hljs-comment"># Weights of the individual concepts against each other</span>
)`}}),F=new $e({}),q=new fi({props:{name:"class diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput",anchor:"diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"},{name:"nsfw_content_detected",val:": typing.Optional[typing.List[bool]]"}],parametersDescription:[{anchor:"diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or numpy array of shape <code>(batch_size, height, width, num_channels)</code>. PIL images or numpy array present the denoised images of the diffusion pipeline.`,name:"images"},{anchor:"diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput.nsfw_content_detected",description:`<strong>nsfw_content_detected</strong> (<code>List[bool]</code>) &#x2014;
List of flags denoting whether the corresponding generated image likely represents &#x201C;not-safe-for-work&#x201D;
(nsfw) content, or <code>None</code> if safety checking could not be performed.`,name:"nsfw_content_detected"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/pipelines/semantic_stable_diffusion/__init__.py#L13"}}),K=new $e({}),ee=new fi({props:{name:"class diffusers.SemanticStableDiffusionPipeline",anchor:"diffusers.SemanticStableDiffusionPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPImageProcessor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.SemanticStableDiffusionPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.17.0/en/api/models#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.SemanticStableDiffusionPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
Frozen text-encoder. Stable Diffusion uses the text portion of
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIP</a>, specifically
the <a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a> variant.`,name:"text_encoder"},{anchor:"diffusers.SemanticStableDiffusionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.SemanticStableDiffusionPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.17.0/en/api/models#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.SemanticStableDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.17.0/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latens. Can be one of
<a href="/docs/diffusers/v0.17.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.17.0/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.17.0/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.SemanticStableDiffusionPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>Q16SafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.SemanticStableDiffusionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPImageProcessor</code>) &#x2014;
Model that extracts features from generated images to be used as inputs for the <code>safety_checker</code>.`,name:"feature_extractor"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py#L63"}}),ie=new fi({props:{name:"__call__",anchor:"diffusers.SemanticStableDiffusionPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"guidance_scale",val:": float = 7.5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = None"},{name:"callback_steps",val:": int = 1"},{name:"editing_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"editing_prompt_embeddings",val:": typing.Optional[torch.Tensor] = None"},{name:"reverse_editing_direction",val:": typing.Union[bool, typing.List[bool], NoneType] = False"},{name:"edit_guidance_scale",val:": typing.Union[float, typing.List[float], NoneType] = 5"},{name:"edit_warmup_steps",val:": typing.Union[int, typing.List[int], NoneType] = 10"},{name:"edit_cooldown_steps",val:": typing.Union[int, typing.List[int], NoneType] = None"},{name:"edit_threshold",val:": typing.Union[float, typing.List[float], NoneType] = 0.9"},{name:"edit_momentum_scale",val:": typing.Optional[float] = 0.1"},{name:"edit_mom_beta",val:": typing.Optional[float] = 0.4"},{name:"edit_weights",val:": typing.Optional[typing.List[float]] = None"},{name:"sem_guidance",val:": typing.Optional[typing.List[torch.Tensor]] = None"}],parametersDescription:[{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide the image generation.`,name:"prompt"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size * self.vae_scale_factor) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
Guidance scale as defined in <a href="https://arxiv.org/abs/2207.12598" rel="nofollow">Classifier-Free Diffusion Guidance</a>.
<code>guidance_scale</code> is defined as <code>w</code> of equation 2. of <a href="https://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen
Paper</a>. Guidance scale is enabled by setting <code>guidance_scale &gt; 1</code>. Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>,
usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) in the DDIM paper: <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">https://arxiv.org/abs/2010.02502</a>. Only applies to
<a href="/docs/diffusers/v0.17.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a>
to make generation deterministic.`,name:"generator"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generate image. Choose between
<a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.17.0/en/api/pipelines/stable_diffusion/overview#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that will be called every <code>callback_steps</code> steps during inference. The function will be
called with the following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function will be called. If not specified, the callback will be
called at every step.`,name:"callback_steps"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.editing_prompt",description:`<strong>editing_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to use for Semantic guidance. Semantic guidance is disabled by setting
<code>editing_prompt = None</code>. Guidance direction of prompt should be specified via
<code>reverse_editing_direction</code>.`,name:"editing_prompt"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.editing_prompt_embeddings",description:`<strong>editing_prompt_embeddings</strong> (<code>torch.Tensor&gt;</code>, <em>optional</em>) &#x2014;
Pre-computed embeddings to use for semantic guidance. Guidance direction of embedding should be
specified via <code>reverse_editing_direction</code>.`,name:"editing_prompt_embeddings"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.reverse_editing_direction",description:`<strong>reverse_editing_direction</strong> (<code>bool</code> or <code>List[bool]</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the corresponding prompt in <code>editing_prompt</code> should be increased or decreased.`,name:"reverse_editing_direction"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_guidance_scale",description:`<strong>edit_guidance_scale</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 5) &#x2014;
Guidance scale for semantic guidance. If provided as list values should correspond to <code>editing_prompt</code>.
<code>edit_guidance_scale</code> is defined as <code>s_e</code> of equation 6 of <a href="https://arxiv.org/pdf/2301.12247.pdf" rel="nofollow">SEGA
Paper</a>.`,name:"edit_guidance_scale"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_warmup_steps",description:`<strong>edit_warmup_steps</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 10) &#x2014;
Number of diffusion steps (for each prompt) for which semantic guidance will not be applied. Momentum
will still be calculated for those steps and applied once all warmup periods are over.
<code>edit_warmup_steps</code> is defined as <code>delta</code> (&#x3B4;) of <a href="https://arxiv.org/pdf/2301.12247.pdf" rel="nofollow">SEGA Paper</a>.`,name:"edit_warmup_steps"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_cooldown_steps",description:`<strong>edit_cooldown_steps</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of diffusion steps (for each prompt) after which semantic guidance will no longer be applied.`,name:"edit_cooldown_steps"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_threshold",description:`<strong>edit_threshold</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 0.9) &#x2014;
Threshold of semantic guidance.`,name:"edit_threshold"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_momentum_scale",description:`<strong>edit_momentum_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
Scale of the momentum to be added to the semantic guidance at each diffusion step. If set to 0.0
momentum will be disabled. Momentum is already built up during warmup, i.e. for diffusion steps smaller
than <code>sld_warmup_steps</code>. Momentum will only be added to latent guidance once all warmup periods are
finished. <code>edit_momentum_scale</code> is defined as <code>s_m</code> of equation 7 of <a href="https://arxiv.org/pdf/2301.12247.pdf" rel="nofollow">SEGA
Paper</a>.`,name:"edit_momentum_scale"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_mom_beta",description:`<strong>edit_mom_beta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.4) &#x2014;
Defines how semantic guidance momentum builds up. <code>edit_mom_beta</code> indicates how much of the previous
momentum will be kept. Momentum is already built up during warmup, i.e. for diffusion steps smaller
than <code>edit_warmup_steps</code>. <code>edit_mom_beta</code> is defined as <code>beta_m</code> (&#x3B2;) of equation 8 of <a href="https://arxiv.org/pdf/2301.12247.pdf" rel="nofollow">SEGA
Paper</a>.`,name:"edit_mom_beta"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.edit_weights",description:`<strong>edit_weights</strong> (<code>List[float]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Indicates how much each individual concept should influence the overall guidance. If no weights are
provided all concepts are applied equally. <code>edit_mom_beta</code> is defined as <code>g_i</code> of equation 9 of <a href="https://arxiv.org/pdf/2301.12247.pdf" rel="nofollow">SEGA
Paper</a>.`,name:"edit_weights"},{anchor:"diffusers.SemanticStableDiffusionPipeline.__call__.sem_guidance",description:`<strong>sem_guidance</strong> (<code>List[torch.Tensor]</code>, <em>optional</em>) &#x2014;
List of pre-generated guidance vectors to be applied at generation. Length of the list has to
correspond to <code>num_inference_steps</code>.`,name:"sem_guidance"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.0/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py#L250",returnDescription:`
<p><a
  href="/docs/diffusers/v0.17.0/en/api/pipelines/semantic_stable_diffusion#diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput"
>SemanticStableDiffusionPipelineOutput</a> if <code>return_dict</code> is True,
otherwise a <code>tuple. When returning a tuple, the first element is a list with the generated images, and the second element is a list of </code>bool<code>s denoting whether the corresponding generated image likely represents "not-safe-for-work" (nsfw) content, according to the </code>safety_checker\`.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/v0.17.0/en/api/pipelines/semantic_stable_diffusion#diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput"
>SemanticStableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),{c(){_=n("meta"),Be=r(),b=n("h1"),P=n("a"),he=n("span"),T(Z.$$.fragment),mt=r(),ge=n("span"),ht=d("Semantic Guidance"),Le=r(),x=n("p"),gt=d("Semantic Guidance for Diffusion Models was proposed in "),W=n("a"),_t=d("SEGA: Instructing Diffusion using Semantic Dimensions"),bt=d(` and provides strong semantic control over the image generation.
Small changes to the text prompt usually result in entirely different output images. However, with SEGA a variety of changes to the image are enabled that can be controlled easily and intuitively, and stay true to the original image composition.`),Ze=r(),ne=n("p"),yt=d("The abstract of the paper is the following:"),We=r(),ae=n("p"),_e=n("em"),vt=d("Text-to-image diffusion models have recently received a lot of interest for their astonishing ability to produce high-fidelity images from text only. However, achieving one-shot generation that aligns with the user\u2019s intent is nearly impossible, yet small changes to the input prompt often result in very different images. This leaves the user with little semantic control. To put the user in control, we show how to interact with the diffusion process to flexibly steer it along semantic directions. This semantic guidance (SEGA) allows for subtle and extensive edits, changes in composition and style, as well as optimizing the overall artistic conception. We demonstrate SEGA\u2019s effectiveness on a variety of tasks and provide evidence for its versatility and flexibility."),Ve=r(),V=n("p"),be=n("em"),wt=d("Overview"),Mt=d(":"),Qe=r(),E=n("table"),ye=n("thead"),m=n("tr"),ve=n("th"),St=d("Pipeline"),Tt=r(),we=n("th"),Ut=d("Tasks"),jt=r(),oe=n("th"),Dt=d("Colab"),Jt=r(),se=n("th"),It=d("Demo"),Pt=r(),Me=n("tbody"),h=n("tr"),Se=n("td"),Q=n("a"),xt=d("pipeline_semantic_stable_diffusion.py"),Et=r(),Te=n("td"),Ue=n("em"),Ct=d("Text-to-Image Generation"),kt=r(),le=n("td"),R=n("a"),re=n("img"),At=r(),ce=n("td"),Y=n("a"),Gt=d("Coming Soon"),Re=r(),y=n("h2"),C=n("a"),je=n("span"),T(H.$$.fragment),Nt=r(),De=n("span"),$t=d("Tips"),Ye=r(),de=n("ul"),z=n("li"),Bt=d("The Semantic Guidance pipeline can be used with any "),pe=n("a"),Lt=d("Stable Diffusion"),Zt=d(" checkpoint."),He=r(),v=n("h3"),k=n("a"),Je=n("span"),T(O.$$.fragment),Wt=r(),Ie=n("span"),Vt=d("Run Semantic Guidance"),ze=r(),A=n("p"),Qt=d("The interface of "),fe=n("a"),Rt=d("SemanticStableDiffusionPipeline"),Yt=d(` provides several additional parameters to influence the image generation.
Exemplary usage may look like this:`),Oe=r(),T(X.$$.fragment),Xe=r(),ue=n("p"),Ht=d("For more examples check the Colab notebook."),Fe=r(),w=n("h2"),G=n("a"),Pe=n("span"),T(F.$$.fragment),zt=r(),xe=n("span"),Ot=d("StableDiffusionSafePipelineOutput"),qe=r(),M=n("div"),T(q.$$.fragment),Xt=r(),Ee=n("p"),Ft=d("Output class for Stable Diffusion pipelines."),Ke=r(),S=n("h2"),N=n("a"),Ce=n("span"),T(K.$$.fragment),qt=r(),ke=n("span"),Kt=d("SemanticStableDiffusionPipeline"),et=r(),u=n("div"),T(ee.$$.fragment),ei=r(),Ae=n("p"),ti=d("Pipeline for text-to-image generation with latent editing."),ii=r(),te=n("p"),ni=d("This model inherits from "),me=n("a"),ai=d("DiffusionPipeline"),oi=d(`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),si=r(),Ge=n("p"),li=d("This model builds on the implementation of [\u2018StableDiffusionPipeline\u2019]"),ri=r(),$=n("div"),T(ie.$$.fragment),ci=r(),Ne=n("p"),di=d("Function invoked when calling the pipeline for generation."),this.h()},l(e){const l=rn('[data-svelte="svelte-1phssyn"]',document.head);_=a(l,"META",{name:!0,content:!0}),l.forEach(i),Be=c(e),b=a(e,"H1",{class:!0});var it=o(b);P=a(it,"A",{id:!0,class:!0,href:!0});var hi=o(P);he=a(hi,"SPAN",{});var gi=o(he);U(Z.$$.fragment,gi),gi.forEach(i),hi.forEach(i),mt=c(it),ge=a(it,"SPAN",{});var _i=o(ge);ht=p(_i,"Semantic Guidance"),_i.forEach(i),it.forEach(i),Le=c(e),x=a(e,"P",{});var nt=o(x);gt=p(nt,"Semantic Guidance for Diffusion Models was proposed in "),W=a(nt,"A",{href:!0,rel:!0});var bi=o(W);_t=p(bi,"SEGA: Instructing Diffusion using Semantic Dimensions"),bi.forEach(i),bt=p(nt,` and provides strong semantic control over the image generation.
Small changes to the text prompt usually result in entirely different output images. However, with SEGA a variety of changes to the image are enabled that can be controlled easily and intuitively, and stay true to the original image composition.`),nt.forEach(i),Ze=c(e),ne=a(e,"P",{});var yi=o(ne);yt=p(yi,"The abstract of the paper is the following:"),yi.forEach(i),We=c(e),ae=a(e,"P",{});var vi=o(ae);_e=a(vi,"EM",{});var wi=o(_e);vt=p(wi,"Text-to-image diffusion models have recently received a lot of interest for their astonishing ability to produce high-fidelity images from text only. However, achieving one-shot generation that aligns with the user\u2019s intent is nearly impossible, yet small changes to the input prompt often result in very different images. This leaves the user with little semantic control. To put the user in control, we show how to interact with the diffusion process to flexibly steer it along semantic directions. This semantic guidance (SEGA) allows for subtle and extensive edits, changes in composition and style, as well as optimizing the overall artistic conception. We demonstrate SEGA\u2019s effectiveness on a variety of tasks and provide evidence for its versatility and flexibility."),wi.forEach(i),vi.forEach(i),Ve=c(e),V=a(e,"P",{});var pi=o(V);be=a(pi,"EM",{});var Mi=o(be);wt=p(Mi,"Overview"),Mi.forEach(i),Mt=p(pi,":"),pi.forEach(i),Qe=c(e),E=a(e,"TABLE",{});var at=o(E);ye=a(at,"THEAD",{});var Si=o(ye);m=a(Si,"TR",{});var B=o(m);ve=a(B,"TH",{});var Ti=o(ve);St=p(Ti,"Pipeline"),Ti.forEach(i),Tt=c(B),we=a(B,"TH",{});var Ui=o(we);Ut=p(Ui,"Tasks"),Ui.forEach(i),jt=c(B),oe=a(B,"TH",{align:!0});var ji=o(oe);Dt=p(ji,"Colab"),ji.forEach(i),Jt=c(B),se=a(B,"TH",{align:!0});var Di=o(se);It=p(Di,"Demo"),Di.forEach(i),B.forEach(i),Si.forEach(i),Pt=c(at),Me=a(at,"TBODY",{});var Ji=o(Me);h=a(Ji,"TR",{});var L=o(h);Se=a(L,"TD",{});var Ii=o(Se);Q=a(Ii,"A",{href:!0,rel:!0});var Pi=o(Q);xt=p(Pi,"pipeline_semantic_stable_diffusion.py"),Pi.forEach(i),Ii.forEach(i),Et=c(L),Te=a(L,"TD",{});var xi=o(Te);Ue=a(xi,"EM",{});var Ei=o(Ue);Ct=p(Ei,"Text-to-Image Generation"),Ei.forEach(i),xi.forEach(i),kt=c(L),le=a(L,"TD",{align:!0});var Ci=o(le);R=a(Ci,"A",{href:!0,rel:!0});var ki=o(R);re=a(ki,"IMG",{src:!0,alt:!0}),ki.forEach(i),Ci.forEach(i),At=c(L),ce=a(L,"TD",{align:!0});var Ai=o(ce);Y=a(Ai,"A",{href:!0,rel:!0});var Gi=o(Y);Gt=p(Gi,"Coming Soon"),Gi.forEach(i),Ai.forEach(i),L.forEach(i),Ji.forEach(i),at.forEach(i),Re=c(e),y=a(e,"H2",{class:!0});var ot=o(y);C=a(ot,"A",{id:!0,class:!0,href:!0});var Ni=o(C);je=a(Ni,"SPAN",{});var $i=o(je);U(H.$$.fragment,$i),$i.forEach(i),Ni.forEach(i),Nt=c(ot),De=a(ot,"SPAN",{});var Bi=o(De);$t=p(Bi,"Tips"),Bi.forEach(i),ot.forEach(i),Ye=c(e),de=a(e,"UL",{});var Li=o(de);z=a(Li,"LI",{});var st=o(z);Bt=p(st,"The Semantic Guidance pipeline can be used with any "),pe=a(st,"A",{href:!0});var Zi=o(pe);Lt=p(Zi,"Stable Diffusion"),Zi.forEach(i),Zt=p(st," checkpoint."),st.forEach(i),Li.forEach(i),He=c(e),v=a(e,"H3",{class:!0});var lt=o(v);k=a(lt,"A",{id:!0,class:!0,href:!0});var Wi=o(k);Je=a(Wi,"SPAN",{});var Vi=o(Je);U(O.$$.fragment,Vi),Vi.forEach(i),Wi.forEach(i),Wt=c(lt),Ie=a(lt,"SPAN",{});var Qi=o(Ie);Vt=p(Qi,"Run Semantic Guidance"),Qi.forEach(i),lt.forEach(i),ze=c(e),A=a(e,"P",{});var rt=o(A);Qt=p(rt,"The interface of "),fe=a(rt,"A",{href:!0});var Ri=o(fe);Rt=p(Ri,"SemanticStableDiffusionPipeline"),Ri.forEach(i),Yt=p(rt,` provides several additional parameters to influence the image generation.
Exemplary usage may look like this:`),rt.forEach(i),Oe=c(e),U(X.$$.fragment,e),Xe=c(e),ue=a(e,"P",{});var Yi=o(ue);Ht=p(Yi,"For more examples check the Colab notebook."),Yi.forEach(i),Fe=c(e),w=a(e,"H2",{class:!0});var ct=o(w);G=a(ct,"A",{id:!0,class:!0,href:!0});var Hi=o(G);Pe=a(Hi,"SPAN",{});var zi=o(Pe);U(F.$$.fragment,zi),zi.forEach(i),Hi.forEach(i),zt=c(ct),xe=a(ct,"SPAN",{});var Oi=o(xe);Ot=p(Oi,"StableDiffusionSafePipelineOutput"),Oi.forEach(i),ct.forEach(i),qe=c(e),M=a(e,"DIV",{class:!0});var dt=o(M);U(q.$$.fragment,dt),Xt=c(dt),Ee=a(dt,"P",{});var Xi=o(Ee);Ft=p(Xi,"Output class for Stable Diffusion pipelines."),Xi.forEach(i),dt.forEach(i),Ke=c(e),S=a(e,"H2",{class:!0});var pt=o(S);N=a(pt,"A",{id:!0,class:!0,href:!0});var Fi=o(N);Ce=a(Fi,"SPAN",{});var qi=o(Ce);U(K.$$.fragment,qi),qi.forEach(i),Fi.forEach(i),qt=c(pt),ke=a(pt,"SPAN",{});var Ki=o(ke);Kt=p(Ki,"SemanticStableDiffusionPipeline"),Ki.forEach(i),pt.forEach(i),et=c(e),u=a(e,"DIV",{class:!0});var g=o(u);U(ee.$$.fragment,g),ei=c(g),Ae=a(g,"P",{});var en=o(Ae);ti=p(en,"Pipeline for text-to-image generation with latent editing."),en.forEach(i),ii=c(g),te=a(g,"P",{});var ft=o(te);ni=p(ft,"This model inherits from "),me=a(ft,"A",{href:!0});var tn=o(me);ai=p(tn,"DiffusionPipeline"),tn.forEach(i),oi=p(ft,`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),ft.forEach(i),si=c(g),Ge=a(g,"P",{});var nn=o(Ge);li=p(nn,"This model builds on the implementation of [\u2018StableDiffusionPipeline\u2019]"),nn.forEach(i),ri=c(g),$=a(g,"DIV",{class:!0});var ut=o($);U(ie.$$.fragment,ut),ci=c(ut),Ne=a(ut,"P",{});var an=o(Ne);di=p(an,"Function invoked when calling the pipeline for generation."),an.forEach(i),ut.forEach(i),g.forEach(i),this.h()},h(){s(_,"name","hf:doc:metadata"),s(_,"content",JSON.stringify(mn)),s(P,"id","semantic-guidance"),s(P,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(P,"href","#semantic-guidance"),s(b,"class","relative group"),s(W,"href","https://arxiv.org/abs/2301.12247"),s(W,"rel","nofollow"),s(oe,"align","center"),s(se,"align","center"),s(Q,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"),s(Q,"rel","nofollow"),cn(re.src,mi="https://colab.research.google.com/assets/colab-badge.svg")||s(re,"src",mi),s(re,"alt","Open In Colab"),s(R,"href","https://colab.research.google.com/github/ml-research/semantic-image-editing/blob/main/examples/SemanticGuidance.ipynb"),s(R,"rel","nofollow"),s(le,"align","center"),s(Y,"href","https://huggingface.co/AIML-TUDA"),s(Y,"rel","nofollow"),s(ce,"align","center"),s(C,"id","tips"),s(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(C,"href","#tips"),s(y,"class","relative group"),s(pe,"href","./stable_diffusion/text2img"),s(k,"id","run-semantic-guidance"),s(k,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(k,"href","#run-semantic-guidance"),s(v,"class","relative group"),s(fe,"href","/docs/diffusers/v0.17.0/en/api/pipelines/semantic_stable_diffusion#diffusers.SemanticStableDiffusionPipeline"),s(G,"id","diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput"),s(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(G,"href","#diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput"),s(w,"class","relative group"),s(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(N,"id","diffusers.SemanticStableDiffusionPipeline"),s(N,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(N,"href","#diffusers.SemanticStableDiffusionPipeline"),s(S,"class","relative group"),s(me,"href","/docs/diffusers/v0.17.0/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),s($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(u,"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,l){t(document.head,_),f(e,Be,l),f(e,b,l),t(b,P),t(P,he),j(Z,he,null),t(b,mt),t(b,ge),t(ge,ht),f(e,Le,l),f(e,x,l),t(x,gt),t(x,W),t(W,_t),t(x,bt),f(e,Ze,l),f(e,ne,l),t(ne,yt),f(e,We,l),f(e,ae,l),t(ae,_e),t(_e,vt),f(e,Ve,l),f(e,V,l),t(V,be),t(be,wt),t(V,Mt),f(e,Qe,l),f(e,E,l),t(E,ye),t(ye,m),t(m,ve),t(ve,St),t(m,Tt),t(m,we),t(we,Ut),t(m,jt),t(m,oe),t(oe,Dt),t(m,Jt),t(m,se),t(se,It),t(E,Pt),t(E,Me),t(Me,h),t(h,Se),t(Se,Q),t(Q,xt),t(h,Et),t(h,Te),t(Te,Ue),t(Ue,Ct),t(h,kt),t(h,le),t(le,R),t(R,re),t(h,At),t(h,ce),t(ce,Y),t(Y,Gt),f(e,Re,l),f(e,y,l),t(y,C),t(C,je),j(H,je,null),t(y,Nt),t(y,De),t(De,$t),f(e,Ye,l),f(e,de,l),t(de,z),t(z,Bt),t(z,pe),t(pe,Lt),t(z,Zt),f(e,He,l),f(e,v,l),t(v,k),t(k,Je),j(O,Je,null),t(v,Wt),t(v,Ie),t(Ie,Vt),f(e,ze,l),f(e,A,l),t(A,Qt),t(A,fe),t(fe,Rt),t(A,Yt),f(e,Oe,l),j(X,e,l),f(e,Xe,l),f(e,ue,l),t(ue,Ht),f(e,Fe,l),f(e,w,l),t(w,G),t(G,Pe),j(F,Pe,null),t(w,zt),t(w,xe),t(xe,Ot),f(e,qe,l),f(e,M,l),j(q,M,null),t(M,Xt),t(M,Ee),t(Ee,Ft),f(e,Ke,l),f(e,S,l),t(S,N),t(N,Ce),j(K,Ce,null),t(S,qt),t(S,ke),t(ke,Kt),f(e,et,l),f(e,u,l),j(ee,u,null),t(u,ei),t(u,Ae),t(Ae,ti),t(u,ii),t(u,te),t(te,ni),t(te,me),t(me,ai),t(te,oi),t(u,si),t(u,Ge),t(Ge,li),t(u,ri),t(u,$),j(ie,$,null),t($,ci),t($,Ne),t(Ne,di),tt=!0},p:dn,i(e){tt||(D(Z.$$.fragment,e),D(H.$$.fragment,e),D(O.$$.fragment,e),D(X.$$.fragment,e),D(F.$$.fragment,e),D(q.$$.fragment,e),D(K.$$.fragment,e),D(ee.$$.fragment,e),D(ie.$$.fragment,e),tt=!0)},o(e){J(Z.$$.fragment,e),J(H.$$.fragment,e),J(O.$$.fragment,e),J(X.$$.fragment,e),J(F.$$.fragment,e),J(q.$$.fragment,e),J(K.$$.fragment,e),J(ee.$$.fragment,e),J(ie.$$.fragment,e),tt=!1},d(e){i(_),e&&i(Be),e&&i(b),I(Z),e&&i(Le),e&&i(x),e&&i(Ze),e&&i(ne),e&&i(We),e&&i(ae),e&&i(Ve),e&&i(V),e&&i(Qe),e&&i(E),e&&i(Re),e&&i(y),I(H),e&&i(Ye),e&&i(de),e&&i(He),e&&i(v),I(O),e&&i(ze),e&&i(A),e&&i(Oe),I(X,e),e&&i(Xe),e&&i(ue),e&&i(Fe),e&&i(w),I(F),e&&i(qe),e&&i(M),I(q),e&&i(Ke),e&&i(S),I(K),e&&i(et),e&&i(u),I(ee),I(ie)}}}const mn={local:"semantic-guidance",sections:[{local:"tips",sections:[{local:"run-semantic-guidance",title:"Run Semantic Guidance"}],title:"Tips"},{local:"diffusers.pipelines.semantic_stable_diffusion.SemanticStableDiffusionPipelineOutput",title:"StableDiffusionSafePipelineOutput"},{local:"diffusers.SemanticStableDiffusionPipeline",title:"SemanticStableDiffusionPipeline"}],title:"Semantic Guidance"};function hn(ui){return pn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vn extends on{constructor(_){super();sn(this,_,hn,un,ln,{})}}export{vn as default,mn as metadata};
