import{s as Vt,o as Rt,n as X}from"../chunks/scheduler.8c3d61f6.js";import{S as Ft,i as St,g as d,s as r,r as h,A as Qt,h as m,f as a,c as l,j as $,u as _,x as I,k as x,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 De}from"../chunks/Tip.1d9b8c37.js";import{D as P}from"../chunks/Docstring.c021b19a.js";import{C as Ce}from"../chunks/CodeBlock.a9c4becf.js";import{E as Ge}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as Xt,E as qt}from"../chunks/getInferenceSnippets.725ed3d4.js";function zt(T){let n,u="This pipeline is deprecated but it can still be used. However, we won’t test the pipeline anymore and won’t accept any changes to it. If you run into any issues, reinstall the last Diffusers version that supported this model.";return{c(){n=d("p"),n.textContent=u},l(o){n=m(o,"P",{"data-svelte-h":!0}),I(n)!=="svelte-ic4u42"&&(n.textContent=u)},m(o,s){c(o,n,s)},p:X,d(o){o&&a(n)}}}function Ht(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),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(o){n=m(o,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(o,s){c(o,n,s)},p:X,d(o){o&&a(n)}}}function Ot(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),v(s,t)}}}function Dt(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),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(o){n=m(o,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(o,s){c(o,n,s)},p:X,d(o){o&&a(n)}}}function en(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),v(s,t)}}}function tn(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),v(s,t)}}}function nn(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(o){n=m(o,"P",{"data-svelte-h":!0}),I(n)!=="svelte-17p1lpg"&&(n.textContent=u)},m(o,s){c(o,n,s)},p:X,d(o){o&&a(n)}}}function sn(T){let n,u="Examples:",o,s,g;return s=new Ce({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,o=r(),h(s.$$.fragment)},l(t){n=m(t,"P",{"data-svelte-h":!0}),I(n)!=="svelte-kvfsh7"&&(n.textContent=u),o=l(t),_(s.$$.fragment,t)},m(t,f){c(t,n,f),c(t,o,f),b(s,t,f),g=!0},p:X,i(t){g||(y(s.$$.fragment,t),g=!0)},o(t){w(s.$$.fragment,t),g=!1},d(t){t&&(a(n),a(o)),v(s,t)}}}function on(T){let n,u,o,s,g,t,f,Be,oe,Mt='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.',Ne,ae,Jt='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.',Le,ie,jt="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.",Xe,re,Ut="The abstract from the paper is:",Ve,le,kt="<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>",Re,pe,Wt='<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>',Fe,ce,Se,M,de,Ke,B,me,et,Me,Pt="The call function to the pipeline for generation.",tt,S,nt,U,ge,st,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.`,ot,Q,at,q,it,z,ue,rt,je,At='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Qe,J,fe,lt,N,he,pt,Ue,Gt="The call function to the pipeline for generation.",ct,H,dt,k,_e,mt,ke,Ct=`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.`,gt,Y,ut,O,ft,D,be,ht,We,Et='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',qe,j,ye,_t,L,we,bt,Pe,Bt="The call function to the pipeline for generation.",yt,K,wt,W,ve,vt,Ze,Nt=`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.`,It,ee,Tt,te,$t,ne,Ie,xt,Ae,Lt='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',ze,Te,He,Ee,Ye;return g=new De({props:{warning:!0,$$slots:{default:[zt]},$$scope:{ctx:T}}}),f=new Xt({props:{title:"aMUSEd",local:"amused",headingTag:"h1"}}),ce=new Xt({props:{title:"AmusedPipeline",local:"diffusers.AmusedPipeline",headingTag:"h2"}}),de=new P({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"}}),me=new P({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/inpaint#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#L83",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/unclip#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/unclip#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),S=new Ge({props:{anchor:"diffusers.AmusedPipeline.__call__.example",$$slots:{default:[Ht]},$$scope:{ctx:T}}}),ge=new P({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#L1773"}}),Q=new De({props:{warning:!0,$$slots:{default:[Yt]},$$scope:{ctx:T}}}),q=new Ge({props:{anchor:"diffusers.AmusedPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[Ot]},$$scope:{ctx:T}}}),ue=new P({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#L1808"}}),fe=new P({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"}}),he=new P({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/inpaint#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#L98",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/unclip#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/unclip#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),H=new Ge({props:{anchor:"diffusers.AmusedImg2ImgPipeline.__call__.example",$$slots:{default:[Dt]},$$scope:{ctx:T}}}),_e=new P({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#L1773"}}),Y=new De({props:{warning:!0,$$slots:{default:[Kt]},$$scope:{ctx:T}}}),O=new Ge({props:{anchor:"diffusers.AmusedImg2ImgPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[en]},$$scope:{ctx:T}}}),be=new P({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#L1808"}}),ye=new P({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"}}),we=new P({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/inpaint#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#L114",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/unclip#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/unclip#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),K=new Ge({props:{anchor:"diffusers.AmusedInpaintPipeline.__call__.example",$$slots:{default:[tn]},$$scope:{ctx:T}}}),ve=new P({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#L1773"}}),ee=new De({props:{warning:!0,$$slots:{default:[nn]},$$scope:{ctx:T}}}),te=new Ge({props:{anchor:"diffusers.AmusedInpaintPipeline.enable_xformers_memory_efficient_attention.example",$$slots:{default:[sn]},$$scope:{ctx:T}}}),Ie=new P({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#L1808"}}),Te=new qt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/amused.md"}}),{c(){n=d("meta"),u=r(),o=d("p"),s=r(),h(g.$$.fragment),t=r(),h(f.$$.fragment),Be=r(),oe=d("p"),oe.innerHTML=Mt,Ne=r(),ae=d("p"),ae.innerHTML=Jt,Le=r(),ie=d("p"),ie.textContent=jt,Xe=r(),re=d("p"),re.textContent=Ut,Ve=r(),le=d("p"),le.innerHTML=kt,Re=r(),pe=d("table"),pe.innerHTML=Wt,Fe=r(),h(ce.$$.fragment),Se=r(),M=d("div"),h(de.$$.fragment),Ke=r(),B=d("div"),h(me.$$.fragment),et=r(),Me=d("p"),Me.textContent=Pt,tt=r(),h(S.$$.fragment),nt=r(),U=d("div"),h(ge.$$.fragment),st=r(),Je=d("p"),Je.innerHTML=Zt,ot=r(),h(Q.$$.fragment),at=r(),h(q.$$.fragment),it=r(),z=d("div"),h(ue.$$.fragment),rt=r(),je=d("p"),je.innerHTML=At,Qe=r(),J=d("div"),h(fe.$$.fragment),lt=r(),N=d("div"),h(he.$$.fragment),pt=r(),Ue=d("p"),Ue.textContent=Gt,ct=r(),h(H.$$.fragment),dt=r(),k=d("div"),h(_e.$$.fragment),mt=r(),ke=d("p"),ke.innerHTML=Ct,gt=r(),h(Y.$$.fragment),ut=r(),h(O.$$.fragment),ft=r(),D=d("div"),h(be.$$.fragment),ht=r(),We=d("p"),We.innerHTML=Et,qe=r(),j=d("div"),h(ye.$$.fragment),_t=r(),L=d("div"),h(we.$$.fragment),bt=r(),Pe=d("p"),Pe.textContent=Bt,yt=r(),h(K.$$.fragment),wt=r(),W=d("div"),h(ve.$$.fragment),vt=r(),Ze=d("p"),Ze.innerHTML=Nt,It=r(),h(ee.$$.fragment),Tt=r(),h(te.$$.fragment),$t=r(),ne=d("div"),h(Ie.$$.fragment),xt=r(),Ae=d("p"),Ae.innerHTML=Lt,ze=r(),h(Te.$$.fragment),He=r(),Ee=d("p"),this.h()},l(e){const i=Qt("svelte-u9bgzb",document.head);n=m(i,"META",{name:!0,content:!0}),i.forEach(a),u=l(e),o=m(e,"P",{}),$(o).forEach(a),s=l(e),_(g.$$.fragment,e),t=l(e),_(f.$$.fragment,e),Be=l(e),oe=m(e,"P",{"data-svelte-h":!0}),I(oe)!=="svelte-1lfaywv"&&(oe.innerHTML=Mt),Ne=l(e),ae=m(e,"P",{"data-svelte-h":!0}),I(ae)!=="svelte-xkoy5x"&&(ae.innerHTML=Jt),Le=l(e),ie=m(e,"P",{"data-svelte-h":!0}),I(ie)!=="svelte-1s2g8lw"&&(ie.textContent=jt),Xe=l(e),re=m(e,"P",{"data-svelte-h":!0}),I(re)!=="svelte-1cwsb16"&&(re.textContent=Ut),Ve=l(e),le=m(e,"P",{"data-svelte-h":!0}),I(le)!=="svelte-t2fzna"&&(le.innerHTML=kt),Re=l(e),pe=m(e,"TABLE",{"data-svelte-h":!0}),I(pe)!=="svelte-186adnx"&&(pe.innerHTML=Wt),Fe=l(e),_(ce.$$.fragment,e),Se=l(e),M=m(e,"DIV",{class:!0});var Z=$(M);_(de.$$.fragment,Z),Ke=l(Z),B=m(Z,"DIV",{class:!0});var V=$(B);_(me.$$.fragment,V),et=l(V),Me=m(V,"P",{"data-svelte-h":!0}),I(Me)!=="svelte-50j04k"&&(Me.textContent=Pt),tt=l(V),_(S.$$.fragment,V),V.forEach(a),nt=l(Z),U=m(Z,"DIV",{class:!0});var A=$(U);_(ge.$$.fragment,A),st=l(A),Je=m(A,"P",{"data-svelte-h":!0}),I(Je)!=="svelte-e03q3e"&&(Je.innerHTML=Zt),ot=l(A),_(Q.$$.fragment,A),at=l(A),_(q.$$.fragment,A),A.forEach(a),it=l(Z),z=m(Z,"DIV",{class:!0});var $e=$(z);_(ue.$$.fragment,$e),rt=l($e),je=m($e,"P",{"data-svelte-h":!0}),I(je)!=="svelte-1vfte1e"&&(je.innerHTML=At),$e.forEach(a),Z.forEach(a),Qe=l(e),J=m(e,"DIV",{class:!0});var G=$(J);_(fe.$$.fragment,G),lt=l(G),N=m(G,"DIV",{class:!0});var R=$(N);_(he.$$.fragment,R),pt=l(R),Ue=m(R,"P",{"data-svelte-h":!0}),I(Ue)!=="svelte-50j04k"&&(Ue.textContent=Gt),ct=l(R),_(H.$$.fragment,R),R.forEach(a),dt=l(G),k=m(G,"DIV",{class:!0});var C=$(k);_(_e.$$.fragment,C),mt=l(C),ke=m(C,"P",{"data-svelte-h":!0}),I(ke)!=="svelte-e03q3e"&&(ke.innerHTML=Ct),gt=l(C),_(Y.$$.fragment,C),ut=l(C),_(O.$$.fragment,C),C.forEach(a),ft=l(G),D=m(G,"DIV",{class:!0});var xe=$(D);_(be.$$.fragment,xe),ht=l(xe),We=m(xe,"P",{"data-svelte-h":!0}),I(We)!=="svelte-1vfte1e"&&(We.innerHTML=Et),xe.forEach(a),G.forEach(a),qe=l(e),j=m(e,"DIV",{class:!0});var E=$(j);_(ye.$$.fragment,E),_t=l(E),L=m(E,"DIV",{class:!0});var F=$(L);_(we.$$.fragment,F),bt=l(F),Pe=m(F,"P",{"data-svelte-h":!0}),I(Pe)!=="svelte-50j04k"&&(Pe.textContent=Bt),yt=l(F),_(K.$$.fragment,F),F.forEach(a),wt=l(E),W=m(E,"DIV",{class:!0});var se=$(W);_(ve.$$.fragment,se),vt=l(se),Ze=m(se,"P",{"data-svelte-h":!0}),I(Ze)!=="svelte-e03q3e"&&(Ze.innerHTML=Nt),It=l(se),_(ee.$$.fragment,se),Tt=l(se),_(te.$$.fragment,se),se.forEach(a),$t=l(E),ne=m(E,"DIV",{class:!0});var Oe=$(ne);_(Ie.$$.fragment,Oe),xt=l(Oe),Ae=m(Oe,"P",{"data-svelte-h":!0}),I(Ae)!=="svelte-1vfte1e"&&(Ae.innerHTML=Lt),Oe.forEach(a),E.forEach(a),ze=l(e),_(Te.$$.fragment,e),He=l(e),Ee=m(e,"P",{}),$(Ee).forEach(a),this.h()},h(){x(n,"name","hf:doc:metadata"),x(n,"content",an),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(j,"class","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,o,i),c(e,s,i),b(g,e,i),c(e,t,i),b(f,e,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),c(e,le,i),c(e,Re,i),c(e,pe,i),c(e,Fe,i),b(ce,e,i),c(e,Se,i),c(e,M,i),b(de,M,null),p(M,Ke),p(M,B),b(me,B,null),p(B,et),p(B,Me),p(B,tt),b(S,B,null),p(M,nt),p(M,U),b(ge,U,null),p(U,st),p(U,Je),p(U,ot),b(Q,U,null),p(U,at),b(q,U,null),p(M,it),p(M,z),b(ue,z,null),p(z,rt),p(z,je),c(e,Qe,i),c(e,J,i),b(fe,J,null),p(J,lt),p(J,N),b(he,N,null),p(N,pt),p(N,Ue),p(N,ct),b(H,N,null),p(J,dt),p(J,k),b(_e,k,null),p(k,mt),p(k,ke),p(k,gt),b(Y,k,null),p(k,ut),b(O,k,null),p(J,ft),p(J,D),b(be,D,null),p(D,ht),p(D,We),c(e,qe,i),c(e,j,i),b(ye,j,null),p(j,_t),p(j,L),b(we,L,null),p(L,bt),p(L,Pe),p(L,yt),b(K,L,null),p(j,wt),p(j,W),b(ve,W,null),p(W,vt),p(W,Ze),p(W,It),b(ee,W,null),p(W,Tt),b(te,W,null),p(j,$t),p(j,ne),b(Ie,ne,null),p(ne,xt),p(ne,Ae),c(e,ze,i),b(Te,e,i),c(e,He,i),c(e,Ee,i),Ye=!0},p(e,[i]){const Z={};i&2&&(Z.$$scope={dirty:i,ctx:e}),g.$set(Z);const V={};i&2&&(V.$$scope={dirty:i,ctx:e}),S.$set(V);const A={};i&2&&(A.$$scope={dirty:i,ctx:e}),Q.$set(A);const $e={};i&2&&($e.$$scope={dirty:i,ctx:e}),q.$set($e);const G={};i&2&&(G.$$scope={dirty:i,ctx:e}),H.$set(G);const R={};i&2&&(R.$$scope={dirty:i,ctx:e}),Y.$set(R);const C={};i&2&&(C.$$scope={dirty:i,ctx:e}),O.$set(C);const xe={};i&2&&(xe.$$scope={dirty:i,ctx:e}),K.$set(xe);const E={};i&2&&(E.$$scope={dirty:i,ctx:e}),ee.$set(E);const F={};i&2&&(F.$$scope={dirty:i,ctx:e}),te.$set(F)},i(e){Ye||(y(g.$$.fragment,e),y(f.$$.fragment,e),y(ce.$$.fragment,e),y(de.$$.fragment,e),y(me.$$.fragment,e),y(S.$$.fragment,e),y(ge.$$.fragment,e),y(Q.$$.fragment,e),y(q.$$.fragment,e),y(ue.$$.fragment,e),y(fe.$$.fragment,e),y(he.$$.fragment,e),y(H.$$.fragment,e),y(_e.$$.fragment,e),y(Y.$$.fragment,e),y(O.$$.fragment,e),y(be.$$.fragment,e),y(ye.$$.fragment,e),y(we.$$.fragment,e),y(K.$$.fragment,e),y(ve.$$.fragment,e),y(ee.$$.fragment,e),y(te.$$.fragment,e),y(Ie.$$.fragment,e),y(Te.$$.fragment,e),Ye=!0)},o(e){w(g.$$.fragment,e),w(f.$$.fragment,e),w(ce.$$.fragment,e),w(de.$$.fragment,e),w(me.$$.fragment,e),w(S.$$.fragment,e),w(ge.$$.fragment,e),w(Q.$$.fragment,e),w(q.$$.fragment,e),w(ue.$$.fragment,e),w(fe.$$.fragment,e),w(he.$$.fragment,e),w(H.$$.fragment,e),w(_e.$$.fragment,e),w(Y.$$.fragment,e),w(O.$$.fragment,e),w(be.$$.fragment,e),w(ye.$$.fragment,e),w(we.$$.fragment,e),w(K.$$.fragment,e),w(ve.$$.fragment,e),w(ee.$$.fragment,e),w(te.$$.fragment,e),w(Ie.$$.fragment,e),w(Te.$$.fragment,e),Ye=!1},d(e){e&&(a(u),a(o),a(s),a(t),a(Be),a(oe),a(Ne),a(ae),a(Le),a(ie),a(Xe),a(re),a(Ve),a(le),a(Re),a(pe),a(Fe),a(Se),a(M),a(Qe),a(J),a(qe),a(j),a(ze),a(He),a(Ee)),a(n),v(g,e),v(f,e),v(ce,e),v(de),v(me),v(S),v(ge),v(Q),v(q),v(ue),v(fe),v(he),v(H),v(_e),v(Y),v(O),v(be),v(ye),v(we),v(K),v(ve),v(ee),v(te),v(Ie),v(Te,e)}}}const an='{"title":"aMUSEd","local":"amused","sections":[{"title":"AmusedPipeline","local":"diffusers.AmusedPipeline","sections":[],"depth":2}],"depth":1}';function rn(T){return Rt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fn extends Ft{constructor(n){super(),St(this,n,rn,on,Vt,{})}}export{fn as component};
