import{s as Lt,o as Xt,n as R}from"../chunks/scheduler.8c3d61f6.js";import{S as Vt,i as Rt,g as d,s as r,r as h,A as Ft,h as m,f as o,c as l,j as x,u as _,x as I,k as M,y as p,a as c,v as b,d as y,t as w,w as v}from"../chunks/index.da70eac4.js";import{T as Tt}from"../chunks/Tip.1d9b8c37.js";import{D as Z}from"../chunks/Docstring.f5e3af6d.js";import{C as Ge}from"../chunks/CodeBlock.a9c4becf.js";import{E as Ae}from"../chunks/ExampleCodeBlock.21e67bb6.js";import{H as Nt,E as St}from"../chunks/getInferenceSnippets.07305897.js";function Qt(T){let n,u="Examples:",a,s,g;return s=new Ge({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwQW11c2VkUGlwZWxpbmUlMEElMEFwaXBlJTIwJTNEJTIwQW11c2VkUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMmFtdXNlZCUyRmFtdXNlZC01MTIlMjIlMkMlMjB2YXJpYW50JTNEJTIyZnAxNiUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMmElMjBwaG90byUyMG9mJTIwYW4lMjBhc3Ryb25hdXQlMjByaWRpbmclMjBhJTIwaG9yc2UlMjBvbiUyMG1hcnMlMjIlMEFpbWFnZSUyMCUzRCUyMHBpcGUocHJvbXB0KS5pbWFnZXMlNUIwJTVE",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-string">&quot;amused/amused-512&quot;</span>, variant=<span class="hljs-string">&quot;fp16&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>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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function qt(T){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=d("p"),n.textContent=u},l(a){n=m(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,s){c(a,n,s)},p:R,d(a){a&&o(n)}}}function zt(T){let n,u="Examples:",a,s,g;return s=new Ge({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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function Ht(T){let n,u="Examples:",a,s,g;return s=new Ge({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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function Yt(T){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=d("p"),n.textContent=u},l(a){n=m(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,s){c(a,n,s)},p:R,d(a){a&&o(n)}}}function Ot(T){let n,u="Examples:",a,s,g;return s=new Ge({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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function Dt(T){let n,u="Examples:",a,s,g;return s=new Ge({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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function Kt(T){let n,u=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=d("p"),n.textContent=u},l(a){n=m(a,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(a,s){c(a,n,s)},p:R,d(a){a&&o(n)}}}function en(T){let n,u="Examples:",a,s,g;return s=new Ge({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=d("p"),n.textContent=u,a=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),a=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,a,f),b(s,t,f),g=!0},p:R,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(o(n),o(a)),v(s,t)}}}function tn(T){let n,u,a,s,g,t,f,xt='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.',Ee,se,Mt='Amused is a lightweight text to image model based off of the <a href="https://huggingface.co/papers/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,oe,$t="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.",Ne,ae,Jt="The abstract from the paper is:",Le,ie,jt="<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,Ut='<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,Re,$,pe,Ye,B,ce,Oe,xe,kt="The call function to the pipeline for generation.",De,F,Ke,U,de,et,Me,Wt=`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.`,tt,S,nt,Q,st,q,me,ot,$e,Zt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Fe,J,ge,at,N,ue,it,Je,Pt="The call function to the pipeline for generation.",rt,z,lt,k,fe,pt,je,At=`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.`,ct,H,dt,Y,mt,O,he,gt,Ue,Gt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Se,j,_e,ut,L,be,ft,ke,Ct="The call function to the pipeline for generation.",ht,D,_t,W,ye,bt,We,Et=`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.`,yt,K,wt,ee,vt,te,we,It,Ze,Bt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Qe,ve,qe,Ce,ze;return g=new Nt({props:{title:"aMUSEd",local:"amused",headingTag:"h1"}}),le=new Nt({props:{title:"AmusedPipeline",local:"diffusers.AmusedPipeline",headingTag:"h2"}}),pe=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#L50"}}),ce=new Z({props:{name:"__call__",anchor:"diffusers.AmusedPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"num_inference_steps",val:": int = 12"},{name:"guidance_scale",val:": float = 10.0"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"latents",val:": typing.Optional[torch.IntTensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": typing.Tuple[int, int] = (0, 0)"},{name:"temperature",val:": typing.Union[int, typing.Tuple[int, int], typing.List[int]] = (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
generation. 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.Tensor</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.Tensor</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.Tensor</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.Tensor</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.Tensor)</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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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#L82",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/ddim#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/ddim#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),F=new Ae({props:{anchor:"diffusers.AmusedPipeline.__call__.example",$$slots:{default:[Qt]},$$scope:{ctx:T}}}),de=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = 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#L1738"}}),S=new Tt({props:{warning:!0,$$slots:{default:[qt]},$$scope:{ctx:T}}}),Q=new Ae({props:{anchor:"diffusers.AmusedPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[zt]},$$scope:{ctx:T}}}),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#L1773"}}),ge=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#L60"}}),ue=new Z({props:{name:"__call__",anchor:"diffusers.AmusedImg2ImgPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = 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:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": typing.Tuple[int, int] = (0, 0)"},{name:"temperature",val:": typing.Union[int, typing.Tuple[int, int], typing.List[int]] = (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.Tensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.Tensor]</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 12) &#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.Tensor</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.Tensor</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.Tensor</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.Tensor</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.Tensor)</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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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#L97",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/ddim#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/ddim#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),z=new Ae({props:{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.example",$$slots:{default:[Ht]},$$scope:{ctx:T}}}),fe=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedImg2ImgPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = 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#L1738"}}),H=new Tt({props:{warning:!0,$$slots:{default:[Yt]},$$scope:{ctx:T}}}),Y=new Ae({props:{anchor:"diffusers.AmusedImg2ImgPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Ot]},$$scope:{ctx:T}}}),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#L1773"}}),_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#L68"}}),be=new Z({props:{name:"__call__",anchor:"diffusers.AmusedInpaintPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = None"},{name:"mask_image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = 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:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:" = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": int = 1"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"micro_conditioning_aesthetic_score",val:": int = 6"},{name:"micro_conditioning_crop_coord",val:": typing.Tuple[int, int] = (0, 0)"},{name:"temperature",val:": typing.Union[int, typing.Tuple[int, int], typing.List[int]] = (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.Tensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.Tensor]</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.Tensor</code>, <code>PIL.Image.Image</code>, <code>np.ndarray</code>, <code>List[torch.Tensor]</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.Tensor</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.Tensor</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.Tensor</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.Tensor</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.Tensor)</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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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://huggingface.co/papers/2307.01952" rel="nofollow">https://huggingface.co/papers/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#L113",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/ddim#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/ddim#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),D=new Ae({props:{anchor:"diffusers.AmusedInpaintPipeline.__call__.example",$$slots:{default:[Dt]},$$scope:{ctx:T}}}),ye=new Z({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.AmusedInpaintPipeline.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = 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#L1738"}}),K=new Tt({props:{warning:!0,$$slots:{default:[Kt]},$$scope:{ctx:T}}}),ee=new Ae({props:{anchor:"diffusers.AmusedInpaintPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[en]},$$scope:{ctx:T}}}),we=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#L1773"}}),ve=new St({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/amused.md"}}),{c(){n=d("meta"),u=r(),a=d("p"),s=r(),h(g.$$.fragment),t=r(),f=d("p"),f.innerHTML=xt,Ee=r(),se=d("p"),se.innerHTML=Mt,Be=r(),oe=d("p"),oe.textContent=$t,Ne=r(),ae=d("p"),ae.textContent=Jt,Le=r(),ie=d("p"),ie.innerHTML=jt,Xe=r(),re=d("table"),re.innerHTML=Ut,Ve=r(),h(le.$$.fragment),Re=r(),$=d("div"),h(pe.$$.fragment),Ye=r(),B=d("div"),h(ce.$$.fragment),Oe=r(),xe=d("p"),xe.textContent=kt,De=r(),h(F.$$.fragment),Ke=r(),U=d("div"),h(de.$$.fragment),et=r(),Me=d("p"),Me.innerHTML=Wt,tt=r(),h(S.$$.fragment),nt=r(),h(Q.$$.fragment),st=r(),q=d("div"),h(me.$$.fragment),ot=r(),$e=d("p"),$e.innerHTML=Zt,Fe=r(),J=d("div"),h(ge.$$.fragment),at=r(),N=d("div"),h(ue.$$.fragment),it=r(),Je=d("p"),Je.textContent=Pt,rt=r(),h(z.$$.fragment),lt=r(),k=d("div"),h(fe.$$.fragment),pt=r(),je=d("p"),je.innerHTML=At,ct=r(),h(H.$$.fragment),dt=r(),h(Y.$$.fragment),mt=r(),O=d("div"),h(he.$$.fragment),gt=r(),Ue=d("p"),Ue.innerHTML=Gt,Se=r(),j=d("div"),h(_e.$$.fragment),ut=r(),L=d("div"),h(be.$$.fragment),ft=r(),ke=d("p"),ke.textContent=Ct,ht=r(),h(D.$$.fragment),_t=r(),W=d("div"),h(ye.$$.fragment),bt=r(),We=d("p"),We.innerHTML=Et,yt=r(),h(K.$$.fragment),wt=r(),h(ee.$$.fragment),vt=r(),te=d("div"),h(we.$$.fragment),It=r(),Ze=d("p"),Ze.innerHTML=Bt,Qe=r(),h(ve.$$.fragment),qe=r(),Ce=d("p"),this.h()},l(e){const i=Ft("svelte-u9bgzb",document.head);n=m(i,"META",{name:!0,content:!0}),i.forEach(o),u=l(e),a=m(e,"P",{}),x(a).forEach(o),s=l(e),_(g.$$.fragment,e),t=l(e),f=m(e,"P",{"data-svelte-h":!0}),I(f)!=="svelte-1lfaywv"&&(f.innerHTML=xt),Ee=l(e),se=m(e,"P",{"data-svelte-h":!0}),I(se)!=="svelte-xkoy5x"&&(se.innerHTML=Mt),Be=l(e),oe=m(e,"P",{"data-svelte-h":!0}),I(oe)!=="svelte-1s2g8lw"&&(oe.textContent=$t),Ne=l(e),ae=m(e,"P",{"data-svelte-h":!0}),I(ae)!=="svelte-1cwsb16"&&(ae.textContent=Jt),Le=l(e),ie=m(e,"P",{"data-svelte-h":!0}),I(ie)!=="svelte-t2fzna"&&(ie.innerHTML=jt),Xe=l(e),re=m(e,"TABLE",{"data-svelte-h":!0}),I(re)!=="svelte-186adnx"&&(re.innerHTML=Ut),Ve=l(e),_(le.$$.fragment,e),Re=l(e),$=m(e,"DIV",{class:!0});var P=x($);_(pe.$$.fragment,P),Ye=l(P),B=m(P,"DIV",{class:!0});var X=x(B);_(ce.$$.fragment,X),Oe=l(X),xe=m(X,"P",{"data-svelte-h":!0}),I(xe)!=="svelte-50j04k"&&(xe.textContent=kt),De=l(X),_(F.$$.fragment,X),X.forEach(o),Ke=l(P),U=m(P,"DIV",{class:!0});var A=x(U);_(de.$$.fragment,A),et=l(A),Me=m(A,"P",{"data-svelte-h":!0}),I(Me)!=="svelte-e03q3e"&&(Me.innerHTML=Wt),tt=l(A),_(S.$$.fragment,A),nt=l(A),_(Q.$$.fragment,A),A.forEach(o),st=l(P),q=m(P,"DIV",{class:!0});var Ie=x(q);_(me.$$.fragment,Ie),ot=l(Ie),$e=m(Ie,"P",{"data-svelte-h":!0}),I($e)!=="svelte-1vfte1e"&&($e.innerHTML=Zt),Ie.forEach(o),P.forEach(o),Fe=l(e),J=m(e,"DIV",{class:!0});var G=x(J);_(ge.$$.fragment,G),at=l(G),N=m(G,"DIV",{class:!0});var V=x(N);_(ue.$$.fragment,V),it=l(V),Je=m(V,"P",{"data-svelte-h":!0}),I(Je)!=="svelte-50j04k"&&(Je.textContent=Pt),rt=l(V),_(z.$$.fragment,V),V.forEach(o),lt=l(G),k=m(G,"DIV",{class:!0});var C=x(k);_(fe.$$.fragment,C),pt=l(C),je=m(C,"P",{"data-svelte-h":!0}),I(je)!=="svelte-e03q3e"&&(je.innerHTML=At),ct=l(C),_(H.$$.fragment,C),dt=l(C),_(Y.$$.fragment,C),C.forEach(o),mt=l(G),O=m(G,"DIV",{class:!0});var Te=x(O);_(he.$$.fragment,Te),gt=l(Te),Ue=m(Te,"P",{"data-svelte-h":!0}),I(Ue)!=="svelte-1vfte1e"&&(Ue.innerHTML=Gt),Te.forEach(o),G.forEach(o),Se=l(e),j=m(e,"DIV",{class:!0});var E=x(j);_(_e.$$.fragment,E),ut=l(E),L=m(E,"DIV",{class:!0});var Pe=x(L);_(be.$$.fragment,Pe),ft=l(Pe),ke=m(Pe,"P",{"data-svelte-h":!0}),I(ke)!=="svelte-50j04k"&&(ke.textContent=Ct),ht=l(Pe),_(D.$$.fragment,Pe),Pe.forEach(o),_t=l(E),W=m(E,"DIV",{class:!0});var ne=x(W);_(ye.$$.fragment,ne),bt=l(ne),We=m(ne,"P",{"data-svelte-h":!0}),I(We)!=="svelte-e03q3e"&&(We.innerHTML=Et),yt=l(ne),_(K.$$.fragment,ne),wt=l(ne),_(ee.$$.fragment,ne),ne.forEach(o),vt=l(E),te=m(E,"DIV",{class:!0});var He=x(te);_(we.$$.fragment,He),It=l(He),Ze=m(He,"P",{"data-svelte-h":!0}),I(Ze)!=="svelte-1vfte1e"&&(Ze.innerHTML=Bt),He.forEach(o),E.forEach(o),Qe=l(e),_(ve.$$.fragment,e),qe=l(e),Ce=m(e,"P",{}),x(Ce).forEach(o),this.h()},h(){M(n,"name","hf:doc:metadata"),M(n,"content",nn),M(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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){p(document.head,n),c(e,u,i),c(e,a,i),c(e,s,i),b(g,e,i),c(e,t,i),c(e,f,i),c(e,Ee,i),c(e,se,i),c(e,Be,i),c(e,oe,i),c(e,Ne,i),c(e,ae,i),c(e,Le,i),c(e,ie,i),c(e,Xe,i),c(e,re,i),c(e,Ve,i),b(le,e,i),c(e,Re,i),c(e,$,i),b(pe,$,null),p($,Ye),p($,B),b(ce,B,null),p(B,Oe),p(B,xe),p(B,De),b(F,B,null),p($,Ke),p($,U),b(de,U,null),p(U,et),p(U,Me),p(U,tt),b(S,U,null),p(U,nt),b(Q,U,null),p($,st),p($,q),b(me,q,null),p(q,ot),p(q,$e),c(e,Fe,i),c(e,J,i),b(ge,J,null),p(J,at),p(J,N),b(ue,N,null),p(N,it),p(N,Je),p(N,rt),b(z,N,null),p(J,lt),p(J,k),b(fe,k,null),p(k,pt),p(k,je),p(k,ct),b(H,k,null),p(k,dt),b(Y,k,null),p(J,mt),p(J,O),b(he,O,null),p(O,gt),p(O,Ue),c(e,Se,i),c(e,j,i),b(_e,j,null),p(j,ut),p(j,L),b(be,L,null),p(L,ft),p(L,ke),p(L,ht),b(D,L,null),p(j,_t),p(j,W),b(ye,W,null),p(W,bt),p(W,We),p(W,yt),b(K,W,null),p(W,wt),b(ee,W,null),p(j,vt),p(j,te),b(we,te,null),p(te,It),p(te,Ze),c(e,Qe,i),b(ve,e,i),c(e,qe,i),c(e,Ce,i),ze=!0},p(e,[i]){const P={};i&2&&(P.$$scope={dirty:i,ctx:e}),F.$set(P);const X={};i&2&&(X.$$scope={dirty:i,ctx:e}),S.$set(X);const A={};i&2&&(A.$$scope={dirty:i,ctx:e}),Q.$set(A);const Ie={};i&2&&(Ie.$$scope={dirty:i,ctx:e}),z.$set(Ie);const G={};i&2&&(G.$$scope={dirty:i,ctx:e}),H.$set(G);const V={};i&2&&(V.$$scope={dirty:i,ctx:e}),Y.$set(V);const C={};i&2&&(C.$$scope={dirty:i,ctx:e}),D.$set(C);const Te={};i&2&&(Te.$$scope={dirty:i,ctx:e}),K.$set(Te);const E={};i&2&&(E.$$scope={dirty:i,ctx:e}),ee.$set(E)},i(e){ze||(y(g.$$.fragment,e),y(le.$$.fragment,e),y(pe.$$.fragment,e),y(ce.$$.fragment,e),y(F.$$.fragment,e),y(de.$$.fragment,e),y(S.$$.fragment,e),y(Q.$$.fragment,e),y(me.$$.fragment,e),y(ge.$$.fragment,e),y(ue.$$.fragment,e),y(z.$$.fragment,e),y(fe.$$.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(we.$$.fragment,e),y(ve.$$.fragment,e),ze=!0)},o(e){w(g.$$.fragment,e),w(le.$$.fragment,e),w(pe.$$.fragment,e),w(ce.$$.fragment,e),w(F.$$.fragment,e),w(de.$$.fragment,e),w(S.$$.fragment,e),w(Q.$$.fragment,e),w(me.$$.fragment,e),w(ge.$$.fragment,e),w(ue.$$.fragment,e),w(z.$$.fragment,e),w(fe.$$.fragment,e),w(H.$$.fragment,e),w(Y.$$.fragment,e),w(he.$$.fragment,e),w(_e.$$.fragment,e),w(be.$$.fragment,e),w(D.$$.fragment,e),w(ye.$$.fragment,e),w(K.$$.fragment,e),w(ee.$$.fragment,e),w(we.$$.fragment,e),w(ve.$$.fragment,e),ze=!1},d(e){e&&(o(u),o(a),o(s),o(t),o(f),o(Ee),o(se),o(Be),o(oe),o(Ne),o(ae),o(Le),o(ie),o(Xe),o(re),o(Ve),o(Re),o($),o(Fe),o(J),o(Se),o(j),o(Qe),o(qe),o(Ce)),o(n),v(g,e),v(le,e),v(pe),v(ce),v(F),v(de),v(S),v(Q),v(me),v(ge),v(ue),v(z),v(fe),v(H),v(Y),v(he),v(_e),v(be),v(D),v(ye),v(K),v(ee),v(we),v(ve,e)}}}const nn='{"title":"aMUSEd","local":"amused","sections":[{"title":"AmusedPipeline","local":"diffusers.AmusedPipeline","sections":[],"depth":2}],"depth":1}';function sn(T){return Xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mn extends Vt{constructor(n){super(),Rt(this,n,sn,tn,Lt,{})}}export{mn as component};
