import{s as ei,o as ti,n as F}from"../chunks/scheduler.182ea377.js";import{S as ni,i as ai,g as r,s as a,r as m,A as si,h as l,f as n,c as s,j as $,u as g,x as c,k as I,y as o,a as i,v as u,d as h,t as _,w as b}from"../chunks/index.abf12888.js";import{T as Ga}from"../chunks/Tip.230e2334.js";import{D as C}from"../chunks/Docstring.93f6f462.js";import{C as k}from"../chunks/CodeBlock.57fe6e13.js";import{E as Mn}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as R}from"../chunks/Heading.16916d63.js";function oi(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkaWZmdXNlcnMlMjBpbXBvcnQlMjBTdGFibGVEaWZmdXNpb25BZGFwdGVyUGlwZWxpbmUlMkMlMjBUMklBZGFwdGVyJTBBJTBBaW1hZ2UlMjAlM0QlMjBsb2FkX2ltYWdlKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmRpZmZ1c2VycyUyRmRvY3MtaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZ0MmktYWRhcHRlciUyRmNvbG9yX3JlZi5wbmclMjIlMEEpJTBBJTBBY29sb3JfcGFsZXR0ZSUyMCUzRCUyMGltYWdlLnJlc2l6ZSgoOCUyQyUyMDgpKSUwQWNvbG9yX3BhbGV0dGUlMjAlM0QlMjBjb2xvcl9wYWxldHRlLnJlc2l6ZSgoNTEyJTJDJTIwNTEyKSUyQyUyMHJlc2FtcGxlJTNESW1hZ2UuUmVzYW1wbGluZy5ORUFSRVNUKSUwQSUwQWFkYXB0ZXIlMjAlM0QlMjBUMklBZGFwdGVyLmZyb21fcHJldHJhaW5lZCglMjJUZW5jZW50QVJDJTJGdDJpYWRhcHRlcl9jb2xvcl9zZDE0djElMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvbkFkYXB0ZXJQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyQ29tcFZpcyUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkYXB0ZXIlM0RhZGFwdGVyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBKSUwQSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFvdXRfaW1hZ2UlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMCUyMkF0JTIwbmlnaHQlMkMlMjBnbG93aW5nJTIwY3ViZXMlMjBpbiUyMGZyb250JTIwb2YlMjB0aGUlMjBiZWFjaCUyMiUyQyUwQSUyMCUyMCUyMCUyMGltYWdlJTNEY29sb3JfcGFsZXR0ZSUyQyUwQSkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionAdapterPipeline, T2IAdapter

<span class="hljs-meta">&gt;&gt;&gt; </span>image = load_image(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_ref.png&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>color_palette = image.resize((<span class="hljs-number">8</span>, <span class="hljs-number">8</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>color_palette = color_palette.resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>), resample=Image.Resampling.NEAREST)

<span class="hljs-meta">&gt;&gt;&gt; </span>adapter = T2IAdapter.from_pretrained(<span class="hljs-string">&quot;TencentARC/t2iadapter_color_sd14v1&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionAdapterPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
<span class="hljs-meta">... </span>    adapter=adapter,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>out_image = pipe(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;At night, glowing cubes in front of the beach&quot;</span>,
<span class="hljs-meta">... </span>    image=color_palette,
<span class="hljs-meta">... </span>).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function ii(Z){let d,T=`⚠️ Don’t enable attention slicing if you’re already using <code>scaled_dot_product_attention</code> (SDPA) from PyTorch
2.0 or xFormers. These attention computations are already very memory efficient so you won’t need to enable
this function. If you enable attention slicing with SDPA or xFormers, it can lead to serious slow downs!`;return{c(){d=r("p"),d.innerHTML=T},l(y){d=l(y,"P",{"data-svelte-h":!0}),c(d)!=="svelte-ackzsn"&&(d.innerHTML=T)},m(y,f){i(y,d,f)},p:F,d(y){y&&n(d)}}}function ri(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBJTIwJTIwJTIwJTIwdXNlX3NhZmV0ZW5zb3JzJTNEVHJ1ZSUyQyUwQSklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGFuJTIwYXN0cm9uYXV0JTIwcmlkaW5nJTIwYSUyMGhvcnNlJTIwb24lMjBtYXJzJTIyJTBBcGlwZS5lbmFibGVfYXR0ZW50aW9uX3NsaWNpbmcoKSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>    use_safetensors=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_attention_slicing()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function li(Z){let d,T=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){d=r("p"),d.textContent=T},l(y){d=l(y,"P",{"data-svelte-h":!0}),c(d)!=="svelte-17p1lpg"&&(d.textContent=T)},m(y,f){i(y,d,f)},p:F,d(y){y&&n(d)}}}function pi(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEFmcm9tJTIweGZvcm1lcnMub3BzJTIwaW1wb3J0JTIwTWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCUwQSUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItMSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQXBpcGUuZW5hYmxlX3hmb3JtZXJzX21lbW9yeV9lZmZpY2llbnRfYXR0ZW50aW9uKGF0dGVudGlvbl9vcCUzRE1lbW9yeUVmZmljaWVudEF0dGVudGlvbkZsYXNoQXR0ZW50aW9uT3ApJTBBJTIzJTIwV29ya2Fyb3VuZCUyMGZvciUyMG5vdCUyMGFjY2VwdGluZyUyMGF0dGVudGlvbiUyMHNoYXBlJTIwdXNpbmclMjBWQUUlMjBmb3IlMjBGbGFzaCUyMEF0dGVudGlvbiUwQXBpcGUudmFlLmVuYWJsZV94Zm9ybWVyc19tZW1vcnlfZWZmaWNpZW50X2F0dGVudGlvbihhdHRlbnRpb25fb3AlM0ROb25lKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> xformers.ops <span class="hljs-keyword">import</span> MemoryEfficientAttentionFlashAttentionOp

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_xformers_memory_efficient_attention(attention_op=MemoryEfficientAttentionFlashAttentionOp)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Workaround for not accepting attention shape using VAE for Flash Attention</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.vae.enable_xformers_memory_efficient_attention(attention_op=<span class="hljs-literal">None</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function di(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwVDJJQWRhcHRlciUyQyUyMFN0YWJsZURpZmZ1c2lvblhMQWRhcHRlclBpcGVsaW5lJTJDJTIwRERQTVNjaGVkdWxlciUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBsb2FkX2ltYWdlJTBBJTBBc2tldGNoX2ltYWdlJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGQWRhcHRlciUyRnQyaWFkYXB0ZXIlMkZyZXNvbHZlJTJGbWFpbiUyRnNrZXRjaC5wbmclMjIpLmNvbnZlcnQoJTIyTCUyMiklMEElMEFtb2RlbF9pZCUyMCUzRCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi14bC1iYXNlLTEuMCUyMiUwQSUwQWFkYXB0ZXIlMjAlM0QlMjBUMklBZGFwdGVyLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJBZGFwdGVyJTJGdDJpYWRhcHRlciUyMiUyQyUwQSUyMCUyMCUyMCUyMHN1YmZvbGRlciUzRCUyMnNrZXRjaF9zZHhsXzEuMCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUwQSUyMCUyMCUyMCUyMGFkYXB0ZXJfdHlwZSUzRCUyMmZ1bGxfYWRhcHRlcl94bCUyMiUyQyUwQSklMEFzY2hlZHVsZXIlMjAlM0QlMjBERFBNU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9pZCUyQyUyMHN1YmZvbGRlciUzRCUyMnNjaGVkdWxlciUyMiklMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uWExBZGFwdGVyUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTIwYWRhcHRlciUzRGFkYXB0ZXIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB2YXJpYW50JTNEJTIyZnAxNiUyMiUyQyUyMHNjaGVkdWxlciUzRHNjaGVkdWxlciUwQSkudG8oJTIyY3VkYSUyMiklMEElMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5tYW51YWxfc2VlZCg0MiklMEFza2V0Y2hfaW1hZ2Vfb3V0JTIwJTNEJTIwcGlwZSglMEElMjAlMjAlMjAlMjBwcm9tcHQlM0QlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBkb2clMjBpbiUyMHJlYWwlMjB3b3JsZCUyQyUyMGhpZ2glMjBxdWFsaXR5JTIyJTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEJTIyZXh0cmElMjBkaWdpdCUyQyUyMGZld2VyJTIwZGlnaXRzJTJDJTIwY3JvcHBlZCUyQyUyMHdvcnN0JTIwcXVhbGl0eSUyQyUyMGxvdyUyMHF1YWxpdHklMjIlMkMlMEElMjAlMjAlMjAlMjBpbWFnZSUzRHNrZXRjaF9pbWFnZSUyQyUwQSUyMCUyMCUyMCUyMGdlbmVyYXRvciUzRGdlbmVyYXRvciUyQyUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3NjYWxlJTNENy41JTJDJTBBKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> T2IAdapter, StableDiffusionXLAdapterPipeline, DDPMScheduler
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

<span class="hljs-meta">&gt;&gt;&gt; </span>sketch_image = load_image(<span class="hljs-string">&quot;https://huggingface.co/Adapter/t2iadapter/resolve/main/sketch.png&quot;</span>).convert(<span class="hljs-string">&quot;L&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model_id = <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>adapter = T2IAdapter.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Adapter/t2iadapter&quot;</span>,
<span class="hljs-meta">... </span>    subfolder=<span class="hljs-string">&quot;sketch_sdxl_1.0&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>    adapter_type=<span class="hljs-string">&quot;full_adapter_xl&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>scheduler = DDPMScheduler.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionXLAdapterPipeline.from_pretrained(
<span class="hljs-meta">... </span>    model_id, adapter=adapter, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>, scheduler=scheduler
<span class="hljs-meta">... </span>).to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = torch.manual_seed(<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sketch_image_out = pipe(
<span class="hljs-meta">... </span>    prompt=<span class="hljs-string">&quot;a photo of a dog in real world, high quality&quot;</span>,
<span class="hljs-meta">... </span>    negative_prompt=<span class="hljs-string">&quot;extra digit, fewer digits, cropped, worst quality, low quality&quot;</span>,
<span class="hljs-meta">... </span>    image=sketch_image,
<span class="hljs-meta">... </span>    generator=generator,
<span class="hljs-meta">... </span>    guidance_scale=<span class="hljs-number">7.5</span>,
<span class="hljs-meta">... </span>).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function ci(Z){let d,T=`⚠️ Don’t enable attention slicing if you’re already using <code>scaled_dot_product_attention</code> (SDPA) from PyTorch
2.0 or xFormers. These attention computations are already very memory efficient so you won’t need to enable
this function. If you enable attention slicing with SDPA or xFormers, it can lead to serious slow downs!`;return{c(){d=r("p"),d.innerHTML=T},l(y){d=l(y,"P",{"data-svelte-h":!0}),c(d)!=="svelte-ackzsn"&&(d.innerHTML=T)},m(y,f){i(y,d,f)},p:F,d(y){y&&n(d)}}}function fi(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwU3RhYmxlRGlmZnVzaW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBJTIwJTIwJTIwJTIwdXNlX3NhZmV0ZW5zb3JzJTNEVHJ1ZSUyQyUwQSklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJhJTIwcGhvdG8lMjBvZiUyMGFuJTIwYXN0cm9uYXV0JTIwcmlkaW5nJTIwYSUyMGhvcnNlJTIwb24lMjBtYXJzJTIyJTBBcGlwZS5lbmFibGVfYXR0ZW50aW9uX3NsaWNpbmcoKSUwQWltYWdlJTIwJTNEJTIwcGlwZShwcm9tcHQpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableDiffusionPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>,
<span class="hljs-meta">... </span>    torch_dtype=torch.float16,
<span class="hljs-meta">... </span>    use_safetensors=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;a photo of an astronaut riding a horse on mars&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_attention_slicing()
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function mi(Z){let d,T=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){d=r("p"),d.textContent=T},l(y){d=l(y,"P",{"data-svelte-h":!0}),c(d)!=="svelte-17p1lpg"&&(d.textContent=T)},m(y,f){i(y,d,f)},p:F,d(y){y&&n(d)}}}function gi(Z){let d,T="Examples:",y,f,w;return f=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEFmcm9tJTIweGZvcm1lcnMub3BzJTIwaW1wb3J0JTIwTWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCUwQSUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLTItMSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQXBpcGUuZW5hYmxlX3hmb3JtZXJzX21lbW9yeV9lZmZpY2llbnRfYXR0ZW50aW9uKGF0dGVudGlvbl9vcCUzRE1lbW9yeUVmZmljaWVudEF0dGVudGlvbkZsYXNoQXR0ZW50aW9uT3ApJTBBJTIzJTIwV29ya2Fyb3VuZCUyMGZvciUyMG5vdCUyMGFjY2VwdGluZyUyMGF0dGVudGlvbiUyMHNoYXBlJTIwdXNpbmclMjBWQUUlMjBmb3IlMjBGbGFzaCUyMEF0dGVudGlvbiUwQXBpcGUudmFlLmVuYWJsZV94Zm9ybWVyc19tZW1vcnlfZWZmaWNpZW50X2F0dGVudGlvbihhdHRlbnRpb25fb3AlM0ROb25lKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> xformers.ops <span class="hljs-keyword">import</span> MemoryEfficientAttentionFlashAttentionOp

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.enable_xformers_memory_efficient_attention(attention_op=MemoryEfficientAttentionFlashAttentionOp)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Workaround for not accepting attention shape using VAE for Flash Attention</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.vae.enable_xformers_memory_efficient_attention(attention_op=<span class="hljs-literal">None</span>)`,wrap:!1}}),{c(){d=r("p"),d.textContent=T,y=a(),m(f.$$.fragment)},l(p){d=l(p,"P",{"data-svelte-h":!0}),c(d)!=="svelte-kvfsh7"&&(d.textContent=T),y=s(p),g(f.$$.fragment,p)},m(p,M){i(p,d,M),i(p,y,M),u(f,p,M),w=!0},p:F,i(p){w||(h(f.$$.fragment,p),w=!0)},o(p){_(f.$$.fragment,p),w=!1},d(p){p&&(n(d),n(y)),b(f,p)}}}function ui(Z){let d,T,y,f,w,p,M,Jn,ye,Fs='<a href="https://arxiv.org/abs/2302.08453" rel="nofollow">T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models</a> by Chong Mou, Xintao Wang, Liangbin Xie, Jian Zhang, Zhongang Qi, Ying Shan, Xiaohu Qie.',Un,we,Vs="Using the pretrained models we can provide control images (for example, a depth map) to control Stable Diffusion text-to-image generation so that it follows the structure of the depth image and fills in the details.",$n,ve,Es="The abstract of the paper is the following:",In,Te,Hs="<em>The incredible generative ability of large-scale text-to-image (T2I) models has demonstrated strong power of learning complex structures and meaningful semantics. However, relying solely on text prompts cannot fully take advantage of the knowledge learned by the model, especially when flexible and accurate structure control is needed. In this paper, we aim to “dig out” the capabilities that T2I models have implicitly learned, and then explicitly use them to control the generation more granularly. Specifically, we propose to learn simple and small T2I-Adapters to align internal knowledge in T2I models with external control signals, while freezing the original large T2I models. In this way, we can train various adapters according to different conditions, and achieve rich control and editing effects. Further, the proposed T2I-Adapters have attractive properties of practical value, such as composability and generalization ability. Extensive experiments demonstrate that our T2I-Adapter has promising generation quality and a wide range of applications.</em>",Cn,Me,Qs='This model was contributed by the community contributor <a href="https://github.com/HimariO" rel="nofollow">HimariO</a> ❤️ .',Zn,xe,kn,Je,zs='<thead><tr><th>Pipeline</th> <th>Tasks</th> <th align="center">Demo</th></tr></thead> <tbody><tr><td><a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py" rel="nofollow">StableDiffusionAdapterPipeline</a></td> <td><em>Text-to-Image Generation with T2I-Adapter Conditioning</em></td> <td align="center">-</td></tr> <tr><td><a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py" rel="nofollow">StableDiffusionXLAdapterPipeline</a></td> <td><em>Text-to-Image Generation with T2I-Adapter Conditioning on StableDiffusion-XL</em></td> <td align="center">-</td></tr></tbody>',jn,Ue,An,$e,Ys=`In the following we give a simple example of how to use a <em>T2IAdapter</em> checkpoint with Diffusers for inference based on StableDiffusion-1.4/1.5.
All adapters use the same pipeline.`,Sn,Ie,qs='<li>Images are first converted into the appropriate <em>control image</em> format.</li> <li>The <em>control image</em> and <em>prompt</em> are passed to the <a href="/docs/diffusers/v0.22.1/en/api/pipelines/stable_diffusion/adapter#diffusers.StableDiffusionAdapterPipeline">StableDiffusionAdapterPipeline</a>.</li>',Gn,Ce,Os='Let’s have a look at a simple example using the <a href="https://huggingface.co/TencentARC/t2iadapter_color_sd14v1" rel="nofollow">Color Adapter</a>.',Dn,Ze,Ln,ke,Ks='<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_ref.png" alt="img"/>',Pn,je,eo="Then we can create our color palette by simply resizing it to 8 by 8 pixels and then scaling it back to original size.",Xn,Ae,Wn,Se,to="Let’s take a look at the processed image.",Rn,Ge,no='<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_palette.png" alt="img"/>',Nn,De,ao="Next, create the adapter pipeline",Bn,Le,Fn,Pe,so="Finally, pass the prompt and control image to the pipeline",Vn,Xe,En,We,oo='<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_output.png" alt="img"/>',Hn,Re,Qn,Ne,io=`In the following we give a simple example of how to use a <em>T2IAdapter</em> checkpoint with Diffusers for inference based on StableDiffusion-XL.
All adapters use the same pipeline.`,zn,Be,ro='<li>Images are first downloaded into the appropriate <em>control image</em> format.</li> <li>The <em>control image</em> and <em>prompt</em> are passed to the <a href="/docs/diffusers/v0.22.1/en/api/pipelines/stable_diffusion/adapter#diffusers.StableDiffusionXLAdapterPipeline">StableDiffusionXLAdapterPipeline</a>.</li>',Yn,Fe,lo='Let’s have a look at a simple example using the <a href="https://huggingface.co/Adapter/t2iadapter/tree/main/sketch_sdxl_1.0" rel="nofollow">Sketch Adapter</a>.',qn,Ve,On,Ee,po='<img src="https://huggingface.co/Adapter/t2iadapter/resolve/main/sketch.png" alt="img"/>',Kn,He,co="Then, create the adapter pipeline",ea,Qe,ta,ze,fo="Finally, pass the prompt and control image to the pipeline",na,Ye,aa,qe,mo='<img src="https://huggingface.co/Adapter/t2iadapter/resolve/main/sketch_output.png" alt="img"/>',sa,Oe,oa,Ke,go='Non-diffusers checkpoints can be found under <a href="https://huggingface.co/TencentARC/T2I-Adapter/tree/main/models" rel="nofollow">TencentARC/T2I-Adapter</a>.',ia,et,ra,tt,uo='<thead><tr><th>Model Name</th> <th>Control Image Overview</th> <th>Control Image Example</th> <th>Generated Image Example</th></tr></thead> <tbody><tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_color_sd14v1" rel="nofollow">TencentARC/t2iadapter_color_sd14v1</a><br/> <em>Trained with spatial color palette</em></td> <td>A image with 8x8 color palette.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_sample_input.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_canny_sd14v1" rel="nofollow">TencentARC/t2iadapter_canny_sd14v1</a><br/> <em>Trained with canny edge detection</em></td> <td>A monochrome image with white edges on a black background.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/canny_sample_input.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/canny_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/canny_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/canny_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_sketch_sd14v1" rel="nofollow">TencentARC/t2iadapter_sketch_sd14v1</a><br/> <em>Trained with <a href="https://github.com/zhuoinoulu/pidinet" rel="nofollow">PidiNet</a> edge detection</em></td> <td>A hand-drawn monochrome image with white outlines on a black background.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/sketch_sample_input.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/sketch_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/sketch_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/sketch_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_depth_sd14v1" rel="nofollow">TencentARC/t2iadapter_depth_sd14v1</a><br/> <em>Trained with Midas depth estimation</em></td> <td>A grayscale image with black representing deep areas and white representing shallow areas.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_input.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_openpose_sd14v1" rel="nofollow">TencentARC/t2iadapter_openpose_sd14v1</a><br/> <em>Trained with OpenPose bone image</em></td> <td>A <a href="https://github.com/CMU-Perceptual-Computing-Lab/openpose" rel="nofollow">OpenPose bone</a> image.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/openpose_sample_input.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/openpose_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/openpose_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/openpose_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_keypose_sd14v1" rel="nofollow">TencentARC/t2iadapter_keypose_sd14v1</a><br/> <em>Trained with mmpose skeleton image</em></td> <td>A <a href="https://github.com/open-mmlab/mmpose" rel="nofollow">mmpose skeleton</a> image.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_input.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_seg_sd14v1" rel="nofollow">TencentARC/t2iadapter_seg_sd14v1</a><br/><em>Trained with semantic segmentation</em></td> <td>An <a href="https://github.com/TencentARC/T2I-Adapter/discussions/25" rel="nofollow">custom</a> segmentation protocol image.</td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/seg_sample_input.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/seg_sample_input.png"/></a></td> <td><a href="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/seg_sample_output.png"><img width="64" src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/seg_sample_output.png"/></a></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_canny_sd15v2" rel="nofollow">TencentARC/t2iadapter_canny_sd15v2</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_depth_sd15v2" rel="nofollow">TencentARC/t2iadapter_depth_sd15v2</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_sketch_sd15v2" rel="nofollow">TencentARC/t2iadapter_sketch_sd15v2</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/TencentARC/t2iadapter_zoedepth_sd15v1" rel="nofollow">TencentARC/t2iadapter_zoedepth_sd15v1</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/Adapter/t2iadapter/tree/main/sketch_sdxl_1.0" rel="nofollow">Adapter/t2iadapter, subfolder=‘sketch_sdxl_1.0’</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/Adapter/t2iadapter/tree/main/canny_sdxl_1.0" rel="nofollow">Adapter/t2iadapter, subfolder=‘canny_sdxl_1.0’</a></td> <td></td> <td></td> <td></td></tr> <tr><td><a href="https://huggingface.co/Adapter/t2iadapter/tree/main/openpose_sdxl_1.0" rel="nofollow">Adapter/t2iadapter, subfolder=‘openpose_sdxl_1.0’</a></td> <td></td> <td></td> <td></td></tr></tbody>',la,nt,pa,at,ho="<code>MultiAdapter</code> can be used for applying multiple conditionings at once.",da,st,_o="Here we use the keypose adapter for the character posture and the depth adapter for creating the scene.",ca,ot,fa,it,bo="The two control images look as such:",ma,rt,yo='<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_input.png" alt="img"/> <img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_input.png" alt="img"/>',ga,lt,wo="<code>MultiAdapter</code> combines keypose and depth adapters.",ua,pt,vo="<code>adapter_conditioning_scale</code> balances the relative influence of the different adapters.",ha,dt,_a,ct,To='<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_depth_sample_output.png" alt="img"/>',ba,ft,ya,mt,Mo=`T2I-Adapter is similar to <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/controlnet" rel="nofollow">ControlNet</a>.
T2i-Adapter uses a smaller auxiliary network which is only run once for the entire diffusion process.
However, T2I-Adapter performs slightly worse than ControlNet.`,wa,gt,va,x,ut,Da,Vt,xo=`Pipeline for text-to-image generation using Stable Diffusion augmented with T2I-Adapter
<a href="https://arxiv.org/abs/2302.08453" rel="nofollow">https://arxiv.org/abs/2302.08453</a>`,La,Et,Jo=`This model inherits from <a href="/docs/diffusers/v0.22.1/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. 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.)`,Pa,N,ht,Xa,Ht,Uo="Function invoked when calling the pipeline for generation.",Wa,E,Ra,j,_t,Na,Qt,$o=`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. For more than one attention head, the computation is performed
sequentially over each head. This is useful to save some memory in exchange for a small speed decrease.`,Ba,H,Fa,Q,Va,z,bt,Ea,zt,Io=`Disable sliced attention computation. If <code>enable_attention_slicing</code> was previously called, attention is
computed in one step.`,Ha,Y,yt,Qa,Yt,Co=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,za,q,wt,Ya,qt,Zo=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,qa,A,vt,Oa,Ot,ko=`Enable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>. When this
option is enabled, you should observe lower GPU memory usage and a potential speed up during inference. Speed
up during training is not guaranteed.`,Ka,O,es,K,ts,ee,Tt,ns,Kt,jo='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',as,te,Mt,ss,en,Ao="Disables the FreeU mechanism if enabled.",os,S,xt,is,tn,So='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',rs,nn,Go="The suffixes after the scaling factors represent the stages where they are being applied.",ls,an,Do=`Please refer to the <a href="https://github.com/ChenyangSi/FreeU" rel="nofollow">official repository</a> for combinations of the values
that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.`,ps,ne,Jt,ds,sn,Lo="Encodes the prompt into text encoder hidden states.",Ta,Ut,Ma,v,$t,cs,on,Po=`Pipeline for text-to-image generation using Stable Diffusion augmented with T2I-Adapter
<a href="https://arxiv.org/abs/2302.08453" rel="nofollow">https://arxiv.org/abs/2302.08453</a>`,fs,rn,Xo=`This model inherits from <a href="/docs/diffusers/v0.22.1/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. 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.)`,ms,B,It,gs,ln,Wo="Function invoked when calling the pipeline for generation.",us,ae,hs,G,Ct,_s,pn,Ro=`Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor
in slices to compute attention in several steps. For more than one attention head, the computation is performed
sequentially over each head. This is useful to save some memory in exchange for a small speed decrease.`,bs,se,ys,oe,ws,ie,Zt,vs,dn,No=`Disable sliced attention computation. If <code>enable_attention_slicing</code> was previously called, attention is
computed in one step.`,Ts,re,kt,Ms,cn,Bo=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,xs,le,jt,Js,fn,Fo=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Us,D,At,$s,mn,Vo=`Enable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>. When this
option is enabled, you should observe lower GPU memory usage and a potential speed up during inference. Speed
up during training is not guaranteed.`,Is,pe,Cs,de,Zs,ce,St,ks,gn,Eo='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',js,fe,Gt,As,un,Ho="Disables the FreeU mechanism if enabled.",Ss,me,Dt,Gs,hn,Qo=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,Ds,L,Lt,Ls,_n,zo='Enables the FreeU mechanism as in <a href="https://arxiv.org/abs/2309.11497" rel="nofollow">https://arxiv.org/abs/2309.11497</a>.',Ps,bn,Yo="The suffixes after the scaling factors represent the stages where they are being applied.",Xs,yn,qo=`Please refer to the <a href="https://github.com/ChenyangSi/FreeU" rel="nofollow">official repository</a> for combinations of the values
that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.`,Ws,ge,Pt,Rs,wn,Oo=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,Ns,ue,Xt,Bs,vn,Ko="Encodes the prompt into text encoder hidden states.",xa,xn,Ja;return w=new R({props:{title:"Text-to-Image Generation with Adapter Conditioning",local:"text-to-image-generation-with-adapter-conditioning",headingTag:"h1"}}),M=new R({props:{title:"Overview",local:"overview",headingTag:"h2"}}),xe=new R({props:{title:"Available Pipelines:",local:"available-pipelines",headingTag:"h2"}}),Ue=new R({props:{title:"Usage example with the base model of StableDiffusion-1.4/1.5",local:"usage-example-with-the-base-model-of-stablediffusion-1415",headingTag:"h2"}}),Ze=new k({props:{code:"ZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEElMEFpbWFnZSUyMCUzRCUyMGxvYWRfaW1hZ2UoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGZGlmZnVzZXJzJTJGZG9jcy1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRnQyaS1hZGFwdGVyJTJGY29sb3JfcmVmLnBuZyUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

image = load_image(<span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_ref.png&quot;</span>)`,wrap:!1}}),Ae=new k({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBJTBBY29sb3JfcGFsZXR0ZSUyMCUzRCUyMGltYWdlLnJlc2l6ZSgoOCUyQyUyMDgpKSUwQWNvbG9yX3BhbGV0dGUlMjAlM0QlMjBjb2xvcl9wYWxldHRlLnJlc2l6ZSgoNTEyJTJDJTIwNTEyKSUyQyUyMHJlc2FtcGxlJTNESW1hZ2UuUmVzYW1wbGluZy5ORUFSRVNUKQ==",highlighted:`<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image

color_palette = image.resize((<span class="hljs-number">8</span>, <span class="hljs-number">8</span>))
color_palette = color_palette.resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>), resample=Image.Resampling.NEAREST)`,wrap:!1}}),Le=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlRGlmZnVzaW9uQWRhcHRlclBpcGVsaW5lJTJDJTIwVDJJQWRhcHRlciUwQSUwQWFkYXB0ZXIlMjAlM0QlMjBUMklBZGFwdGVyLmZyb21fcHJldHJhaW5lZCglMjJUZW5jZW50QVJDJTJGdDJpYWRhcHRlcl9jb2xvcl9zZDE0djElMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMFN0YWJsZURpZmZ1c2lvbkFkYXB0ZXJQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyQ29tcFZpcyUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkYXB0ZXIlM0RhZGFwdGVyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBKSUwQXBpcGUudG8oJTIyY3VkYSUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionAdapterPipeline, T2IAdapter

adapter = T2IAdapter.from_pretrained(<span class="hljs-string">&quot;TencentARC/t2iadapter_color_sd14v1&quot;</span>, torch_dtype=torch.float16)
pipe = StableDiffusionAdapterPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    adapter=adapter,
    torch_dtype=torch.float16,
)
pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),Xe=new k({props:{code:"JTIzJTIwZml4JTIwdGhlJTIwcmFuZG9tJTIwc2VlZCUyQyUyMHNvJTIweW91JTIwd2lsbCUyMGdldCUyMHRoZSUyMHNhbWUlMjByZXN1bHQlMjBhcyUyMHRoZSUyMGV4YW1wbGUlMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5tYW51YWxfc2VlZCg3KSUwQSUwQW91dF9pbWFnZSUyMCUzRCUyMHBpcGUoJTBBJTIwJTIwJTIwJTIwJTIyQXQlMjBuaWdodCUyQyUyMGdsb3dpbmclMjBjdWJlcyUyMGluJTIwZnJvbnQlMjBvZiUyMHRoZSUyMGJlYWNoJTIyJTJDJTBBJTIwJTIwJTIwJTIwaW1hZ2UlM0Rjb2xvcl9wYWxldHRlJTJDJTBBJTIwJTIwJTIwJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yJTJDJTBBKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-comment"># fix the random seed, so you will get the same result as the example</span>
generator = torch.manual_seed(<span class="hljs-number">7</span>)

out_image = pipe(
    <span class="hljs-string">&quot;At night, glowing cubes in front of the beach&quot;</span>,
    image=color_palette,
    generator=generator,
).images[<span class="hljs-number">0</span>]`,wrap:!1}}),Re=new R({props:{title:"Usage example with the base model of StableDiffusion-XL",local:"usage-example-with-the-base-model-of-stablediffusion-xl",headingTag:"h2"}}),Ve=new k({props:{code:"ZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEElMEFza2V0Y2hfaW1hZ2UlMjAlM0QlMjBsb2FkX2ltYWdlKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZBZGFwdGVyJTJGdDJpYWRhcHRlciUyRnJlc29sdmUlMkZtYWluJTJGc2tldGNoLnBuZyUyMikuY29udmVydCglMjJMJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

sketch_image = load_image(<span class="hljs-string">&quot;https://huggingface.co/Adapter/t2iadapter/resolve/main/sketch.png&quot;</span>).convert(<span class="hljs-string">&quot;L&quot;</span>)`,wrap:!1}}),Qe=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwKCUwQSUyMCUyMCUyMCUyMFQySUFkYXB0ZXIlMkMlMEElMjAlMjAlMjAlMjBTdGFibGVEaWZmdXNpb25YTEFkYXB0ZXJQaXBlbGluZSUyQyUwQSUyMCUyMCUyMCUyMEREUE1TY2hlZHVsZXIlMEEpJTBBZnJvbSUyMGRpZmZ1c2Vycy5tb2RlbHMudW5ldF8yZF9jb25kaXRpb24lMjBpbXBvcnQlMjBVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQW1vZGVsX2lkJTIwJTNEJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTBBYWRhcHRlciUyMCUzRCUyMFQySUFkYXB0ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMkFkYXB0ZXIlMkZ0MmlhZGFwdGVyJTIyJTJDJTIwc3ViZm9sZGVyJTNEJTIyc2tldGNoX3NkeGxfMS4wJTIyJTJDdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTIwYWRhcHRlcl90eXBlJTNEJTIyZnVsbF9hZGFwdGVyX3hsJTIyKSUwQXNjaGVkdWxlciUyMCUzRCUyMEREUE1TY2hlZHVsZXIuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX2lkJTJDJTIwc3ViZm9sZGVyJTNEJTIyc2NoZWR1bGVyJTIyKSUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25YTEFkYXB0ZXJQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlMkMlMjBhZGFwdGVyJTNEYWRhcHRlciUyQyUyMHNhZmV0eV9jaGVja2VyJTNETm9uZSUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHZhcmlhbnQlM0QlMjJmcDE2JTIyJTJDJTIwc2NoZWR1bGVyJTNEc2NoZWR1bGVyJTBBKSUwQSUwQXBpcGUudG8oJTIyY3VkYSUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> (
    T2IAdapter,
    StableDiffusionXLAdapterPipeline,
    DDPMScheduler
)
<span class="hljs-keyword">from</span> diffusers.models.unet_2d_condition <span class="hljs-keyword">import</span> UNet2DConditionModel

model_id = <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>
adapter = T2IAdapter.from_pretrained(<span class="hljs-string">&quot;Adapter/t2iadapter&quot;</span>, subfolder=<span class="hljs-string">&quot;sketch_sdxl_1.0&quot;</span>,torch_dtype=torch.float16, adapter_type=<span class="hljs-string">&quot;full_adapter_xl&quot;</span>)
scheduler = DDPMScheduler.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)

pipe = StableDiffusionXLAdapterPipeline.from_pretrained(
    model_id, adapter=adapter, safety_checker=<span class="hljs-literal">None</span>, torch_dtype=torch.float16, variant=<span class="hljs-string">&quot;fp16&quot;</span>, scheduler=scheduler
)

pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),Ye=new k({props:{code:"JTIzJTIwZml4JTIwdGhlJTIwcmFuZG9tJTIwc2VlZCUyQyUyMHNvJTIweW91JTIwd2lsbCUyMGdldCUyMHRoZSUyMHNhbWUlMjByZXN1bHQlMjBhcyUyMHRoZSUyMGV4YW1wbGUlMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5HZW5lcmF0b3IoKS5tYW51YWxfc2VlZCg0MiklMEElMEFza2V0Y2hfaW1hZ2Vfb3V0JTIwJTNEJTIwcGlwZSglMEElMjAlMjAlMjAlMjBwcm9tcHQlM0QlMjJhJTIwcGhvdG8lMjBvZiUyMGElMjBkb2clMjBpbiUyMHJlYWwlMjB3b3JsZCUyQyUyMGhpZ2glMjBxdWFsaXR5JTIyJTJDJTIwJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEJTIyZXh0cmElMjBkaWdpdCUyQyUyMGZld2VyJTIwZGlnaXRzJTJDJTIwY3JvcHBlZCUyQyUyMHdvcnN0JTIwcXVhbGl0eSUyQyUyMGxvdyUyMHF1YWxpdHklMjIlMkMlMjAlMEElMjAlMjAlMjAlMjBpbWFnZSUzRHNrZXRjaF9pbWFnZSUyQyUyMCUwQSUyMCUyMCUyMCUyMGdlbmVyYXRvciUzRGdlbmVyYXRvciUyQyUyMCUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3NjYWxlJTNENy41JTBBKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-comment"># fix the random seed, so you will get the same result as the example</span>
generator = torch.Generator().manual_seed(<span class="hljs-number">42</span>)

sketch_image_out = pipe(
    prompt=<span class="hljs-string">&quot;a photo of a dog in real world, high quality&quot;</span>, 
    negative_prompt=<span class="hljs-string">&quot;extra digit, fewer digits, cropped, worst quality, low quality&quot;</span>, 
    image=sketch_image, 
    generator=generator, 
    guidance_scale=<span class="hljs-number">7.5</span>
).images[<span class="hljs-number">0</span>]`,wrap:!1}}),Oe=new R({props:{title:"Available checkpoints",local:"available-checkpoints",headingTag:"h2"}}),et=new R({props:{title:"T2I-Adapter with Stable Diffusion 1.4",local:"t2i-adapter-with-stable-diffusion-14",headingTag:"h3"}}),nt=new R({props:{title:"Combining multiple adapters",local:"combining-multiple-adapters",headingTag:"h2"}}),ot=new k({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwUElMJTIwaW1wb3J0JTIwSW1hZ2UlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwbG9hZF9pbWFnZSUwQSUwQWNvbmRfa2V5cG9zZSUyMCUzRCUyMGxvYWRfaW1hZ2UoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGZGlmZnVzZXJzJTJGZG9jcy1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRnQyaS1hZGFwdGVyJTJGa2V5cG9zZV9zYW1wbGVfaW5wdXQucG5nJTIyJTBBKSUwQWNvbmRfZGVwdGglMjAlM0QlMjBsb2FkX2ltYWdlKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmRpZmZ1c2VycyUyRmRvY3MtaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZ0MmktYWRhcHRlciUyRmRlcHRoX3NhbXBsZV9pbnB1dC5wbmclMjIlMEEpJTBBY29uZCUyMCUzRCUyMCU1QiU1QmNvbmRfa2V5cG9zZSUyQyUyMGNvbmRfZGVwdGglNUQlNUQlMEElMEFwcm9tcHQlMjAlM0QlMjAlNUIlMjJBJTIwbWFuJTIwd2Fsa2luZyUyMGluJTIwYW4lMjBvZmZpY2UlMjByb29tJTIwd2l0aCUyMGElMjBuaWNlJTIwdmlldyUyMiU1RA==",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> load_image

cond_keypose = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/keypose_sample_input.png&quot;</span>
)
cond_depth = load_image(
    <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/depth_sample_input.png&quot;</span>
)
cond = [[cond_keypose, cond_depth]]

prompt = [<span class="hljs-string">&quot;A man walking in an office room with a nice view&quot;</span>]`,wrap:!1}}),dt=new k({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFN0YWJsZURpZmZ1c2lvbkFkYXB0ZXJQaXBlbGluZSUyQyUyME11bHRpQWRhcHRlciUwQSUwQWFkYXB0ZXJzJTIwJTNEJTIwTXVsdGlBZGFwdGVyKCUwQSUyMCUyMCUyMCUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFQySUFkYXB0ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMlRlbmNlbnRBUkMlMkZ0MmlhZGFwdGVyX2tleXBvc2Vfc2QxNHYxJTIyKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFQySUFkYXB0ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMlRlbmNlbnRBUkMlMkZ0MmlhZGFwdGVyX2RlcHRoX3NkMTR2MSUyMiklMkMlMEElMjAlMjAlMjAlMjAlNUQlMEEpJTBBYWRhcHRlcnMlMjAlM0QlMjBhZGFwdGVycy50byh0b3JjaC5mbG9hdDE2KSUwQSUwQXBpcGUlMjAlM0QlMjBTdGFibGVEaWZmdXNpb25BZGFwdGVyUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkNvbXBWaXMlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTQlMjIlMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMEElMjAlMjAlMjAlMjBhZGFwdGVyJTNEYWRhcHRlcnMlMkMlMEEpJTBBJTBBaW1hZ2VzJTIwJTNEJTIwcGlwZShwcm9tcHQlMkMlMjBjb25kJTJDJTIwYWRhcHRlcl9jb25kaXRpb25pbmdfc2NhbGUlM0QlNUIwLjglMkMlMjAwLjglNUQp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableDiffusionAdapterPipeline, MultiAdapter

adapters = MultiAdapter(
    [
        T2IAdapter.from_pretrained(<span class="hljs-string">&quot;TencentARC/t2iadapter_keypose_sd14v1&quot;</span>),
        T2IAdapter.from_pretrained(<span class="hljs-string">&quot;TencentARC/t2iadapter_depth_sd14v1&quot;</span>),
    ]
)
adapters = adapters.to(torch.float16)

pipe = StableDiffusionAdapterPipeline.from_pretrained(
    <span class="hljs-string">&quot;CompVis/stable-diffusion-v1-4&quot;</span>,
    torch_dtype=torch.float16,
    adapter=adapters,
)

images = pipe(prompt, cond, adapter_conditioning_scale=[<span class="hljs-number">0.8</span>, <span class="hljs-number">0.8</span>])`,wrap:!1}}),ft=new R({props:{title:"T2I Adapter vs ControlNet",local:"t2i-adapter-vs-controlnet",headingTag:"h2"}}),gt=new R({props:{title:"StableDiffusionAdapterPipeline",local:"diffusers.StableDiffusionAdapterPipeline",headingTag:"h2"}}),ut=new C({props:{name:"class diffusers.StableDiffusionAdapterPipeline",anchor:"diffusers.StableDiffusionAdapterPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"adapter",val:": typing.Union[diffusers.models.adapter.T2IAdapter, diffusers.models.adapter.MultiAdapter, typing.List[diffusers.models.adapter.T2IAdapter]]"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"safety_checker",val:": StableDiffusionSafetyChecker"},{name:"feature_extractor",val:": CLIPFeatureExtractor"},{name:"requires_safety_checker",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.adapter",description:`<strong>adapter</strong> (<code>T2IAdapter</code> or <code>MultiAdapter</code> or <code>List[T2IAdapter]</code>) &#x2014;
Provides additional conditioning to the unet during the denoising process. If you set multiple Adapter as a
list, the outputs from each Adapter are added together to create one combined additional conditioning.`,name:"adapter"},{anchor:"diffusers.StableDiffusionAdapterPipeline.adapter_weights",description:`<strong>adapter_weights</strong> (<code>List[float]</code>, <em>optional</em>, defaults to None) &#x2014;
List of floats representing the weight which will be multiply to each adapter&#x2019;s output before adding them
together.`,name:"adapter_weights"},{anchor:"diffusers.StableDiffusionAdapterPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.22.1/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableDiffusionAdapterPipeline.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.StableDiffusionAdapterPipeline.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.StableDiffusionAdapterPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.22.1/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionAdapterPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.22.1/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 latents. Can be one of
<a href="/docs/diffusers/v0.22.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.22.1/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.22.1/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionAdapterPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionAdapterPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</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.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L121"}}),ht=new C({props:{name:"__call__",anchor:"diffusers.StableDiffusionAdapterPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"image",val:": typing.Union[torch.Tensor, PIL.Image.Image, typing.List[PIL.Image.Image]] = None"},{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:": typing.Optional[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:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",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:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"adapter_conditioning_scale",val:": typing.Union[float, typing.List[float]] = 1.0"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>List[torch.FloatTensor]</code> or <code>List[PIL.Image.Image]</code> or <code>List[List[PIL.Image.Image]]</code>) &#x2014;
The Adapter input condition. Adapter uses this input condition to generate guidance to Unet. If the
type is specified as <code>Torch.FloatTensor</code>, it is passed to Adapter as is. PIL.Image.Image\` can also be
accepted as an image. The control image is automatically resized to fit the output image.`,name:"image"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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. If not defined, one has to pass
<code>negative_prompt_embeds</code>. instead. If not defined, one has to pass <code>negative_prompt_embeds</code>. instead.
Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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.22.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[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.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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 <code>~pipelines.stable_diffusion.StableDiffusionAdapterPipelineOutput</code> instead
of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__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.StableDiffusionAdapterPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttnProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.adapter_conditioning_scale",description:`<strong>adapter_conditioning_scale</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The outputs of the adapter are multiplied by <code>adapter_conditioning_scale</code> before they are added to the
residual in the original unet. If multiple adapters are specified in init, you can set the
corresponding scale as a list.`,name:"adapter_conditioning_scale"},{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L613",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~pipelines.stable_diffusion.StableDiffusionAdapterPipelineOutput</code> 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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~pipelines.stable_diffusion.StableDiffusionAdapterPipelineOutput</code> or <code>tuple</code></p>
`}}),E=new Mn({props:{anchor:"diffusers.StableDiffusionAdapterPipeline.__call__.example",$$slots:{default:[oi]},$$scope:{ctx:Z}}}),_t=new C({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionAdapterPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_attention_slicing.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, halves the input to the attention heads, so attention will be computed in two steps. If
<code>&quot;max&quot;</code>, maximum amount of memory will be saved by running only one slice at a time. If a number is
provided, uses as many slices as <code>attention_head_dim // slice_size</code>. In this case, <code>attention_head_dim</code>
must be a multiple of <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2028"}}),H=new Ga({props:{warning:!0,$$slots:{default:[ii]},$$scope:{ctx:Z}}}),Q=new Mn({props:{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_attention_slicing.example",$$slots:{default:[ri]},$$scope:{ctx:Z}}}),bt=new C({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionAdapterPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2068"}}),yt=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.StableDiffusionAdapterPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L206"}}),wt=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.StableDiffusionAdapterPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L214"}}),vt=new C({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionAdapterPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_xformers_memory_efficient_attention.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Override the default <code>None</code> operator for use as <code>op</code> argument to the
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.memory_efficient_attention" rel="nofollow"><code>memory_efficient_attention()</code></a>
function of xFormers.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L1967"}}),O=new Ga({props:{warning:!0,$$slots:{default:[li]},$$scope:{ctx:Z}}}),K=new Mn({props:{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[pi]},$$scope:{ctx:Z}}}),Tt=new C({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionAdapterPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2002"}}),Mt=new C({props:{name:"disable_freeu",anchor:"diffusers.StableDiffusionAdapterPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L609"}}),xt=new C({props:{name:"enable_freeu",anchor:"diffusers.StableDiffusionAdapterPipeline.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.StableDiffusionAdapterPipeline.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L586"}}),Jt=new C({props:{name:"encode_prompt",anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt",parameters:[{name:"prompt",val:""},{name:"device",val:""},{name:"num_images_per_prompt",val:""},{name:"do_classifier_free_guidance",val:""},{name:"negative_prompt",val:" = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded
device &#x2014; (<code>torch.device</code>):
torch device`,name:"prompt"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) &#x2014;
number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>) &#x2014;
whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.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. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
A LoRA scale that will be applied to all LoRA layers of the text encoder if LoRA layers are loaded.`,name:"lora_scale"},{anchor:"diffusers.StableDiffusionAdapterPipeline.encode_prompt.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py#L255"}}),Ut=new R({props:{title:"StableDiffusionXLAdapterPipeline",local:"diffusers.StableDiffusionXLAdapterPipeline",headingTag:"h2"}}),$t=new C({props:{name:"class diffusers.StableDiffusionXLAdapterPipeline",anchor:"diffusers.StableDiffusionXLAdapterPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": CLIPTextModel"},{name:"text_encoder_2",val:": CLIPTextModelWithProjection"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"tokenizer_2",val:": CLIPTokenizer"},{name:"unet",val:": UNet2DConditionModel"},{name:"adapter",val:": typing.Union[diffusers.models.adapter.T2IAdapter, diffusers.models.adapter.MultiAdapter, typing.List[diffusers.models.adapter.T2IAdapter]]"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"force_zeros_for_empty_prompt",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.adapter",description:`<strong>adapter</strong> (<code>T2IAdapter</code> or <code>MultiAdapter</code> or <code>List[T2IAdapter]</code>) &#x2014;
Provides additional conditioning to the unet during the denoising process. If you set multiple Adapter as a
list, the outputs from each Adapter are added together to create one combined additional conditioning.`,name:"adapter"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.adapter_weights",description:`<strong>adapter_weights</strong> (<code>List[float]</code>, <em>optional</em>, defaults to None) &#x2014;
List of floats representing the weight which will be multiply to each adapter&#x2019;s output before adding them
together.`,name:"adapter_weights"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.22.1/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.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.StableDiffusionXLAdapterPipeline.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.StableDiffusionXLAdapterPipeline.unet",description:'<strong>unet</strong> (<a href="/docs/diffusers/v0.22.1/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014; Conditional U-Net architecture to denoise the encoded image latents.',name:"unet"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.22.1/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 latents. Can be one of
<a href="/docs/diffusers/v0.22.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/v0.22.1/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/v0.22.1/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.safety_checker",description:`<strong>safety_checker</strong> (<code>StableDiffusionSafetyChecker</code>) &#x2014;
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5" rel="nofollow">model card</a> for details.`,name:"safety_checker"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>CLIPFeatureExtractor</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.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L126"}}),It=new C({props:{name:"__call__",anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"prompt_2",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"image",val:": typing.Union[torch.Tensor, PIL.Image.Image, typing.List[PIL.Image.Image]] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"denoising_end",val:": typing.Optional[float] = None"},{name:"guidance_scale",val:": float = 5.0"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"negative_prompt_2",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[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:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_prompt_embeds",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:"cross_attention_kwargs",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"guidance_rescale",val:": float = 0.0"},{name:"original_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"},{name:"crops_coords_top_left",val:": typing.Tuple[int, int] = (0, 0)"},{name:"target_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"},{name:"negative_original_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"},{name:"negative_crops_coords_top_left",val:": typing.Tuple[int, int] = (0, 0)"},{name:"negative_target_size",val:": typing.Union[typing.Tuple[int, int], NoneType] = None"},{name:"adapter_conditioning_scale",val:": typing.Union[float, typing.List[float]] = 1.0"},{name:"adapter_conditioning_factor",val:": float = 1.0"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>.
instead.`,name:"prompt"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.prompt_2",description:`<strong>prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to be sent to the <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
used in both text-encoders`,name:"prompt_2"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>List[torch.FloatTensor]</code> or <code>List[PIL.Image.Image]</code> or <code>List[List[PIL.Image.Image]]</code>) &#x2014;
The Adapter input condition. Adapter uses this input condition to generate guidance to Unet. If the
type is specified as <code>Torch.FloatTensor</code>, it is passed to Adapter as is. PIL.Image.Image\` can also be
accepted as an image. The control image is automatically resized to fit the output image.`,name:"image"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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. Anything below 512 pixels won&#x2019;t work well for
<a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" rel="nofollow">stabilityai/stable-diffusion-xl-base-1.0</a>
and checkpoints that are not specifically fine-tuned on low resolutions.`,name:"height"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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. Anything below 512 pixels won&#x2019;t work well for
<a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" rel="nofollow">stabilityai/stable-diffusion-xl-base-1.0</a>
and checkpoints that are not specifically fine-tuned on low resolutions.`,name:"width"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__call__.denoising_end",description:`<strong>denoising_end</strong> (<code>float</code>, <em>optional</em>) &#x2014;
When specified, determines the fraction (between 0.0 and 1.0) of the total denoising process to be
completed before it is intentionally prematurely terminated. As a result, the returned sample will
still retain a substantial amount of noise as determined by the discrete timesteps selected by the
scheduler. The denoising_end parameter should ideally be utilized when this pipeline forms a part of a
&#x201C;Mixture of Denoisers&#x201D; multi-pipeline setup, as elaborated in <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl#refining-the-image-output" rel="nofollow"><strong>Refining the Image
Output</strong></a>`,name:"denoising_end"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 5.0) &#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.StableDiffusionXLAdapterPipeline.__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. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_prompt_2",description:`<strong>negative_prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation to be sent to <code>tokenizer_2</code> and
<code>text_encoder_2</code>. If not defined, <code>negative_prompt</code> is used in both text-encoders`,name:"negative_prompt_2"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__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.22.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[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.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__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 <code>~pipelines.stable_diffusion_xl.StableDiffusionAdapterPipelineOutput</code>
instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__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.StableDiffusionXLAdapterPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Guidance rescale factor proposed by <a href="https://arxiv.org/pdf/2305.08891.pdf" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a> <code>guidance_scale</code> is defined as <code>&#x3C6;</code> in equation 16. of
<a href="https://arxiv.org/pdf/2305.08891.pdf" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are Flawed</a>.
Guidance rescale factor should fix overexposure when using zero terminal SNR.`,name:"guidance_rescale"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.original_size",description:`<strong>original_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
If <code>original_size</code> is not the same as <code>target_size</code> the image will appear to be down- or upsampled.
<code>original_size</code> defaults to <code>(height, width)</code> if not specified. Part of SDXL&#x2019;s micro-conditioning as
explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"original_size"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.crops_coords_top_left",description:`<strong>crops_coords_top_left</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
<code>crops_coords_top_left</code> can be used to generate an image that appears to be &#x201C;cropped&#x201D; from the position
<code>crops_coords_top_left</code> downwards. Favorable, well-centered images are usually achieved by setting
<code>crops_coords_top_left</code> to (0, 0). Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"crops_coords_top_left"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.target_size",description:`<strong>target_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
For most cases, <code>target_size</code> should be set to the desired height and width of the generated image. If
not specified it will default to <code>(height, width)</code>. Part of SDXL&#x2019;s micro-conditioning as explained in
section 2.2 of <a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.
section 2.2 of <a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>.`,name:"target_size"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_original_size",description:`<strong>negative_original_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
To negatively condition the generation process based on a specific image resolution. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_original_size"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_crops_coords_top_left",description:`<strong>negative_crops_coords_top_left</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
To negatively condition the generation process based on a specific crop coordinates. Part of SDXL&#x2019;s
micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_crops_coords_top_left"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.negative_target_size",description:`<strong>negative_target_size</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (1024, 1024)) &#x2014;
To negatively condition the generation process based on a target image resolution. It should be as same
as the <code>target_size</code> for most cases. Part of SDXL&#x2019;s micro-conditioning as explained in section 2.2 of
<a href="https://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/2307.01952</a>. For more
information, refer to this issue thread: <a href="https://github.com/huggingface/diffusers/issues/4208" rel="nofollow">https://github.com/huggingface/diffusers/issues/4208</a>.`,name:"negative_target_size"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.adapter_conditioning_scale",description:`<strong>adapter_conditioning_scale</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The outputs of the adapter are multiplied by <code>adapter_conditioning_scale</code> before they are added to the
residual in the original unet. If multiple adapters are specified in init, you can set the
corresponding scale as a list.`,name:"adapter_conditioning_scale"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.adapter_conditioning_factor",description:`<strong>adapter_conditioning_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The fraction of timesteps for which adapter should be applied. If <code>adapter_conditioning_factor</code> is
<code>0.0</code>, adapter is not applied at all. If <code>adapter_conditioning_factor</code> is <code>1.0</code>, adapter is applied for
all timesteps. If <code>adapter_conditioning_factor</code> is <code>0.5</code>, adapter is applied for half of the timesteps.`,name:"adapter_conditioning_factor"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L673",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~pipelines.stable_diffusion.StableDiffusionAdapterPipelineOutput</code> if <code>return_dict</code> is True, otherwise a
<code>tuple</code>. When returning a tuple, the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~pipelines.stable_diffusion.StableDiffusionAdapterPipelineOutput</code> or <code>tuple</code></p>
`}}),ae=new Mn({props:{anchor:"diffusers.StableDiffusionXLAdapterPipeline.__call__.example",$$slots:{default:[di]},$$scope:{ctx:Z}}}),Ct=new C({props:{name:"enable_attention_slicing",anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_attention_slicing",parameters:[{name:"slice_size",val:": typing.Union[str, int, NoneType] = 'auto'"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_attention_slicing.slice_size",description:`<strong>slice_size</strong> (<code>str</code> or <code>int</code>, <em>optional</em>, defaults to <code>&quot;auto&quot;</code>) &#x2014;
When <code>&quot;auto&quot;</code>, halves the input to the attention heads, so attention will be computed in two steps. If
<code>&quot;max&quot;</code>, maximum amount of memory will be saved by running only one slice at a time. If a number is
provided, uses as many slices as <code>attention_head_dim // slice_size</code>. In this case, <code>attention_head_dim</code>
must be a multiple of <code>slice_size</code>.`,name:"slice_size"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2028"}}),se=new Ga({props:{warning:!0,$$slots:{default:[ci]},$$scope:{ctx:Z}}}),oe=new Mn({props:{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_attention_slicing.example",$$slots:{default:[fi]},$$scope:{ctx:Z}}}),Zt=new C({props:{name:"disable_attention_slicing",anchor:"diffusers.StableDiffusionXLAdapterPipeline.disable_attention_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2068"}}),kt=new C({props:{name:"enable_vae_slicing",anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L195"}}),jt=new C({props:{name:"disable_vae_slicing",anchor:"diffusers.StableDiffusionXLAdapterPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L203"}}),At=new C({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_xformers_memory_efficient_attention.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Override the default <code>None</code> operator for use as <code>op</code> argument to the
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.memory_efficient_attention" rel="nofollow"><code>memory_efficient_attention()</code></a>
function of xFormers.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L1967"}}),pe=new Ga({props:{warning:!0,$$slots:{default:[mi]},$$scope:{ctx:Z}}}),de=new Mn({props:{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[gi]},$$scope:{ctx:Z}}}),St=new C({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.StableDiffusionXLAdapterPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/pipeline_utils.py#L2002"}}),Gt=new C({props:{name:"disable_freeu",anchor:"diffusers.StableDiffusionXLAdapterPipeline.disable_freeu",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L669"}}),Dt=new C({props:{name:"disable_vae_tiling",anchor:"diffusers.StableDiffusionXLAdapterPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L220"}}),Lt=new C({props:{name:"enable_freeu",anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_freeu",parameters:[{name:"s1",val:": float"},{name:"s2",val:": float"},{name:"b1",val:": float"},{name:"b2",val:": float"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_freeu.s1",description:`<strong>s1</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s1"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_freeu.s2",description:`<strong>s2</strong> (<code>float</code>) &#x2014;
Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
mitigate &#x201C;oversmoothing effect&#x201D; in the enhanced denoising process.`,name:"s2"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_freeu.b1",description:"<strong>b1</strong> (<code>float</code>) &#x2014; Scaling factor for stage 1 to amplify the contributions of backbone features.",name:"b1"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_freeu.b2",description:"<strong>b2</strong> (<code>float</code>) &#x2014; Scaling factor for stage 2 to amplify the contributions of backbone features.",name:"b2"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L646"}}),Pt=new C({props:{name:"enable_vae_tiling",anchor:"diffusers.StableDiffusionXLAdapterPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L211"}}),Xt=new C({props:{name:"encode_prompt",anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt",parameters:[{name:"prompt",val:": str"},{name:"prompt_2",val:": typing.Optional[str] = None"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"num_images_per_prompt",val:": int = 1"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"negative_prompt",val:": typing.Optional[str] = None"},{name:"negative_prompt_2",val:": typing.Optional[str] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"negative_pooled_prompt_embeds",val:": typing.Optional[torch.FloatTensor] = None"},{name:"lora_scale",val:": typing.Optional[float] = None"},{name:"clip_skip",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.prompt_2",description:`<strong>prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to be sent to the <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
used in both text-encoders
device &#x2014; (<code>torch.device</code>):
torch device`,name:"prompt_2"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>) &#x2014;
number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>) &#x2014;
whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.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. If not defined, one has to pass
<code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is
less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.negative_prompt_2",description:`<strong>negative_prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts not to guide the image generation to be sent to <code>tokenizer_2</code> and
<code>text_encoder_2</code>. If not defined, <code>negative_prompt</code> is used in both text-encoders`,name:"negative_prompt_2"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not
provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.pooled_prompt_embeds",description:`<strong>pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting.
If not provided, pooled text embeddings will be generated from <code>prompt</code> input argument.`,name:"pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.negative_pooled_prompt_embeds",description:`<strong>negative_pooled_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative pooled text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, pooled negative_prompt_embeds will be generated from <code>negative_prompt</code>
input argument.`,name:"negative_pooled_prompt_embeds"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, <em>optional</em>) &#x2014;
A lora scale that will be applied to all LoRA layers of the text encoder if LoRA layers are loaded.`,name:"lora_scale"},{anchor:"diffusers.StableDiffusionXLAdapterPipeline.encode_prompt.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py#L228"}}),{c(){d=r("meta"),T=a(),y=r("p"),f=a(),m(w.$$.fragment),p=a(),m(M.$$.fragment),Jn=a(),ye=r("p"),ye.innerHTML=Fs,Un=a(),we=r("p"),we.textContent=Vs,$n=a(),ve=r("p"),ve.textContent=Es,In=a(),Te=r("p"),Te.innerHTML=Hs,Cn=a(),Me=r("p"),Me.innerHTML=Qs,Zn=a(),m(xe.$$.fragment),kn=a(),Je=r("table"),Je.innerHTML=zs,jn=a(),m(Ue.$$.fragment),An=a(),$e=r("p"),$e.innerHTML=Ys,Sn=a(),Ie=r("ol"),Ie.innerHTML=qs,Gn=a(),Ce=r("p"),Ce.innerHTML=Os,Dn=a(),m(Ze.$$.fragment),Ln=a(),ke=r("p"),ke.innerHTML=Ks,Pn=a(),je=r("p"),je.textContent=eo,Xn=a(),m(Ae.$$.fragment),Wn=a(),Se=r("p"),Se.textContent=to,Rn=a(),Ge=r("p"),Ge.innerHTML=no,Nn=a(),De=r("p"),De.textContent=ao,Bn=a(),m(Le.$$.fragment),Fn=a(),Pe=r("p"),Pe.textContent=so,Vn=a(),m(Xe.$$.fragment),En=a(),We=r("p"),We.innerHTML=oo,Hn=a(),m(Re.$$.fragment),Qn=a(),Ne=r("p"),Ne.innerHTML=io,zn=a(),Be=r("ol"),Be.innerHTML=ro,Yn=a(),Fe=r("p"),Fe.innerHTML=lo,qn=a(),m(Ve.$$.fragment),On=a(),Ee=r("p"),Ee.innerHTML=po,Kn=a(),He=r("p"),He.textContent=co,ea=a(),m(Qe.$$.fragment),ta=a(),ze=r("p"),ze.textContent=fo,na=a(),m(Ye.$$.fragment),aa=a(),qe=r("p"),qe.innerHTML=mo,sa=a(),m(Oe.$$.fragment),oa=a(),Ke=r("p"),Ke.innerHTML=go,ia=a(),m(et.$$.fragment),ra=a(),tt=r("table"),tt.innerHTML=uo,la=a(),m(nt.$$.fragment),pa=a(),at=r("p"),at.innerHTML=ho,da=a(),st=r("p"),st.textContent=_o,ca=a(),m(ot.$$.fragment),fa=a(),it=r("p"),it.textContent=bo,ma=a(),rt=r("p"),rt.innerHTML=yo,ga=a(),lt=r("p"),lt.innerHTML=wo,ua=a(),pt=r("p"),pt.innerHTML=vo,ha=a(),m(dt.$$.fragment),_a=a(),ct=r("p"),ct.innerHTML=To,ba=a(),m(ft.$$.fragment),ya=a(),mt=r("p"),mt.innerHTML=Mo,wa=a(),m(gt.$$.fragment),va=a(),x=r("div"),m(ut.$$.fragment),Da=a(),Vt=r("p"),Vt.innerHTML=xo,La=a(),Et=r("p"),Et.innerHTML=Jo,Pa=a(),N=r("div"),m(ht.$$.fragment),Xa=a(),Ht=r("p"),Ht.textContent=Uo,Wa=a(),m(E.$$.fragment),Ra=a(),j=r("div"),m(_t.$$.fragment),Na=a(),Qt=r("p"),Qt.textContent=$o,Ba=a(),m(H.$$.fragment),Fa=a(),m(Q.$$.fragment),Va=a(),z=r("div"),m(bt.$$.fragment),Ea=a(),zt=r("p"),zt.innerHTML=Io,Ha=a(),Y=r("div"),m(yt.$$.fragment),Qa=a(),Yt=r("p"),Yt.textContent=Co,za=a(),q=r("div"),m(wt.$$.fragment),Ya=a(),qt=r("p"),qt.innerHTML=Zo,qa=a(),A=r("div"),m(vt.$$.fragment),Oa=a(),Ot=r("p"),Ot.innerHTML=ko,Ka=a(),m(O.$$.fragment),es=a(),m(K.$$.fragment),ts=a(),ee=r("div"),m(Tt.$$.fragment),ns=a(),Kt=r("p"),Kt.innerHTML=jo,as=a(),te=r("div"),m(Mt.$$.fragment),ss=a(),en=r("p"),en.textContent=Ao,os=a(),S=r("div"),m(xt.$$.fragment),is=a(),tn=r("p"),tn.innerHTML=So,rs=a(),nn=r("p"),nn.textContent=Go,ls=a(),an=r("p"),an.innerHTML=Do,ps=a(),ne=r("div"),m(Jt.$$.fragment),ds=a(),sn=r("p"),sn.textContent=Lo,Ta=a(),m(Ut.$$.fragment),Ma=a(),v=r("div"),m($t.$$.fragment),cs=a(),on=r("p"),on.innerHTML=Po,fs=a(),rn=r("p"),rn.innerHTML=Xo,ms=a(),B=r("div"),m(It.$$.fragment),gs=a(),ln=r("p"),ln.textContent=Wo,us=a(),m(ae.$$.fragment),hs=a(),G=r("div"),m(Ct.$$.fragment),_s=a(),pn=r("p"),pn.textContent=Ro,bs=a(),m(se.$$.fragment),ys=a(),m(oe.$$.fragment),ws=a(),ie=r("div"),m(Zt.$$.fragment),vs=a(),dn=r("p"),dn.innerHTML=No,Ts=a(),re=r("div"),m(kt.$$.fragment),Ms=a(),cn=r("p"),cn.textContent=Bo,xs=a(),le=r("div"),m(jt.$$.fragment),Js=a(),fn=r("p"),fn.innerHTML=Fo,Us=a(),D=r("div"),m(At.$$.fragment),$s=a(),mn=r("p"),mn.innerHTML=Vo,Is=a(),m(pe.$$.fragment),Cs=a(),m(de.$$.fragment),Zs=a(),ce=r("div"),m(St.$$.fragment),ks=a(),gn=r("p"),gn.innerHTML=Eo,js=a(),fe=r("div"),m(Gt.$$.fragment),As=a(),un=r("p"),un.textContent=Ho,Ss=a(),me=r("div"),m(Dt.$$.fragment),Gs=a(),hn=r("p"),hn.innerHTML=Qo,Ds=a(),L=r("div"),m(Lt.$$.fragment),Ls=a(),_n=r("p"),_n.innerHTML=zo,Ps=a(),bn=r("p"),bn.textContent=Yo,Xs=a(),yn=r("p"),yn.innerHTML=qo,Ws=a(),ge=r("div"),m(Pt.$$.fragment),Rs=a(),wn=r("p"),wn.textContent=Oo,Ns=a(),ue=r("div"),m(Xt.$$.fragment),Bs=a(),vn=r("p"),vn.textContent=Ko,xa=a(),xn=r("p"),this.h()},l(e){const t=si("svelte-u9bgzb",document.head);d=l(t,"META",{name:!0,content:!0}),t.forEach(n),T=s(e),y=l(e,"P",{}),$(y).forEach(n),f=s(e),g(w.$$.fragment,e),p=s(e),g(M.$$.fragment,e),Jn=s(e),ye=l(e,"P",{"data-svelte-h":!0}),c(ye)!=="svelte-1frzd9j"&&(ye.innerHTML=Fs),Un=s(e),we=l(e,"P",{"data-svelte-h":!0}),c(we)!=="svelte-rz87yd"&&(we.textContent=Vs),$n=s(e),ve=l(e,"P",{"data-svelte-h":!0}),c(ve)!=="svelte-wu27l3"&&(ve.textContent=Es),In=s(e),Te=l(e,"P",{"data-svelte-h":!0}),c(Te)!=="svelte-1q9miql"&&(Te.innerHTML=Hs),Cn=s(e),Me=l(e,"P",{"data-svelte-h":!0}),c(Me)!=="svelte-1m3nepz"&&(Me.innerHTML=Qs),Zn=s(e),g(xe.$$.fragment,e),kn=s(e),Je=l(e,"TABLE",{"data-svelte-h":!0}),c(Je)!=="svelte-15wpul1"&&(Je.innerHTML=zs),jn=s(e),g(Ue.$$.fragment,e),An=s(e),$e=l(e,"P",{"data-svelte-h":!0}),c($e)!=="svelte-1e75dez"&&($e.innerHTML=Ys),Sn=s(e),Ie=l(e,"OL",{"data-svelte-h":!0}),c(Ie)!=="svelte-vn5u40"&&(Ie.innerHTML=qs),Gn=s(e),Ce=l(e,"P",{"data-svelte-h":!0}),c(Ce)!=="svelte-1gtojsx"&&(Ce.innerHTML=Os),Dn=s(e),g(Ze.$$.fragment,e),Ln=s(e),ke=l(e,"P",{"data-svelte-h":!0}),c(ke)!=="svelte-8mkiuz"&&(ke.innerHTML=Ks),Pn=s(e),je=l(e,"P",{"data-svelte-h":!0}),c(je)!=="svelte-1vnw3f1"&&(je.textContent=eo),Xn=s(e),g(Ae.$$.fragment,e),Wn=s(e),Se=l(e,"P",{"data-svelte-h":!0}),c(Se)!=="svelte-1nomn51"&&(Se.textContent=to),Rn=s(e),Ge=l(e,"P",{"data-svelte-h":!0}),c(Ge)!=="svelte-x98fz5"&&(Ge.innerHTML=no),Nn=s(e),De=l(e,"P",{"data-svelte-h":!0}),c(De)!=="svelte-1al420d"&&(De.textContent=ao),Bn=s(e),g(Le.$$.fragment,e),Fn=s(e),Pe=l(e,"P",{"data-svelte-h":!0}),c(Pe)!=="svelte-yyug88"&&(Pe.textContent=so),Vn=s(e),g(Xe.$$.fragment,e),En=s(e),We=l(e,"P",{"data-svelte-h":!0}),c(We)!=="svelte-b2o0wp"&&(We.innerHTML=oo),Hn=s(e),g(Re.$$.fragment,e),Qn=s(e),Ne=l(e,"P",{"data-svelte-h":!0}),c(Ne)!=="svelte-frnk8l"&&(Ne.innerHTML=io),zn=s(e),Be=l(e,"OL",{"data-svelte-h":!0}),c(Be)!=="svelte-19qrv8f"&&(Be.innerHTML=ro),Yn=s(e),Fe=l(e,"P",{"data-svelte-h":!0}),c(Fe)!=="svelte-1q04fzy"&&(Fe.innerHTML=lo),qn=s(e),g(Ve.$$.fragment,e),On=s(e),Ee=l(e,"P",{"data-svelte-h":!0}),c(Ee)!=="svelte-1651djs"&&(Ee.innerHTML=po),Kn=s(e),He=l(e,"P",{"data-svelte-h":!0}),c(He)!=="svelte-1e55rj3"&&(He.textContent=co),ea=s(e),g(Qe.$$.fragment,e),ta=s(e),ze=l(e,"P",{"data-svelte-h":!0}),c(ze)!=="svelte-yyug88"&&(ze.textContent=fo),na=s(e),g(Ye.$$.fragment,e),aa=s(e),qe=l(e,"P",{"data-svelte-h":!0}),c(qe)!=="svelte-1qebwe0"&&(qe.innerHTML=mo),sa=s(e),g(Oe.$$.fragment,e),oa=s(e),Ke=l(e,"P",{"data-svelte-h":!0}),c(Ke)!=="svelte-qop6by"&&(Ke.innerHTML=go),ia=s(e),g(et.$$.fragment,e),ra=s(e),tt=l(e,"TABLE",{"data-svelte-h":!0}),c(tt)!=="svelte-6239qt"&&(tt.innerHTML=uo),la=s(e),g(nt.$$.fragment,e),pa=s(e),at=l(e,"P",{"data-svelte-h":!0}),c(at)!=="svelte-1uq2woy"&&(at.innerHTML=ho),da=s(e),st=l(e,"P",{"data-svelte-h":!0}),c(st)!=="svelte-1huix7d"&&(st.textContent=_o),ca=s(e),g(ot.$$.fragment,e),fa=s(e),it=l(e,"P",{"data-svelte-h":!0}),c(it)!=="svelte-aevisk"&&(it.textContent=bo),ma=s(e),rt=l(e,"P",{"data-svelte-h":!0}),c(rt)!=="svelte-1k4lejl"&&(rt.innerHTML=yo),ga=s(e),lt=l(e,"P",{"data-svelte-h":!0}),c(lt)!=="svelte-17bkz9j"&&(lt.innerHTML=wo),ua=s(e),pt=l(e,"P",{"data-svelte-h":!0}),c(pt)!=="svelte-blouap"&&(pt.innerHTML=vo),ha=s(e),g(dt.$$.fragment,e),_a=s(e),ct=l(e,"P",{"data-svelte-h":!0}),c(ct)!=="svelte-1ec5fzf"&&(ct.innerHTML=To),ba=s(e),g(ft.$$.fragment,e),ya=s(e),mt=l(e,"P",{"data-svelte-h":!0}),c(mt)!=="svelte-1o5b21b"&&(mt.innerHTML=Mo),wa=s(e),g(gt.$$.fragment,e),va=s(e),x=l(e,"DIV",{class:!0});var U=$(x);g(ut.$$.fragment,U),Da=s(U),Vt=l(U,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-1pw3838"&&(Vt.innerHTML=xo),La=s(U),Et=l(U,"P",{"data-svelte-h":!0}),c(Et)!=="svelte-8scwgx"&&(Et.innerHTML=Jo),Pa=s(U),N=l(U,"DIV",{class:!0});var V=$(N);g(ht.$$.fragment,V),Xa=s(V),Ht=l(V,"P",{"data-svelte-h":!0}),c(Ht)!=="svelte-v78lg8"&&(Ht.textContent=Uo),Wa=s(V),g(E.$$.fragment,V),V.forEach(n),Ra=s(U),j=l(U,"DIV",{class:!0});var P=$(j);g(_t.$$.fragment,P),Na=s(P),Qt=l(P,"P",{"data-svelte-h":!0}),c(Qt)!=="svelte-10jaql7"&&(Qt.textContent=$o),Ba=s(P),g(H.$$.fragment,P),Fa=s(P),g(Q.$$.fragment,P),P.forEach(n),Va=s(U),z=l(U,"DIV",{class:!0});var Wt=$(z);g(bt.$$.fragment,Wt),Ea=s(Wt),zt=l(Wt,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-1lh0nh5"&&(zt.innerHTML=Io),Wt.forEach(n),Ha=s(U),Y=l(U,"DIV",{class:!0});var Rt=$(Y);g(yt.$$.fragment,Rt),Qa=s(Rt),Yt=l(Rt,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-14bnrb6"&&(Yt.textContent=Co),Rt.forEach(n),za=s(U),q=l(U,"DIV",{class:!0});var Nt=$(q);g(wt.$$.fragment,Nt),Ya=s(Nt),qt=l(Nt,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-1s3c06i"&&(qt.innerHTML=Zo),Nt.forEach(n),qa=s(U),A=l(U,"DIV",{class:!0});var X=$(A);g(vt.$$.fragment,X),Oa=s(X),Ot=l(X,"P",{"data-svelte-h":!0}),c(Ot)!=="svelte-e03q3e"&&(Ot.innerHTML=ko),Ka=s(X),g(O.$$.fragment,X),es=s(X),g(K.$$.fragment,X),X.forEach(n),ts=s(U),ee=l(U,"DIV",{class:!0});var Bt=$(ee);g(Tt.$$.fragment,Bt),ns=s(Bt),Kt=l(Bt,"P",{"data-svelte-h":!0}),c(Kt)!=="svelte-1vfte1e"&&(Kt.innerHTML=jo),Bt.forEach(n),as=s(U),te=l(U,"DIV",{class:!0});var Ft=$(te);g(Mt.$$.fragment,Ft),ss=s(Ft),en=l(Ft,"P",{"data-svelte-h":!0}),c(en)!=="svelte-psupw6"&&(en.textContent=Ao),Ft.forEach(n),os=s(U),S=l(U,"DIV",{class:!0});var W=$(S);g(xt.$$.fragment,W),is=s(W),tn=l(W,"P",{"data-svelte-h":!0}),c(tn)!=="svelte-1f3tmq1"&&(tn.innerHTML=So),rs=s(W),nn=l(W,"P",{"data-svelte-h":!0}),c(nn)!=="svelte-xjijlp"&&(nn.textContent=Go),ls=s(W),an=l(W,"P",{"data-svelte-h":!0}),c(an)!=="svelte-hy0nzs"&&(an.innerHTML=Do),W.forEach(n),ps=s(U),ne=l(U,"DIV",{class:!0});var Ua=$(ne);g(Jt.$$.fragment,Ua),ds=s(Ua),sn=l(Ua,"P",{"data-svelte-h":!0}),c(sn)!=="svelte-16q0ax1"&&(sn.textContent=Lo),Ua.forEach(n),U.forEach(n),Ta=s(e),g(Ut.$$.fragment,e),Ma=s(e),v=l(e,"DIV",{class:!0});var J=$(v);g($t.$$.fragment,J),cs=s(J),on=l(J,"P",{"data-svelte-h":!0}),c(on)!=="svelte-1pw3838"&&(on.innerHTML=Po),fs=s(J),rn=l(J,"P",{"data-svelte-h":!0}),c(rn)!=="svelte-8scwgx"&&(rn.innerHTML=Xo),ms=s(J),B=l(J,"DIV",{class:!0});var Tn=$(B);g(It.$$.fragment,Tn),gs=s(Tn),ln=l(Tn,"P",{"data-svelte-h":!0}),c(ln)!=="svelte-v78lg8"&&(ln.textContent=Wo),us=s(Tn),g(ae.$$.fragment,Tn),Tn.forEach(n),hs=s(J),G=l(J,"DIV",{class:!0});var he=$(G);g(Ct.$$.fragment,he),_s=s(he),pn=l(he,"P",{"data-svelte-h":!0}),c(pn)!=="svelte-10jaql7"&&(pn.textContent=Ro),bs=s(he),g(se.$$.fragment,he),ys=s(he),g(oe.$$.fragment,he),he.forEach(n),ws=s(J),ie=l(J,"DIV",{class:!0});var $a=$(ie);g(Zt.$$.fragment,$a),vs=s($a),dn=l($a,"P",{"data-svelte-h":!0}),c(dn)!=="svelte-1lh0nh5"&&(dn.innerHTML=No),$a.forEach(n),Ts=s(J),re=l(J,"DIV",{class:!0});var Ia=$(re);g(kt.$$.fragment,Ia),Ms=s(Ia),cn=l(Ia,"P",{"data-svelte-h":!0}),c(cn)!=="svelte-14bnrb6"&&(cn.textContent=Bo),Ia.forEach(n),xs=s(J),le=l(J,"DIV",{class:!0});var Ca=$(le);g(jt.$$.fragment,Ca),Js=s(Ca),fn=l(Ca,"P",{"data-svelte-h":!0}),c(fn)!=="svelte-1s3c06i"&&(fn.innerHTML=Fo),Ca.forEach(n),Us=s(J),D=l(J,"DIV",{class:!0});var _e=$(D);g(At.$$.fragment,_e),$s=s(_e),mn=l(_e,"P",{"data-svelte-h":!0}),c(mn)!=="svelte-e03q3e"&&(mn.innerHTML=Vo),Is=s(_e),g(pe.$$.fragment,_e),Cs=s(_e),g(de.$$.fragment,_e),_e.forEach(n),Zs=s(J),ce=l(J,"DIV",{class:!0});var Za=$(ce);g(St.$$.fragment,Za),ks=s(Za),gn=l(Za,"P",{"data-svelte-h":!0}),c(gn)!=="svelte-1vfte1e"&&(gn.innerHTML=Eo),Za.forEach(n),js=s(J),fe=l(J,"DIV",{class:!0});var ka=$(fe);g(Gt.$$.fragment,ka),As=s(ka),un=l(ka,"P",{"data-svelte-h":!0}),c(un)!=="svelte-psupw6"&&(un.textContent=Ho),ka.forEach(n),Ss=s(J),me=l(J,"DIV",{class:!0});var ja=$(me);g(Dt.$$.fragment,ja),Gs=s(ja),hn=l(ja,"P",{"data-svelte-h":!0}),c(hn)!=="svelte-pkn4ui"&&(hn.innerHTML=Qo),ja.forEach(n),Ds=s(J),L=l(J,"DIV",{class:!0});var be=$(L);g(Lt.$$.fragment,be),Ls=s(be),_n=l(be,"P",{"data-svelte-h":!0}),c(_n)!=="svelte-1f3tmq1"&&(_n.innerHTML=zo),Ps=s(be),bn=l(be,"P",{"data-svelte-h":!0}),c(bn)!=="svelte-xjijlp"&&(bn.textContent=Yo),Xs=s(be),yn=l(be,"P",{"data-svelte-h":!0}),c(yn)!=="svelte-hy0nzs"&&(yn.innerHTML=qo),be.forEach(n),Ws=s(J),ge=l(J,"DIV",{class:!0});var Aa=$(ge);g(Pt.$$.fragment,Aa),Rs=s(Aa),wn=l(Aa,"P",{"data-svelte-h":!0}),c(wn)!=="svelte-1xwrf7t"&&(wn.textContent=Oo),Aa.forEach(n),Ns=s(J),ue=l(J,"DIV",{class:!0});var Sa=$(ue);g(Xt.$$.fragment,Sa),Bs=s(Sa),vn=l(Sa,"P",{"data-svelte-h":!0}),c(vn)!=="svelte-16q0ax1"&&(vn.textContent=Ko),Sa.forEach(n),J.forEach(n),xa=s(e),xn=l(e,"P",{}),$(xn).forEach(n),this.h()},h(){I(d,"name","hf:doc:metadata"),I(d,"content",hi),I(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){o(document.head,d),i(e,T,t),i(e,y,t),i(e,f,t),u(w,e,t),i(e,p,t),u(M,e,t),i(e,Jn,t),i(e,ye,t),i(e,Un,t),i(e,we,t),i(e,$n,t),i(e,ve,t),i(e,In,t),i(e,Te,t),i(e,Cn,t),i(e,Me,t),i(e,Zn,t),u(xe,e,t),i(e,kn,t),i(e,Je,t),i(e,jn,t),u(Ue,e,t),i(e,An,t),i(e,$e,t),i(e,Sn,t),i(e,Ie,t),i(e,Gn,t),i(e,Ce,t),i(e,Dn,t),u(Ze,e,t),i(e,Ln,t),i(e,ke,t),i(e,Pn,t),i(e,je,t),i(e,Xn,t),u(Ae,e,t),i(e,Wn,t),i(e,Se,t),i(e,Rn,t),i(e,Ge,t),i(e,Nn,t),i(e,De,t),i(e,Bn,t),u(Le,e,t),i(e,Fn,t),i(e,Pe,t),i(e,Vn,t),u(Xe,e,t),i(e,En,t),i(e,We,t),i(e,Hn,t),u(Re,e,t),i(e,Qn,t),i(e,Ne,t),i(e,zn,t),i(e,Be,t),i(e,Yn,t),i(e,Fe,t),i(e,qn,t),u(Ve,e,t),i(e,On,t),i(e,Ee,t),i(e,Kn,t),i(e,He,t),i(e,ea,t),u(Qe,e,t),i(e,ta,t),i(e,ze,t),i(e,na,t),u(Ye,e,t),i(e,aa,t),i(e,qe,t),i(e,sa,t),u(Oe,e,t),i(e,oa,t),i(e,Ke,t),i(e,ia,t),u(et,e,t),i(e,ra,t),i(e,tt,t),i(e,la,t),u(nt,e,t),i(e,pa,t),i(e,at,t),i(e,da,t),i(e,st,t),i(e,ca,t),u(ot,e,t),i(e,fa,t),i(e,it,t),i(e,ma,t),i(e,rt,t),i(e,ga,t),i(e,lt,t),i(e,ua,t),i(e,pt,t),i(e,ha,t),u(dt,e,t),i(e,_a,t),i(e,ct,t),i(e,ba,t),u(ft,e,t),i(e,ya,t),i(e,mt,t),i(e,wa,t),u(gt,e,t),i(e,va,t),i(e,x,t),u(ut,x,null),o(x,Da),o(x,Vt),o(x,La),o(x,Et),o(x,Pa),o(x,N),u(ht,N,null),o(N,Xa),o(N,Ht),o(N,Wa),u(E,N,null),o(x,Ra),o(x,j),u(_t,j,null),o(j,Na),o(j,Qt),o(j,Ba),u(H,j,null),o(j,Fa),u(Q,j,null),o(x,Va),o(x,z),u(bt,z,null),o(z,Ea),o(z,zt),o(x,Ha),o(x,Y),u(yt,Y,null),o(Y,Qa),o(Y,Yt),o(x,za),o(x,q),u(wt,q,null),o(q,Ya),o(q,qt),o(x,qa),o(x,A),u(vt,A,null),o(A,Oa),o(A,Ot),o(A,Ka),u(O,A,null),o(A,es),u(K,A,null),o(x,ts),o(x,ee),u(Tt,ee,null),o(ee,ns),o(ee,Kt),o(x,as),o(x,te),u(Mt,te,null),o(te,ss),o(te,en),o(x,os),o(x,S),u(xt,S,null),o(S,is),o(S,tn),o(S,rs),o(S,nn),o(S,ls),o(S,an),o(x,ps),o(x,ne),u(Jt,ne,null),o(ne,ds),o(ne,sn),i(e,Ta,t),u(Ut,e,t),i(e,Ma,t),i(e,v,t),u($t,v,null),o(v,cs),o(v,on),o(v,fs),o(v,rn),o(v,ms),o(v,B),u(It,B,null),o(B,gs),o(B,ln),o(B,us),u(ae,B,null),o(v,hs),o(v,G),u(Ct,G,null),o(G,_s),o(G,pn),o(G,bs),u(se,G,null),o(G,ys),u(oe,G,null),o(v,ws),o(v,ie),u(Zt,ie,null),o(ie,vs),o(ie,dn),o(v,Ts),o(v,re),u(kt,re,null),o(re,Ms),o(re,cn),o(v,xs),o(v,le),u(jt,le,null),o(le,Js),o(le,fn),o(v,Us),o(v,D),u(At,D,null),o(D,$s),o(D,mn),o(D,Is),u(pe,D,null),o(D,Cs),u(de,D,null),o(v,Zs),o(v,ce),u(St,ce,null),o(ce,ks),o(ce,gn),o(v,js),o(v,fe),u(Gt,fe,null),o(fe,As),o(fe,un),o(v,Ss),o(v,me),u(Dt,me,null),o(me,Gs),o(me,hn),o(v,Ds),o(v,L),u(Lt,L,null),o(L,Ls),o(L,_n),o(L,Ps),o(L,bn),o(L,Xs),o(L,yn),o(v,Ws),o(v,ge),u(Pt,ge,null),o(ge,Rs),o(ge,wn),o(v,Ns),o(v,ue),u(Xt,ue,null),o(ue,Bs),o(ue,vn),i(e,xa,t),i(e,xn,t),Ja=!0},p(e,[t]){const U={};t&2&&(U.$$scope={dirty:t,ctx:e}),E.$set(U);const V={};t&2&&(V.$$scope={dirty:t,ctx:e}),H.$set(V);const P={};t&2&&(P.$$scope={dirty:t,ctx:e}),Q.$set(P);const Wt={};t&2&&(Wt.$$scope={dirty:t,ctx:e}),O.$set(Wt);const Rt={};t&2&&(Rt.$$scope={dirty:t,ctx:e}),K.$set(Rt);const Nt={};t&2&&(Nt.$$scope={dirty:t,ctx:e}),ae.$set(Nt);const X={};t&2&&(X.$$scope={dirty:t,ctx:e}),se.$set(X);const Bt={};t&2&&(Bt.$$scope={dirty:t,ctx:e}),oe.$set(Bt);const Ft={};t&2&&(Ft.$$scope={dirty:t,ctx:e}),pe.$set(Ft);const W={};t&2&&(W.$$scope={dirty:t,ctx:e}),de.$set(W)},i(e){Ja||(h(w.$$.fragment,e),h(M.$$.fragment,e),h(xe.$$.fragment,e),h(Ue.$$.fragment,e),h(Ze.$$.fragment,e),h(Ae.$$.fragment,e),h(Le.$$.fragment,e),h(Xe.$$.fragment,e),h(Re.$$.fragment,e),h(Ve.$$.fragment,e),h(Qe.$$.fragment,e),h(Ye.$$.fragment,e),h(Oe.$$.fragment,e),h(et.$$.fragment,e),h(nt.$$.fragment,e),h(ot.$$.fragment,e),h(dt.$$.fragment,e),h(ft.$$.fragment,e),h(gt.$$.fragment,e),h(ut.$$.fragment,e),h(ht.$$.fragment,e),h(E.$$.fragment,e),h(_t.$$.fragment,e),h(H.$$.fragment,e),h(Q.$$.fragment,e),h(bt.$$.fragment,e),h(yt.$$.fragment,e),h(wt.$$.fragment,e),h(vt.$$.fragment,e),h(O.$$.fragment,e),h(K.$$.fragment,e),h(Tt.$$.fragment,e),h(Mt.$$.fragment,e),h(xt.$$.fragment,e),h(Jt.$$.fragment,e),h(Ut.$$.fragment,e),h($t.$$.fragment,e),h(It.$$.fragment,e),h(ae.$$.fragment,e),h(Ct.$$.fragment,e),h(se.$$.fragment,e),h(oe.$$.fragment,e),h(Zt.$$.fragment,e),h(kt.$$.fragment,e),h(jt.$$.fragment,e),h(At.$$.fragment,e),h(pe.$$.fragment,e),h(de.$$.fragment,e),h(St.$$.fragment,e),h(Gt.$$.fragment,e),h(Dt.$$.fragment,e),h(Lt.$$.fragment,e),h(Pt.$$.fragment,e),h(Xt.$$.fragment,e),Ja=!0)},o(e){_(w.$$.fragment,e),_(M.$$.fragment,e),_(xe.$$.fragment,e),_(Ue.$$.fragment,e),_(Ze.$$.fragment,e),_(Ae.$$.fragment,e),_(Le.$$.fragment,e),_(Xe.$$.fragment,e),_(Re.$$.fragment,e),_(Ve.$$.fragment,e),_(Qe.$$.fragment,e),_(Ye.$$.fragment,e),_(Oe.$$.fragment,e),_(et.$$.fragment,e),_(nt.$$.fragment,e),_(ot.$$.fragment,e),_(dt.$$.fragment,e),_(ft.$$.fragment,e),_(gt.$$.fragment,e),_(ut.$$.fragment,e),_(ht.$$.fragment,e),_(E.$$.fragment,e),_(_t.$$.fragment,e),_(H.$$.fragment,e),_(Q.$$.fragment,e),_(bt.$$.fragment,e),_(yt.$$.fragment,e),_(wt.$$.fragment,e),_(vt.$$.fragment,e),_(O.$$.fragment,e),_(K.$$.fragment,e),_(Tt.$$.fragment,e),_(Mt.$$.fragment,e),_(xt.$$.fragment,e),_(Jt.$$.fragment,e),_(Ut.$$.fragment,e),_($t.$$.fragment,e),_(It.$$.fragment,e),_(ae.$$.fragment,e),_(Ct.$$.fragment,e),_(se.$$.fragment,e),_(oe.$$.fragment,e),_(Zt.$$.fragment,e),_(kt.$$.fragment,e),_(jt.$$.fragment,e),_(At.$$.fragment,e),_(pe.$$.fragment,e),_(de.$$.fragment,e),_(St.$$.fragment,e),_(Gt.$$.fragment,e),_(Dt.$$.fragment,e),_(Lt.$$.fragment,e),_(Pt.$$.fragment,e),_(Xt.$$.fragment,e),Ja=!1},d(e){e&&(n(T),n(y),n(f),n(p),n(Jn),n(ye),n(Un),n(we),n($n),n(ve),n(In),n(Te),n(Cn),n(Me),n(Zn),n(kn),n(Je),n(jn),n(An),n($e),n(Sn),n(Ie),n(Gn),n(Ce),n(Dn),n(Ln),n(ke),n(Pn),n(je),n(Xn),n(Wn),n(Se),n(Rn),n(Ge),n(Nn),n(De),n(Bn),n(Fn),n(Pe),n(Vn),n(En),n(We),n(Hn),n(Qn),n(Ne),n(zn),n(Be),n(Yn),n(Fe),n(qn),n(On),n(Ee),n(Kn),n(He),n(ea),n(ta),n(ze),n(na),n(aa),n(qe),n(sa),n(oa),n(Ke),n(ia),n(ra),n(tt),n(la),n(pa),n(at),n(da),n(st),n(ca),n(fa),n(it),n(ma),n(rt),n(ga),n(lt),n(ua),n(pt),n(ha),n(_a),n(ct),n(ba),n(ya),n(mt),n(wa),n(va),n(x),n(Ta),n(Ma),n(v),n(xa),n(xn)),n(d),b(w,e),b(M,e),b(xe,e),b(Ue,e),b(Ze,e),b(Ae,e),b(Le,e),b(Xe,e),b(Re,e),b(Ve,e),b(Qe,e),b(Ye,e),b(Oe,e),b(et,e),b(nt,e),b(ot,e),b(dt,e),b(ft,e),b(gt,e),b(ut),b(ht),b(E),b(_t),b(H),b(Q),b(bt),b(yt),b(wt),b(vt),b(O),b(K),b(Tt),b(Mt),b(xt),b(Jt),b(Ut,e),b($t),b(It),b(ae),b(Ct),b(se),b(oe),b(Zt),b(kt),b(jt),b(At),b(pe),b(de),b(St),b(Gt),b(Dt),b(Lt),b(Pt),b(Xt)}}}const hi='{"title":"Text-to-Image Generation with Adapter Conditioning","local":"text-to-image-generation-with-adapter-conditioning","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Available Pipelines:","local":"available-pipelines","sections":[],"depth":2},{"title":"Usage example with the base model of StableDiffusion-1.4/1.5","local":"usage-example-with-the-base-model-of-stablediffusion-1415","sections":[],"depth":2},{"title":"Usage example with the base model of StableDiffusion-XL","local":"usage-example-with-the-base-model-of-stablediffusion-xl","sections":[],"depth":2},{"title":"Available checkpoints","local":"available-checkpoints","sections":[{"title":"T2I-Adapter with Stable Diffusion 1.4","local":"t2i-adapter-with-stable-diffusion-14","sections":[],"depth":3}],"depth":2},{"title":"Combining multiple adapters","local":"combining-multiple-adapters","sections":[],"depth":2},{"title":"T2I Adapter vs ControlNet","local":"t2i-adapter-vs-controlnet","sections":[],"depth":2},{"title":"StableDiffusionAdapterPipeline","local":"diffusers.StableDiffusionAdapterPipeline","sections":[],"depth":2},{"title":"StableDiffusionXLAdapterPipeline","local":"diffusers.StableDiffusionXLAdapterPipeline","sections":[],"depth":2}],"depth":1}';function _i(Z){return ti(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ji extends ni{constructor(d){super(),ai(this,d,_i,ui,ei,{})}}export{Ji as component};
