import{s as Et,o as Ft,n as R}from"../chunks/scheduler.182ea377.js";import{S as Xt,i as Vt,g as c,s as l,r as h,A as Nt,h as p,f as s,c as d,j as M,u as _,x as I,k as $,y as r,a as m,v as b,d as y,t as v,w}from"../chunks/index.abf12888.js";import{T as wt}from"../chunks/Tip.230e2334.js";import{D as Z}from"../chunks/Docstring.93f6f462.js";import{C as Ae}from"../chunks/CodeBlock.57fe6e13.js";import{E as Pe}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as Bt}from"../chunks/Heading.16916d63.js";function Rt(x){let n,u="Examples:",a,o,f;return o=new Ae({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQW11c2VkUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwQW11c2VkUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMmFtdXNlZCUyRmFtdXNlZC01MTIlMjIlMkMlMjB2YXJpYW50JTNEJTIyZnAxNiUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUwQSklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMmElMjBwaG90byUyMG9mJTIwYW4lMjBhc3Ryb25hdXQlMjByaWRpbmclMjBhJTIwaG9yc2UlMjBvbiUyMG1hcnMlMjIlMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0KS5pbWFnZXMlNUIwJTVE",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> AmusedPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = AmusedPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;amused/amused-512&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<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>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>image = pipe(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function St(x){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=c("p"),n.textContent=u},l(a){n=p(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,o){m(a,n,o)},p:R,d(a){a&&s(n)}}}function Lt(x){let n,u="Examples:",a,o,f;return o=new Ae({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(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function Qt(x){let n,u="Examples:",a,o,f;return o=new Ae({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQW11c2VkSW1nMkltZ1BpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEElMEFwaXBlJTIwJTNEJTIwQW11c2VkSW1nMkltZ1BpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJhbXVzZWQlMkZhbXVzZWQtNTEyJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpJTBBcGlwZSUyMCUzRCUyMHBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJ3aW50ZXIlMjBtb3VudGFpbnMlMjIlMEFpbnB1dF9pbWFnZSUyMCUzRCUyMCglMEElMjAlMjAlMjAlMjBsb2FkX2ltYWdlKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRmRpZmZ1c2VycyUyRmRvY3MtaW1hZ2VzJTJGcmVzb2x2ZSUyRm1haW4lMkZvcGVuX211c2UlMkZtb3VudGFpbnMuanBnJTIyJTBBJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMC5yZXNpemUoKDUxMiUyQyUyMDUxMikpJTBBJTIwJTIwJTIwJTIwLmNvbnZlcnQoJTIyUkdCJTIyKSUwQSklMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0JTJDJTIwaW5wdXRfaW1hZ2UpLmltYWdlcyU1QjAlNUQ=",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> AmusedImg2ImgPipeline
<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>pipe = AmusedImg2ImgPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;amused/amused-512&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<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>prompt = <span class="hljs-string">&quot;winter mountains&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>input_image = (
<span class="hljs-meta">... </span>    load_image(
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/open_muse/mountains.jpg&quot;</span>
<span class="hljs-meta">... </span>    )
<span class="hljs-meta">... </span>    .resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))
<span class="hljs-meta">... </span>    .convert(<span class="hljs-string">&quot;RGB&quot;</span>)
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe(prompt, input_image).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function qt(x){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=c("p"),n.textContent=u},l(a){n=p(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,o){m(a,n,o)},p:R,d(a){a&&s(n)}}}function zt(x){let n,u="Examples:",a,o,f;return o=new Ae({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(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function Ht(x){let n,u="Examples:",a,o,f;return o=new Ae({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQW11c2VkSW5wYWludFBpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy51dGlscyUyMGltcG9ydCUyMGxvYWRfaW1hZ2UlMEElMEFwaXBlJTIwJTNEJTIwQW11c2VkSW5wYWludFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJhbXVzZWQlMkZhbXVzZWQtNTEyJTIyJTJDJTIwdmFyaWFudCUzRCUyMmZwMTYlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpJTBBcGlwZSUyMCUzRCUyMHBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJmYWxsJTIwbW91bnRhaW5zJTIyJTBBaW5wdXRfaW1hZ2UlMjAlM0QlMjAoJTBBJTIwJTIwJTIwJTIwbG9hZF9pbWFnZSglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZkaWZmdXNlcnMlMkZkb2NzLWltYWdlcyUyRnJlc29sdmUlMkZtYWluJTJGb3Blbl9tdXNlJTJGbW91bnRhaW5zXzEuanBnJTIyJTBBJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMC5yZXNpemUoKDUxMiUyQyUyMDUxMikpJTBBJTIwJTIwJTIwJTIwLmNvbnZlcnQoJTIyUkdCJTIyKSUwQSklMEFtYXNrJTIwJTNEJTIwKCUwQSUyMCUyMCUyMCUyMGxvYWRfaW1hZ2UoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGZGlmZnVzZXJzJTJGZG9jcy1pbWFnZXMlMkZyZXNvbHZlJTJGbWFpbiUyRm9wZW5fbXVzZSUyRm1vdW50YWluc18xX21hc2sucG5nJTIyJTBBJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMC5yZXNpemUoKDUxMiUyQyUyMDUxMikpJTBBJTIwJTIwJTIwJTIwLmNvbnZlcnQoJTIyTCUyMiklMEEpJTBBcGlwZShwcm9tcHQlMkMlMjBpbnB1dF9pbWFnZSUyQyUyMG1hc2spLmltYWdlcyU1QjAlNUQuc2F2ZSglMjJvdXQucG5nJTIyKQ==",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> AmusedInpaintPipeline
<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>pipe = AmusedInpaintPipeline.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;amused/amused-512&quot;</span>, variant=<span class="hljs-string">&quot;fp16&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<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>prompt = <span class="hljs-string">&quot;fall mountains&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>input_image = (
<span class="hljs-meta">... </span>    load_image(
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/open_muse/mountains_1.jpg&quot;</span>
<span class="hljs-meta">... </span>    )
<span class="hljs-meta">... </span>    .resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))
<span class="hljs-meta">... </span>    .convert(<span class="hljs-string">&quot;RGB&quot;</span>)
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = (
<span class="hljs-meta">... </span>    load_image(
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;https://huggingface.co/datasets/diffusers/docs-images/resolve/main/open_muse/mountains_1_mask.png&quot;</span>
<span class="hljs-meta">... </span>    )
<span class="hljs-meta">... </span>    .resize((<span class="hljs-number">512</span>, <span class="hljs-number">512</span>))
<span class="hljs-meta">... </span>    .convert(<span class="hljs-string">&quot;L&quot;</span>)
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(prompt, input_image, mask).images[<span class="hljs-number">0</span>].save(<span class="hljs-string">&quot;out.png&quot;</span>)`,wrap:!1}}),{c(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function Yt(x){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=c("p"),n.textContent=u},l(a){n=p(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,o){m(a,n,o)},p:R,d(a){a&&s(n)}}}function Ot(x){let n,u="Examples:",a,o,f;return o=new Ae({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(){n=c("p"),n.textContent=u,a=l(),h(o.$$.fragment)},l(t){n=p(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=d(t),_(o.$$.fragment,t)},m(t,g){m(t,n,g),m(t,a,g),b(o,t,g),f=!0},p:R,i(t){f||(y(o.$$.fragment,t),f=!0)},o(t){v(o.$$.fragment,t),f=!1},d(t){t&&(s(n),s(a)),w(o,t)}}}function Dt(x){let n,u,a,o,f,t,g,It='aMUSEd was introduced in <a href="https://huggingface.co/papers/2401.01808" rel="nofollow">aMUSEd: An Open MUSE Reproduction</a> by Suraj Patil, William Berman, Robin Rombach, and Patrick von Platen.',Ce,oe,xt='Amused is a lightweight text to image model based off of the <a href="https://arxiv.org/abs/2301.00704" rel="nofollow">MUSE</a> architecture. Amused is particularly useful in applications that require a lightweight and fast model such as generating many images quickly at once.',Be,se,Mt="Amused is a vqvae token based transformer that can generate an image in fewer forward passes than many diffusion models. In contrast with muse, it uses the smaller text encoder CLIP-L/14 instead of t5-xxl. Due to its small parameter count and few forward pass generation process, amused can generate many images quickly. This benefit is seen particularly at larger batch sizes.",Ee,ae,$t="The abstract from the paper is:",Fe,ie,Tt="<em>We present aMUSEd, an open-source, lightweight masked image model (MIM) for text-to-image generation based on MUSE. With 10 percent of MUSE’s parameters, aMUSEd is focused on fast image generation. We believe MIM is under-explored compared to latent diffusion, the prevailing approach for text-to-image generation. Compared to latent diffusion, MIM requires fewer inference steps and is more interpretable. Additionally, MIM can be fine-tuned to learn additional styles with only a single image. We hope to encourage further exploration of MIM by demonstrating its effectiveness on large-scale text-to-image generation and releasing reproducible training code. We also release checkpoints for two models which directly produce images at 256x256 and 512x512 resolutions.</em>",Xe,re,Jt='<thead><tr><th>Model</th> <th>Params</th></tr></thead> <tbody><tr><td><a href="https://huggingface.co/amused/amused-256" rel="nofollow">amused-256</a></td> <td>603M</td></tr> <tr><td><a href="https://huggingface.co/amused/amused-512" rel="nofollow">amused-512</a></td> <td>608M</td></tr></tbody>',Ve,le,Ne,T,de,ze,E,ce,He,xe,jt="The call function to the pipeline for generation.",Ye,S,Oe,U,pe,De,Me,Ut=`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.`,Ke,L,et,Q,tt,q,me,nt,$e,kt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Re,J,fe,ot,F,ue,st,Te,Wt="The call function to the pipeline for generation.",at,z,it,k,ge,rt,Je,Zt=`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.`,lt,H,dt,Y,ct,O,he,pt,je,Pt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Se,j,_e,mt,X,be,ft,Ue,At="The call function to the pipeline for generation.",ut,D,gt,W,ye,ht,ke,Gt=`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.`,_t,K,bt,ee,yt,te,ve,vt,We,Ct='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Le,Ge,Qe;return f=new Bt({props:{title:"aMUSEd",local:"amused",headingTag:"h1"}}),le=new Bt({props:{title:"AmusedPipeline",local:"diffusers.AmusedPipeline",headingTag:"h2"}}),de=new Z({props:{name:"class diffusers.AmusedPipeline",anchor:"diffusers.AmusedPipeline",parameters:[{name:"vqvae",val:": VQModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": CLIPTextModelWithProjection"},{name:"transformer",val:": UVit2DModel"},{name:"scheduler",val:": AmusedScheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused.py#L44"}}),ce=new Z({props:{name:"__call__",anchor:"diffusers.AmusedPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"height",val:": Optional = None"},{name:"width",val:": Optional = None"},{name:"num_inference_steps",val:": int = 12"},{name:"guidance_scale",val:": float = 10.0"},{name:"negative_prompt",val:": Union = None"},{name:"num_images_per_prompt",val:": Optional = 1"},{name:"generator",val:": Optional = None"},{name:"latents",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"encoder_hidden_states",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"negative_encoder_hidden_states",val:": Optional = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": Optional = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": Optional = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": Tuple = (0, 0)"},{name:"temperature",val:": Union = (2, 0)"}],parametersDescription:[{anchor:"diffusers.AmusedPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.AmusedPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.transformer.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.AmusedPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.unet.config.sample_size * self.vae_scale_factor</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.AmusedPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#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.AmusedPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 10.0) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.AmusedPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.AmusedPipeline.__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.AmusedPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.AmusedPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.IntTensor</code>, <em>optional</em>) &#x2014;
Pre-generated tokens representing latent vectors in <code>self.vqvae</code>, to be used as inputs for image
gneration. If not provided, the starting latents will be completely masked.`,name:"latents"},{anchor:"diffusers.AmusedPipeline.__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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument. A single vector from the
pooled and projected final hidden states.`,name:"prompt_embeds"},{anchor:"diffusers.AmusedPipeline.__call__.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated penultimate hidden states from the text encoder providing additional text conditioning.`,name:"encoder_hidden_states"},{anchor:"diffusers.AmusedPipeline.__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 (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.AmusedPipeline.__call__.negative_encoder_hidden_states",description:`<strong>negative_encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Analogous to <code>encoder_hidden_states</code> for the positive prompt.`,name:"negative_encoder_hidden_states"},{anchor:"diffusers.AmusedPipeline.__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 generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.AmusedPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.AmusedPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.AmusedPipeline.__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 is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.AmusedPipeline.__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 in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.AmusedPipeline.__call__.micro_conditioning_aesthetic_score",description:`<strong>micro_conditioning_aesthetic_score</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
The targeted aesthetic score according to the laion aesthetic classifier. See <a href="https://laion.ai/blog/laion-aesthetics/" rel="nofollow">https://laion.ai/blog/laion-aesthetics/</a>
and the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_aesthetic_score"},{anchor:"diffusers.AmusedPipeline.__call__.micro_conditioning_crop_coord",description:`<strong>micro_conditioning_crop_coord</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
The targeted height, width crop coordinates. See the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_crop_coord"},{anchor:"diffusers.AmusedPipeline.__call__.temperature",description:`<strong>temperature</strong> (<code>Union[int, Tuple[int, int], List[int]]</code>, <em>optional</em>, defaults to (2, 0)) &#x2014;
Configures the temperature scheduler on <code>self.scheduler</code> see <code>AmusedScheduler#set_timesteps</code>.`,name:"temperature"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused.py#L74",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> is returned, otherwise a
<code>tuple</code> is returned where the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),S=new Pe({props:{anchor:"diffusers.AmusedPipeline.__call__.example",$$slots:{default:[Rt]},$$scope:{ctx:x}}}),pe=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.AmusedPipeline.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/main/src/diffusers/pipelines/pipeline_utils.py#L1991"}}),L=new wt({props:{warning:!0,$$slots:{default:[St]},$$scope:{ctx:x}}}),Q=new Pe({props:{anchor:"diffusers.AmusedPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Lt]},$$scope:{ctx:x}}}),me=new Z({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L2026"}}),fe=new Z({props:{name:"class diffusers.AmusedImg2ImgPipeline",anchor:"diffusers.AmusedImg2ImgPipeline",parameters:[{name:"vqvae",val:": VQModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": CLIPTextModelWithProjection"},{name:"transformer",val:": UVit2DModel"},{name:"scheduler",val:": AmusedScheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused_img2img.py#L52"}}),ue=new Z({props:{name:"__call__",anchor:"diffusers.AmusedImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"image",val:": Union = None"},{name:"strength",val:": float = 0.5"},{name:"num_inference_steps",val:": int = 12"},{name:"guidance_scale",val:": float = 10.0"},{name:"negative_prompt",val:": Union = None"},{name:"num_images_per_prompt",val:": Optional = 1"},{name:"generator",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"encoder_hidden_states",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"negative_encoder_hidden_states",val:": Optional = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": Optional = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": Optional = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": Tuple = (0, 0)"},{name:"temperature",val:": Union = (2, 0)"}],parametersDescription:[{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.FloatTensor]</code>, <code>List[PIL.Image.Image]</code>, or <code>List[np.ndarray]</code>) &#x2014;
<code>Image</code>, numpy array or tensor representing an image batch to be used as the starting point. For both
numpy array and pytorch tensor, the expected value range is between <code>[0, 1]</code> If it&#x2019;s a tensor or a list
or tensors, the expected shape should be <code>(B, C, H, W)</code> or <code>(C, H, W)</code>. If it is a numpy array or a
list of arrays, the expected shape should be <code>(B, H, W, C)</code> or <code>(H, W, C)</code> It can also accept image
latents as <code>image</code>, but if passing latents directly it is not encoded again.`,name:"image"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Indicates extent to transform the reference <code>image</code>. Must be between 0 and 1. <code>image</code> is used as a
starting point and more noise is added the higher the <code>strength</code>. The number of denoising steps depends
on the amount of noise initially added. When <code>strength</code> is 1, added noise is maximum and the denoising
process runs for the full number of iterations specified in <code>num_inference_steps</code>. A value of 1
essentially ignores <code>image</code>.`,name:"strength"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#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.AmusedImg2ImgPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 10.0) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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.AmusedImg2ImgPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument. A single vector from the
pooled and projected final hidden states.`,name:"prompt_embeds"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated penultimate hidden states from the text encoder providing additional text conditioning.`,name:"encoder_hidden_states"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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 (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.negative_encoder_hidden_states",description:`<strong>negative_encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Analogous to <code>encoder_hidden_states</code> for the positive prompt.`,name:"negative_encoder_hidden_states"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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 generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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 is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.AmusedImg2ImgPipeline.__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 in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.micro_conditioning_aesthetic_score",description:`<strong>micro_conditioning_aesthetic_score</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
The targeted aesthetic score according to the laion aesthetic classifier. See <a href="https://laion.ai/blog/laion-aesthetics/" rel="nofollow">https://laion.ai/blog/laion-aesthetics/</a>
and the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_aesthetic_score"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.micro_conditioning_crop_coord",description:`<strong>micro_conditioning_crop_coord</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
The targeted height, width crop coordinates. See the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_crop_coord"},{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.temperature",description:`<strong>temperature</strong> (<code>Union[int, Tuple[int, int], List[int]]</code>, <em>optional</em>, defaults to (2, 0)) &#x2014;
Configures the temperature scheduler on <code>self.scheduler</code> see <code>AmusedScheduler#set_timesteps</code>.`,name:"temperature"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused_img2img.py#L87",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> is returned, otherwise a
<code>tuple</code> is returned where the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),z=new Pe({props:{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.example",$$slots:{default:[Qt]},$$scope:{ctx:x}}}),ge=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedImg2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.AmusedImg2ImgPipeline.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/main/src/diffusers/pipelines/pipeline_utils.py#L1991"}}),H=new wt({props:{warning:!0,$$slots:{default:[qt]},$$scope:{ctx:x}}}),Y=new Pe({props:{anchor:"diffusers.AmusedImg2ImgPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[zt]},$$scope:{ctx:x}}}),he=new Z({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedImg2ImgPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L2026"}}),_e=new Z({props:{name:"class diffusers.AmusedInpaintPipeline",anchor:"diffusers.AmusedInpaintPipeline",parameters:[{name:"vqvae",val:": VQModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"text_encoder",val:": CLIPTextModelWithProjection"},{name:"transformer",val:": UVit2DModel"},{name:"scheduler",val:": AmusedScheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py#L60"}}),be=new Z({props:{name:"__call__",anchor:"diffusers.AmusedInpaintPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"image",val:": Union = None"},{name:"mask_image",val:": Union = None"},{name:"strength",val:": float = 1.0"},{name:"num_inference_steps",val:": int = 12"},{name:"guidance_scale",val:": float = 10.0"},{name:"negative_prompt",val:": Union = None"},{name:"num_images_per_prompt",val:": Optional = 1"},{name:"generator",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"encoder_hidden_states",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"negative_encoder_hidden_states",val:": Optional = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": Optional = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": Optional = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": Tuple = (0, 0)"},{name:"temperature",val:": Union = (2, 0)"}],parametersDescription:[{anchor:"diffusers.AmusedInpaintPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide image generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.image",description:`<strong>image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.FloatTensor]</code>, <code>List[PIL.Image.Image]</code>, or <code>List[np.ndarray]</code>) &#x2014;
<code>Image</code>, numpy array or tensor representing an image batch to be used as the starting point. For both
numpy array and pytorch tensor, the expected value range is between <code>[0, 1]</code> If it&#x2019;s a tensor or a list
or tensors, the expected shape should be <code>(B, C, H, W)</code> or <code>(C, H, W)</code>. If it is a numpy array or a
list of arrays, the expected shape should be <code>(B, H, W, C)</code> or <code>(H, W, C)</code> It can also accept image
latents as <code>image</code>, but if passing latents directly it is not encoded again.`,name:"image"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.mask_image",description:`<strong>mask_image</strong> (<code>torch.FloatTensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.FloatTensor]</code>, <code>List[PIL.Image.Image]</code>, or <code>List[np.ndarray]</code>) &#x2014;
<code>Image</code>, numpy array or tensor representing an image batch to mask <code>image</code>. White pixels in the mask
are repainted while black pixels are preserved. If <code>mask_image</code> is a PIL image, it is converted to a
single channel (luminance) before use. If it&#x2019;s a numpy array or pytorch tensor, it should contain one
color channel (L) instead of 3, so the expected shape for pytorch tensor would be <code>(B, 1, H, W)</code>, <code>(B, H, W)</code>, <code>(1, H, W)</code>, <code>(H, W)</code>. And for numpy array would be for <code>(B, H, W, 1)</code>, <code>(B, H, W)</code>, <code>(H, W, 1)</code>, or <code>(H, W)</code>.`,name:"mask_image"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Indicates extent to transform the reference <code>image</code>. Must be between 0 and 1. <code>image</code> is used as a
starting point and more noise is added the higher the <code>strength</code>. The number of denoising steps depends
on the amount of noise initially added. When <code>strength</code> is 1, added noise is maximum and the denoising
process runs for the full number of iterations specified in <code>num_inference_steps</code>. A value of 1
essentially ignores <code>image</code>.`,name:"strength"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#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.AmusedInpaintPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 10.0) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in image generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.AmusedInpaintPipeline.__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.AmusedInpaintPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.AmusedInpaintPipeline.__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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument. A single vector from the
pooled and projected final hidden states.`,name:"prompt_embeds"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.encoder_hidden_states",description:`<strong>encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated penultimate hidden states from the text encoder providing additional text conditioning.`,name:"encoder_hidden_states"},{anchor:"diffusers.AmusedInpaintPipeline.__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 (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.negative_encoder_hidden_states",description:`<strong>negative_encoder_hidden_states</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Analogous to <code>encoder_hidden_states</code> for the positive prompt.`,name:"negative_encoder_hidden_states"},{anchor:"diffusers.AmusedInpaintPipeline.__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 generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.AmusedInpaintPipeline.__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 is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.AmusedInpaintPipeline.__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 in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.micro_conditioning_aesthetic_score",description:`<strong>micro_conditioning_aesthetic_score</strong> (<code>int</code>, <em>optional</em>, defaults to 6) &#x2014;
The targeted aesthetic score according to the laion aesthetic classifier. See <a href="https://laion.ai/blog/laion-aesthetics/" rel="nofollow">https://laion.ai/blog/laion-aesthetics/</a>
and the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_aesthetic_score"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.micro_conditioning_crop_coord",description:`<strong>micro_conditioning_crop_coord</strong> (<code>Tuple[int]</code>, <em>optional</em>, defaults to (0, 0)) &#x2014;
The targeted height, width crop coordinates. See the micro-conditioning section of <a href="https://arxiv.org/abs/2307.01952" rel="nofollow">https://arxiv.org/abs/2307.01952</a>.`,name:"micro_conditioning_crop_coord"},{anchor:"diffusers.AmusedInpaintPipeline.__call__.temperature",description:`<strong>temperature</strong> (<code>Union[int, Tuple[int, int], List[int]]</code>, <em>optional</em>, defaults to (2, 0)) &#x2014;
Configures the temperature scheduler on <code>self.scheduler</code> see <code>AmusedScheduler#set_timesteps</code>.`,name:"temperature"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> is returned, otherwise a
<code>tuple</code> is returned where the first element is a list with the generated images.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/dit#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),D=new Pe({props:{anchor:"diffusers.AmusedInpaintPipeline.__call__.example",$$slots:{default:[Ht]},$$scope:{ctx:x}}}),ye=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedInpaintPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": Optional = None"}],parametersDescription:[{anchor:"diffusers.AmusedInpaintPipeline.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/main/src/diffusers/pipelines/pipeline_utils.py#L1991"}}),K=new wt({props:{warning:!0,$$slots:{default:[Yt]},$$scope:{ctx:x}}}),ee=new Pe({props:{anchor:"diffusers.AmusedInpaintPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Ot]},$$scope:{ctx:x}}}),ve=new Z({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedInpaintPipeline.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L2026"}}),{c(){n=c("meta"),u=l(),a=c("p"),o=l(),h(f.$$.fragment),t=l(),g=c("p"),g.innerHTML=It,Ce=l(),oe=c("p"),oe.innerHTML=xt,Be=l(),se=c("p"),se.textContent=Mt,Ee=l(),ae=c("p"),ae.textContent=$t,Fe=l(),ie=c("p"),ie.innerHTML=Tt,Xe=l(),re=c("table"),re.innerHTML=Jt,Ve=l(),h(le.$$.fragment),Ne=l(),T=c("div"),h(de.$$.fragment),ze=l(),E=c("div"),h(ce.$$.fragment),He=l(),xe=c("p"),xe.textContent=jt,Ye=l(),h(S.$$.fragment),Oe=l(),U=c("div"),h(pe.$$.fragment),De=l(),Me=c("p"),Me.innerHTML=Ut,Ke=l(),h(L.$$.fragment),et=l(),h(Q.$$.fragment),tt=l(),q=c("div"),h(me.$$.fragment),nt=l(),$e=c("p"),$e.innerHTML=kt,Re=l(),J=c("div"),h(fe.$$.fragment),ot=l(),F=c("div"),h(ue.$$.fragment),st=l(),Te=c("p"),Te.textContent=Wt,at=l(),h(z.$$.fragment),it=l(),k=c("div"),h(ge.$$.fragment),rt=l(),Je=c("p"),Je.innerHTML=Zt,lt=l(),h(H.$$.fragment),dt=l(),h(Y.$$.fragment),ct=l(),O=c("div"),h(he.$$.fragment),pt=l(),je=c("p"),je.innerHTML=Pt,Se=l(),j=c("div"),h(_e.$$.fragment),mt=l(),X=c("div"),h(be.$$.fragment),ft=l(),Ue=c("p"),Ue.textContent=At,ut=l(),h(D.$$.fragment),gt=l(),W=c("div"),h(ye.$$.fragment),ht=l(),ke=c("p"),ke.innerHTML=Gt,_t=l(),h(K.$$.fragment),bt=l(),h(ee.$$.fragment),yt=l(),te=c("div"),h(ve.$$.fragment),vt=l(),We=c("p"),We.innerHTML=Ct,Le=l(),Ge=c("p"),this.h()},l(e){const i=Nt("svelte-u9bgzb",document.head);n=p(i,"META",{name:!0,content:!0}),i.forEach(s),u=d(e),a=p(e,"P",{}),M(a).forEach(s),o=d(e),_(f.$$.fragment,e),t=d(e),g=p(e,"P",{"data-svelte-h":!0}),I(g)!=="svelte-1lfaywv"&&(g.innerHTML=It),Ce=d(e),oe=p(e,"P",{"data-svelte-h":!0}),I(oe)!=="svelte-97ks8s"&&(oe.innerHTML=xt),Be=d(e),se=p(e,"P",{"data-svelte-h":!0}),I(se)!=="svelte-1onstaw"&&(se.textContent=Mt),Ee=d(e),ae=p(e,"P",{"data-svelte-h":!0}),I(ae)!=="svelte-1cwsb16"&&(ae.textContent=$t),Fe=d(e),ie=p(e,"P",{"data-svelte-h":!0}),I(ie)!=="svelte-t2fzna"&&(ie.innerHTML=Tt),Xe=d(e),re=p(e,"TABLE",{"data-svelte-h":!0}),I(re)!=="svelte-186adnx"&&(re.innerHTML=Jt),Ve=d(e),_(le.$$.fragment,e),Ne=d(e),T=p(e,"DIV",{class:!0});var P=M(T);_(de.$$.fragment,P),ze=d(P),E=p(P,"DIV",{class:!0});var V=M(E);_(ce.$$.fragment,V),He=d(V),xe=p(V,"P",{"data-svelte-h":!0}),I(xe)!=="svelte-50j04k"&&(xe.textContent=jt),Ye=d(V),_(S.$$.fragment,V),V.forEach(s),Oe=d(P),U=p(P,"DIV",{class:!0});var A=M(U);_(pe.$$.fragment,A),De=d(A),Me=p(A,"P",{"data-svelte-h":!0}),I(Me)!=="svelte-e03q3e"&&(Me.innerHTML=Ut),Ke=d(A),_(L.$$.fragment,A),et=d(A),_(Q.$$.fragment,A),A.forEach(s),tt=d(P),q=p(P,"DIV",{class:!0});var we=M(q);_(me.$$.fragment,we),nt=d(we),$e=p(we,"P",{"data-svelte-h":!0}),I($e)!=="svelte-1vfte1e"&&($e.innerHTML=kt),we.forEach(s),P.forEach(s),Re=d(e),J=p(e,"DIV",{class:!0});var G=M(J);_(fe.$$.fragment,G),ot=d(G),F=p(G,"DIV",{class:!0});var N=M(F);_(ue.$$.fragment,N),st=d(N),Te=p(N,"P",{"data-svelte-h":!0}),I(Te)!=="svelte-50j04k"&&(Te.textContent=Wt),at=d(N),_(z.$$.fragment,N),N.forEach(s),it=d(G),k=p(G,"DIV",{class:!0});var C=M(k);_(ge.$$.fragment,C),rt=d(C),Je=p(C,"P",{"data-svelte-h":!0}),I(Je)!=="svelte-e03q3e"&&(Je.innerHTML=Zt),lt=d(C),_(H.$$.fragment,C),dt=d(C),_(Y.$$.fragment,C),C.forEach(s),ct=d(G),O=p(G,"DIV",{class:!0});var Ie=M(O);_(he.$$.fragment,Ie),pt=d(Ie),je=p(Ie,"P",{"data-svelte-h":!0}),I(je)!=="svelte-1vfte1e"&&(je.innerHTML=Pt),Ie.forEach(s),G.forEach(s),Se=d(e),j=p(e,"DIV",{class:!0});var B=M(j);_(_e.$$.fragment,B),mt=d(B),X=p(B,"DIV",{class:!0});var Ze=M(X);_(be.$$.fragment,Ze),ft=d(Ze),Ue=p(Ze,"P",{"data-svelte-h":!0}),I(Ue)!=="svelte-50j04k"&&(Ue.textContent=At),ut=d(Ze),_(D.$$.fragment,Ze),Ze.forEach(s),gt=d(B),W=p(B,"DIV",{class:!0});var ne=M(W);_(ye.$$.fragment,ne),ht=d(ne),ke=p(ne,"P",{"data-svelte-h":!0}),I(ke)!=="svelte-e03q3e"&&(ke.innerHTML=Gt),_t=d(ne),_(K.$$.fragment,ne),bt=d(ne),_(ee.$$.fragment,ne),ne.forEach(s),yt=d(B),te=p(B,"DIV",{class:!0});var qe=M(te);_(ve.$$.fragment,qe),vt=d(qe),We=p(qe,"P",{"data-svelte-h":!0}),I(We)!=="svelte-1vfte1e"&&(We.innerHTML=Ct),qe.forEach(s),B.forEach(s),Le=d(e),Ge=p(e,"P",{}),M(Ge).forEach(s),this.h()},h(){$(n,"name","hf:doc:metadata"),$(n,"content",Kt),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(j,"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,i){r(document.head,n),m(e,u,i),m(e,a,i),m(e,o,i),b(f,e,i),m(e,t,i),m(e,g,i),m(e,Ce,i),m(e,oe,i),m(e,Be,i),m(e,se,i),m(e,Ee,i),m(e,ae,i),m(e,Fe,i),m(e,ie,i),m(e,Xe,i),m(e,re,i),m(e,Ve,i),b(le,e,i),m(e,Ne,i),m(e,T,i),b(de,T,null),r(T,ze),r(T,E),b(ce,E,null),r(E,He),r(E,xe),r(E,Ye),b(S,E,null),r(T,Oe),r(T,U),b(pe,U,null),r(U,De),r(U,Me),r(U,Ke),b(L,U,null),r(U,et),b(Q,U,null),r(T,tt),r(T,q),b(me,q,null),r(q,nt),r(q,$e),m(e,Re,i),m(e,J,i),b(fe,J,null),r(J,ot),r(J,F),b(ue,F,null),r(F,st),r(F,Te),r(F,at),b(z,F,null),r(J,it),r(J,k),b(ge,k,null),r(k,rt),r(k,Je),r(k,lt),b(H,k,null),r(k,dt),b(Y,k,null),r(J,ct),r(J,O),b(he,O,null),r(O,pt),r(O,je),m(e,Se,i),m(e,j,i),b(_e,j,null),r(j,mt),r(j,X),b(be,X,null),r(X,ft),r(X,Ue),r(X,ut),b(D,X,null),r(j,gt),r(j,W),b(ye,W,null),r(W,ht),r(W,ke),r(W,_t),b(K,W,null),r(W,bt),b(ee,W,null),r(j,yt),r(j,te),b(ve,te,null),r(te,vt),r(te,We),m(e,Le,i),m(e,Ge,i),Qe=!0},p(e,[i]){const P={};i&2&&(P.$$scope={dirty:i,ctx:e}),S.$set(P);const V={};i&2&&(V.$$scope={dirty:i,ctx:e}),L.$set(V);const A={};i&2&&(A.$$scope={dirty:i,ctx:e}),Q.$set(A);const we={};i&2&&(we.$$scope={dirty:i,ctx:e}),z.$set(we);const G={};i&2&&(G.$$scope={dirty:i,ctx:e}),H.$set(G);const N={};i&2&&(N.$$scope={dirty:i,ctx:e}),Y.$set(N);const C={};i&2&&(C.$$scope={dirty:i,ctx:e}),D.$set(C);const Ie={};i&2&&(Ie.$$scope={dirty:i,ctx:e}),K.$set(Ie);const B={};i&2&&(B.$$scope={dirty:i,ctx:e}),ee.$set(B)},i(e){Qe||(y(f.$$.fragment,e),y(le.$$.fragment,e),y(de.$$.fragment,e),y(ce.$$.fragment,e),y(S.$$.fragment,e),y(pe.$$.fragment,e),y(L.$$.fragment,e),y(Q.$$.fragment,e),y(me.$$.fragment,e),y(fe.$$.fragment,e),y(ue.$$.fragment,e),y(z.$$.fragment,e),y(ge.$$.fragment,e),y(H.$$.fragment,e),y(Y.$$.fragment,e),y(he.$$.fragment,e),y(_e.$$.fragment,e),y(be.$$.fragment,e),y(D.$$.fragment,e),y(ye.$$.fragment,e),y(K.$$.fragment,e),y(ee.$$.fragment,e),y(ve.$$.fragment,e),Qe=!0)},o(e){v(f.$$.fragment,e),v(le.$$.fragment,e),v(de.$$.fragment,e),v(ce.$$.fragment,e),v(S.$$.fragment,e),v(pe.$$.fragment,e),v(L.$$.fragment,e),v(Q.$$.fragment,e),v(me.$$.fragment,e),v(fe.$$.fragment,e),v(ue.$$.fragment,e),v(z.$$.fragment,e),v(ge.$$.fragment,e),v(H.$$.fragment,e),v(Y.$$.fragment,e),v(he.$$.fragment,e),v(_e.$$.fragment,e),v(be.$$.fragment,e),v(D.$$.fragment,e),v(ye.$$.fragment,e),v(K.$$.fragment,e),v(ee.$$.fragment,e),v(ve.$$.fragment,e),Qe=!1},d(e){e&&(s(u),s(a),s(o),s(t),s(g),s(Ce),s(oe),s(Be),s(se),s(Ee),s(ae),s(Fe),s(ie),s(Xe),s(re),s(Ve),s(Ne),s(T),s(Re),s(J),s(Se),s(j),s(Le),s(Ge)),s(n),w(f,e),w(le,e),w(de),w(ce),w(S),w(pe),w(L),w(Q),w(me),w(fe),w(ue),w(z),w(ge),w(H),w(Y),w(he),w(_e),w(be),w(D),w(ye),w(K),w(ee),w(ve)}}}const Kt='{"title":"aMUSEd","local":"amused","sections":[{"title":"AmusedPipeline","local":"diffusers.AmusedPipeline","sections":[],"depth":2}],"depth":1}';function en(x){return Ft(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class dn extends Xt{constructor(n){super(),Vt(this,n,en,Dt,Et,{})}}export{dn as component};
