import{s as jn,o as kn,n as L}from"../chunks/scheduler.182ea377.js";import{S as Fn,i as Pn,g as l,s,r as _,A as Jn,h as p,f as c,c as a,j as R,u as b,x as m,k as X,y as n,a as f,v as y,d as w,t as v,w as x}from"../chunks/index.abf12888.js";import{T as It}from"../chunks/Tip.230e2334.js";import{D as Q}from"../chunks/Docstring.93f6f462.js";import{C as z}from"../chunks/CodeBlock.57fe6e13.js";import{E as N}from"../chunks/ExampleCodeBlock.658f5cd6.js";import{H as Ut}from"../chunks/Heading.16916d63.js";function Zn($){let o,h='Check out the <a href="/tutorials/autopipeline">AutoPipeline</a> tutorial to learn how to use this API!';return{c(){o=l("p"),o.innerHTML=h},l(i){o=p(i,"P",{"data-svelte-h":!0}),m(o)!=="svelte-6lbmpt"&&(o.innerHTML=h)},m(i,r){f(i,o,r)},p:L,d(i){i&&c(o)}}}function Cn($){let o,h="If you get the error message below, you need to finetune the weights for your downstream task:",i,r,u;return r=new z({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`Some weights <span class="hljs-keyword">of</span> UNet2DConditionModel were <span class="hljs-keyword">not</span> initialized <span class="hljs-built_in">from</span> <span class="hljs-keyword">the</span> model checkpoint <span class="hljs-keyword">at</span> runwayml/stable-diffusion-v1<span class="hljs-number">-5</span> <span class="hljs-keyword">and</span> are newly initialized because <span class="hljs-keyword">the</span> shapes did <span class="hljs-keyword">not</span> match:
- conv_in.weight: found shape torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> checkpoint <span class="hljs-keyword">and</span> torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> model instantiated
You should probably TRAIN this model <span class="hljs-keyword">on</span> <span class="hljs-title">a</span> <span class="hljs-title">down-stream</span> <span class="hljs-title">task</span> <span class="hljs-title">to</span> <span class="hljs-title">be</span> <span class="hljs-title">able</span> <span class="hljs-title">to</span> <span class="hljs-title">use</span> <span class="hljs-title">it</span> <span class="hljs-title">for</span> <span class="hljs-title">predictions</span> <span class="hljs-title">and</span> <span class="hljs-title">inference</span>.`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-xueb0m"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Gn($){let o,h=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=l("p"),o.innerHTML=h},l(i){o=p(i,"P",{"data-svelte-h":!0}),m(o)!=="svelte-x73rgs"&&(o.innerHTML=h)},m(i,r){f(i,o,r)},p:L,d(i){i&&c(o)}}}function An($){let o,h="Examples:",i,r,u;return r=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEElMEFwaXBlbGluZSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUocHJvbXB0KS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForText2Image.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipeline(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Wn($){let o,h;return o=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZSUwQSUwQXBpcGVfaTJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2UySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTIwcmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSUwQSklMEElMEFwaXBlX3QyaSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UuZnJvbV9waXBlKHBpcGVfaTJpKSUwQWltYWdlJTIwJTNEJTIwcGlwZV90MmkocHJvbXB0KS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForImage2Image

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_i2i = AutoPipelineForImage2Image.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, requires_safety_checker=<span class="hljs-literal">False</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_t2i = AutoPipelineForText2Image.from_pipe(pipe_i2i)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe_t2i(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){_(o.$$.fragment)},l(i){b(o.$$.fragment,i)},m(i,r){y(o,i,r),h=!0},p:L,i(i){h||(w(o.$$.fragment,i),h=!0)},o(i){v(o.$$.fragment,i),h=!1},d(i){x(o,i)}}}function Bn($){let o,h="If you get the error message below, you need to finetune the weights for your downstream task:",i,r,u;return r=new z({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`Some weights <span class="hljs-keyword">of</span> UNet2DConditionModel were <span class="hljs-keyword">not</span> initialized <span class="hljs-built_in">from</span> <span class="hljs-keyword">the</span> model checkpoint <span class="hljs-keyword">at</span> runwayml/stable-diffusion-v1<span class="hljs-number">-5</span> <span class="hljs-keyword">and</span> are newly initialized because <span class="hljs-keyword">the</span> shapes did <span class="hljs-keyword">not</span> match:
- conv_in.weight: found shape torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> checkpoint <span class="hljs-keyword">and</span> torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> model instantiated
You should probably TRAIN this model <span class="hljs-keyword">on</span> <span class="hljs-title">a</span> <span class="hljs-title">down-stream</span> <span class="hljs-title">task</span> <span class="hljs-title">to</span> <span class="hljs-title">be</span> <span class="hljs-title">able</span> <span class="hljs-title">to</span> <span class="hljs-title">use</span> <span class="hljs-title">it</span> <span class="hljs-title">for</span> <span class="hljs-title">predictions</span> <span class="hljs-title">and</span> <span class="hljs-title">inference</span>.`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-xueb0m"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Hn($){let o,h=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=l("p"),o.innerHTML=h},l(i){o=p(i,"P",{"data-svelte-h":!0}),m(o)!=="svelte-x73rgs"&&(o.innerHTML=h)},m(i,r){f(i,o,r)},p:L,d(i){i&&c(o)}}}function Vn($){let o,h="Examples:",i,r,u;return r=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvckltYWdlMkltYWdlJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBaW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQlMkMlMjBpbWFnZSkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForImage2Image

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForImage2Image.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipeline(prompt, image).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Sn($){let o,h="Examples:",i,r,u;return r=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZSUwQSUwQXBpcGVfdDJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjByZXF1aXJlc19zYWZldHlfY2hlY2tlciUzREZhbHNlJTBBKSUwQSUwQXBpcGVfaTJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2UySW1hZ2UuZnJvbV9waXBlKHBpcGVfdDJpKSUwQWltYWdlJTIwJTNEJTIwcGlwZV9pMmkocHJvbXB0JTJDJTIwaW1hZ2UpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForImage2Image

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_t2i = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, requires_safety_checker=<span class="hljs-literal">False</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_i2i = AutoPipelineForImage2Image.from_pipe(pipe_t2i)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe_i2i(prompt, image).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Ln($){let o,h="If you get the error message below, you need to finetune the weights for your downstream task:",i,r,u;return r=new z({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`Some weights <span class="hljs-keyword">of</span> UNet2DConditionModel were <span class="hljs-keyword">not</span> initialized <span class="hljs-built_in">from</span> <span class="hljs-keyword">the</span> model checkpoint <span class="hljs-keyword">at</span> runwayml/stable-diffusion-v1<span class="hljs-number">-5</span> <span class="hljs-keyword">and</span> are newly initialized because <span class="hljs-keyword">the</span> shapes did <span class="hljs-keyword">not</span> match:
- conv_in.weight: found shape torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> checkpoint <span class="hljs-keyword">and</span> torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> model instantiated
You should probably TRAIN this model <span class="hljs-keyword">on</span> <span class="hljs-title">a</span> <span class="hljs-title">down-stream</span> <span class="hljs-title">task</span> <span class="hljs-title">to</span> <span class="hljs-title">be</span> <span class="hljs-title">able</span> <span class="hljs-title">to</span> <span class="hljs-title">use</span> <span class="hljs-title">it</span> <span class="hljs-title">for</span> <span class="hljs-title">predictions</span> <span class="hljs-title">and</span> <span class="hljs-title">inference</span>.`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-xueb0m"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Rn($){let o,h=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in with
<code>huggingface-cli login</code>.`;return{c(){o=l("p"),o.innerHTML=h},l(i){o=p(i,"P",{"data-svelte-h":!0}),m(o)!=="svelte-x73rgs"&&(o.innerHTML=h)},m(i,r){f(i,o,r)},p:L,d(i){i&&c(o)}}}function Xn($){let o,h="Examples:",i,r,u;return r=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmclMEElMEFwaXBlbGluZSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmcuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUocHJvbXB0JTJDJTIwaW1hZ2UlM0Rpbml0X2ltYWdlJTJDJTIwbWFza19pbWFnZSUzRG1hc2tfaW1hZ2UpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForInpainting

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForInpainting.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipeline(prompt, image=init_image, mask_image=mask_image).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function zn($){let o,h="Examples:",i,r,u;return r=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbnBhaW50aW5nJTBBJTBBcGlwZV90MmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0MkltYWdlLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJEZWVwRmxveWQlMkZJRi1JLVhMLXYxLjAlMjIlMkMlMjByZXF1aXJlc19zYWZldHlfY2hlY2tlciUzREZhbHNlJTBBKSUwQSUwQXBpcGVfaW5wYWludCUyMCUzRCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmcuZnJvbV9waXBlKHBpcGVfdDJpKSUwQWltYWdlJTIwJTNEJTIwcGlwZV9pbnBhaW50KHByb21wdCUyQyUyMGltYWdlJTNEaW5pdF9pbWFnZSUyQyUyMG1hc2tfaW1hZ2UlM0RtYXNrX2ltYWdlKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForInpainting

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_t2i = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;DeepFloyd/IF-I-XL-v1.0&quot;</span>, requires_safety_checker=<span class="hljs-literal">False</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_inpaint = AutoPipelineForInpainting.from_pipe(pipe_t2i)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = pipe_inpaint(prompt, image=init_image, mask_image=mask_image).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){o=l("p"),o.textContent=h,i=s(),_(r.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=h),i=a(t),b(r.$$.fragment,t)},m(t,g){f(t,o,g),f(t,i,g),y(r,t,g),u=!0},p:L,i(t){u||(w(r.$$.fragment,t),u=!0)},o(t){v(r.$$.fragment,t),u=!1},d(t){t&&(c(o),c(i)),x(r,t)}}}function Qn($){let o,h,i,r,u,t,g,Jo="<code>AutoPipeline</code> is designed to:",ct,re,Zo="<li>make it easy for you to load a checkpoint for a task without knowing the specific pipeline class to use</li> <li>use multiple pipelines in your workflow</li>",mt,le,Co="Based on the task, the <code>AutoPipeline</code> class automatically retrieves the relevant pipeline given the name or path to the pretrained weights with the <code>from_pretrained()</code> method.",ft,pe,Go="To seamlessly switch between tasks with the same checkpoint without reallocating additional memory, use the <code>from_pipe()</code> method to transfer the components from the original pipeline to the new one.",ut,de,ht,D,gt,ce,Ao="<code>AutoPipeline</code> supports text-to-image, image-to-image, and inpainting for the following diffusion models:",_t,me,Wo='<li><a href="./stable_diffusion">Stable Diffusion</a></li> <li><a href="./controlnet">ControlNet</a></li> <li><a href="./stable_diffusion/stable_diffusion_xl">Stable Diffusion XL (SDXL)</a></li> <li><a href="./if">DeepFloyd IF</a></li> <li><a href="./kandinsky">Kandinsky</a></li> <li><a href="./kandinsky#kandinsky-22">Kandinsky 2.2</a></li>',bt,fe,yt,F,ue,jt,Te,Bo=`<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image">AutoPipelineForText2Image</a> is a generic pipeline class that instantiates a text-to-image pipeline class. The
specific underlying pipeline class is automatically selected from either the
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pipe">from_pipe()</a> methods.`,kt,Ie,Ho="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Ft,Ue,Vo="Class attributes:",Pt,je,So=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the
diffusion pipeline’s components.</li>`,Jt,M,he,Zt,ke,Lo="Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",Ct,Fe,Ro="The from_pretrained() method takes care of returning the correct pipeline class instance by:",Gt,Pe,Xo=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object</li> <li>Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.</li>`,At,Je,zo='If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/v0.22.3/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline">StableDiffusionControlNetPipeline</a> object.',Wt,Ze,Qo="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Bt,Y,Ht,q,Vt,E,St,A,ge,Lt,Ce,No="Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",Rt,Ge,Do=`The from_pipe() method takes care of returning the correct pipeline class instance by finding the text-to-image
pipeline linked to the pipeline class using pattern matching on pipeline class name.`,Xt,Ae,Yo=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`,zt,We,qo="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Qt,K,wt,_e,vt,P,be,Nt,Be,Eo=`<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image">AutoPipelineForImage2Image</a> is a generic pipeline class that instantiates an image-to-image pipeline class. The
specific underlying pipeline class is automatically selected from either the
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pipe">from_pipe()</a> methods.`,Dt,He,Ko="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Yt,Ve,Oo="Class attributes:",qt,Se,en=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the
diffusion pipeline’s components.</li>`,Et,T,ye,Kt,Le,tn="Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",Ot,Re,on="The from_pretrained() method takes care of returning the correct pipeline class instance by:",eo,Xe,nn=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object</li> <li>Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.</li>`,to,ze,sn=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/v0.22.3/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetImg2ImgPipeline">StableDiffusionControlNetImg2ImgPipeline</a>
object.`,oo,Qe,an="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",no,O,so,ee,ao,te,io,W,we,ro,Ne,rn="Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",lo,De,ln=`The from_pipe() method takes care of returning the correct pipeline class instance by finding the
image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class name.`,po,Ye,pn=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`,co,qe,dn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",mo,oe,xt,ve,$t,J,xe,fo,Ee,cn=`<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting">AutoPipelineForInpainting</a> is a generic pipeline class that instantiates an inpainting pipeline class. The
specific underlying pipeline class is automatically selected from either the
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/v0.22.3/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pipe">from_pipe()</a> methods.`,uo,Ke,mn="This class cannot be instantiated using <code>__init__()</code> (throws an error).",ho,Oe,fn="Class attributes:",go,et,un=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the
diffusion pipeline’s components.</li>`,_o,I,$e,bo,tt,hn="Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight.",yo,ot,gn="The from_pretrained() method takes care of returning the correct pipeline class instance by:",wo,nt,_n=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object</li> <li>Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name.</li>`,vo,st,bn=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/v0.22.3/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetInpaintPipeline">StableDiffusionControlNetInpaintPipeline</a>
object.`,xo,at,yn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",$o,ne,Mo,se,To,ae,Io,B,Me,Uo,it,wn="Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",jo,rt,vn=`The from_pipe() method takes care of returning the correct pipeline class instance by finding the inpainting
pipeline linked to the pipeline class using pattern matching on pipeline class name.`,ko,lt,xn=`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memoery.`,Fo,pt,$n="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Po,ie,Mt,dt,Tt;return u=new Ut({props:{title:"AutoPipeline",local:"autopipeline",headingTag:"h1"}}),de=new z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBKS50byglMjJjdWRhJTIyKSUwQXByb21wdCUyMCUzRCUyMCUyMkFzdHJvbmF1dCUyMGluJTIwYSUyMGp1bmdsZSUyQyUyMGNvbGQlMjBjb2xvciUyMHBhbGV0dGUlMkMlMjBtdXRlZCUyMGNvbG9ycyUyQyUyMGRldGFpbGVkJTJDJTIwOGslMjIlMEElMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCUyQyUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QyNSkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
prompt = <span class="hljs-string">&quot;Astronaut in a jungle, cold color palette, muted colors, detailed, 8k&quot;</span>

image = pipeline(prompt, num_inference_steps=<span class="hljs-number">25</span>).images[<span class="hljs-number">0</span>]`,wrap:!1}}),D=new It({props:{$$slots:{default:[Zn]},$$scope:{ctx:$}}}),fe=new Ut({props:{title:"AutoPipelineForText2Image",local:"diffusers.AutoPipelineForText2Image",headingTag:"h2"}}),ue=new Q({props:{name:"class diffusers.AutoPipelineForText2Image",anchor:"diffusers.AutoPipelineForText2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L167"}}),he=new Q({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForText2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L191"}}),Y=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example",$$slots:{default:[Cn]},$$scope:{ctx:$}}}),q=new It({props:{$$slots:{default:[Gn]},$$scope:{ctx:$}}}),E=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example-2",$$slots:{default:[An]},$$scope:{ctx:$}}}),ge=new Q({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForText2Image.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L336"}}),K=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.example",$$slots:{default:[Wn]},$$scope:{ctx:$}}}),_e=new Ut({props:{title:"AutoPipelineForImage2Image",local:"diffusers.AutoPipelineForImage2Image",headingTag:"h2"}}),be=new Q({props:{name:"class diffusers.AutoPipelineForImage2Image",anchor:"diffusers.AutoPipelineForImage2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L437"}}),ye=new Q({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L461"}}),O=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example",$$slots:{default:[Bn]},$$scope:{ctx:$}}}),ee=new It({props:{$$slots:{default:[Hn]},$$scope:{ctx:$}}}),te=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example-2",$$slots:{default:[Vn]},$$scope:{ctx:$}}}),we=new Q({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForImage2Image.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L607"}}),oe=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.example",$$slots:{default:[Sn]},$$scope:{ctx:$}}}),ve=new Ut({props:{title:"AutoPipelineForInpainting",local:"diffusers.AutoPipelineForInpainting",headingTag:"h2"}}),xe=new Q({props:{name:"class diffusers.AutoPipelineForInpainting",anchor:"diffusers.AutoPipelineForInpainting",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L712"}}),$e=new Q({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForInpainting.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.22.3/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L736"}}),ne=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example",$$slots:{default:[Ln]},$$scope:{ctx:$}}}),se=new It({props:{$$slots:{default:[Rn]},$$scope:{ctx:$}}}),ae=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example-2",$$slots:{default:[Xn]},$$scope:{ctx:$}}}),Me=new Q({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForInpainting.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.22.3/src/diffusers/pipelines/auto_pipeline.py#L881"}}),ie=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.example",$$slots:{default:[zn]},$$scope:{ctx:$}}}),{c(){o=l("meta"),h=s(),i=l("p"),r=s(),_(u.$$.fragment),t=s(),g=l("p"),g.innerHTML=Jo,ct=s(),re=l("ol"),re.innerHTML=Zo,mt=s(),le=l("p"),le.innerHTML=Co,ft=s(),pe=l("p"),pe.innerHTML=Go,ut=s(),_(de.$$.fragment),ht=s(),_(D.$$.fragment),gt=s(),ce=l("p"),ce.innerHTML=Ao,_t=s(),me=l("ul"),me.innerHTML=Wo,bt=s(),_(fe.$$.fragment),yt=s(),F=l("div"),_(ue.$$.fragment),jt=s(),Te=l("p"),Te.innerHTML=Bo,kt=s(),Ie=l("p"),Ie.innerHTML=Ho,Ft=s(),Ue=l("p"),Ue.textContent=Vo,Pt=s(),je=l("ul"),je.innerHTML=So,Jt=s(),M=l("div"),_(he.$$.fragment),Zt=s(),ke=l("p"),ke.textContent=Lo,Ct=s(),Fe=l("p"),Fe.textContent=Ro,Gt=s(),Pe=l("ol"),Pe.innerHTML=Xo,At=s(),Je=l("p"),Je.innerHTML=zo,Wt=s(),Ze=l("p"),Ze.innerHTML=Qo,Bt=s(),_(Y.$$.fragment),Ht=s(),_(q.$$.fragment),Vt=s(),_(E.$$.fragment),St=s(),A=l("div"),_(ge.$$.fragment),Lt=s(),Ce=l("p"),Ce.textContent=No,Rt=s(),Ge=l("p"),Ge.textContent=Do,Xt=s(),Ae=l("p"),Ae.textContent=Yo,zt=s(),We=l("p"),We.innerHTML=qo,Qt=s(),_(K.$$.fragment),wt=s(),_(_e.$$.fragment),vt=s(),P=l("div"),_(be.$$.fragment),Nt=s(),Be=l("p"),Be.innerHTML=Eo,Dt=s(),He=l("p"),He.innerHTML=Ko,Yt=s(),Ve=l("p"),Ve.textContent=Oo,qt=s(),Se=l("ul"),Se.innerHTML=en,Et=s(),T=l("div"),_(ye.$$.fragment),Kt=s(),Le=l("p"),Le.textContent=tn,Ot=s(),Re=l("p"),Re.textContent=on,eo=s(),Xe=l("ol"),Xe.innerHTML=nn,to=s(),ze=l("p"),ze.innerHTML=sn,oo=s(),Qe=l("p"),Qe.innerHTML=an,no=s(),_(O.$$.fragment),so=s(),_(ee.$$.fragment),ao=s(),_(te.$$.fragment),io=s(),W=l("div"),_(we.$$.fragment),ro=s(),Ne=l("p"),Ne.textContent=rn,lo=s(),De=l("p"),De.textContent=ln,po=s(),Ye=l("p"),Ye.textContent=pn,co=s(),qe=l("p"),qe.innerHTML=dn,mo=s(),_(oe.$$.fragment),xt=s(),_(ve.$$.fragment),$t=s(),J=l("div"),_(xe.$$.fragment),fo=s(),Ee=l("p"),Ee.innerHTML=cn,uo=s(),Ke=l("p"),Ke.innerHTML=mn,ho=s(),Oe=l("p"),Oe.textContent=fn,go=s(),et=l("ul"),et.innerHTML=un,_o=s(),I=l("div"),_($e.$$.fragment),bo=s(),tt=l("p"),tt.textContent=hn,yo=s(),ot=l("p"),ot.textContent=gn,wo=s(),nt=l("ol"),nt.innerHTML=_n,vo=s(),st=l("p"),st.innerHTML=bn,xo=s(),at=l("p"),at.innerHTML=yn,$o=s(),_(ne.$$.fragment),Mo=s(),_(se.$$.fragment),To=s(),_(ae.$$.fragment),Io=s(),B=l("div"),_(Me.$$.fragment),Uo=s(),it=l("p"),it.textContent=wn,jo=s(),rt=l("p"),rt.textContent=vn,ko=s(),lt=l("p"),lt.textContent=xn,Fo=s(),pt=l("p"),pt.innerHTML=$n,Po=s(),_(ie.$$.fragment),Mt=s(),dt=l("p"),this.h()},l(e){const d=Jn("svelte-u9bgzb",document.head);o=p(d,"META",{name:!0,content:!0}),d.forEach(c),h=a(e),i=p(e,"P",{}),R(i).forEach(c),r=a(e),b(u.$$.fragment,e),t=a(e),g=p(e,"P",{"data-svelte-h":!0}),m(g)!=="svelte-7y4du4"&&(g.innerHTML=Jo),ct=a(e),re=p(e,"OL",{"data-svelte-h":!0}),m(re)!=="svelte-1am6zj"&&(re.innerHTML=Zo),mt=a(e),le=p(e,"P",{"data-svelte-h":!0}),m(le)!=="svelte-lyxn5u"&&(le.innerHTML=Co),ft=a(e),pe=p(e,"P",{"data-svelte-h":!0}),m(pe)!=="svelte-22235m"&&(pe.innerHTML=Go),ut=a(e),b(de.$$.fragment,e),ht=a(e),b(D.$$.fragment,e),gt=a(e),ce=p(e,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-1lfgkdc"&&(ce.innerHTML=Ao),_t=a(e),me=p(e,"UL",{"data-svelte-h":!0}),m(me)!=="svelte-x6vzrx"&&(me.innerHTML=Wo),bt=a(e),b(fe.$$.fragment,e),yt=a(e),F=p(e,"DIV",{class:!0});var Z=R(F);b(ue.$$.fragment,Z),jt=a(Z),Te=p(Z,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-1vm5ypo"&&(Te.innerHTML=Bo),kt=a(Z),Ie=p(Z,"P",{"data-svelte-h":!0}),m(Ie)!=="svelte-13laq45"&&(Ie.innerHTML=Ho),Ft=a(Z),Ue=p(Z,"P",{"data-svelte-h":!0}),m(Ue)!=="svelte-wz8va1"&&(Ue.textContent=Vo),Pt=a(Z),je=p(Z,"UL",{"data-svelte-h":!0}),m(je)!=="svelte-56flce"&&(je.innerHTML=So),Jt=a(Z),M=p(Z,"DIV",{class:!0});var U=R(M);b(he.$$.fragment,U),Zt=a(U),ke=p(U,"P",{"data-svelte-h":!0}),m(ke)!=="svelte-73gcl"&&(ke.textContent=Lo),Ct=a(U),Fe=p(U,"P",{"data-svelte-h":!0}),m(Fe)!=="svelte-3eelph"&&(Fe.textContent=Ro),Gt=a(U),Pe=p(U,"OL",{"data-svelte-h":!0}),m(Pe)!=="svelte-rrjsq6"&&(Pe.innerHTML=Xo),At=a(U),Je=p(U,"P",{"data-svelte-h":!0}),m(Je)!=="svelte-1ssrfqi"&&(Je.innerHTML=zo),Wt=a(U),Ze=p(U,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-1p5vgmd"&&(Ze.innerHTML=Qo),Bt=a(U),b(Y.$$.fragment,U),Ht=a(U),b(q.$$.fragment,U),Vt=a(U),b(E.$$.fragment,U),U.forEach(c),St=a(Z),A=p(Z,"DIV",{class:!0});var H=R(A);b(ge.$$.fragment,H),Lt=a(H),Ce=p(H,"P",{"data-svelte-h":!0}),m(Ce)!=="svelte-6rlsyn"&&(Ce.textContent=No),Rt=a(H),Ge=p(H,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-1im6dea"&&(Ge.textContent=Do),Xt=a(H),Ae=p(H,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-1pq6xjb"&&(Ae.textContent=Yo),zt=a(H),We=p(H,"P",{"data-svelte-h":!0}),m(We)!=="svelte-1p5vgmd"&&(We.innerHTML=qo),Qt=a(H),b(K.$$.fragment,H),H.forEach(c),Z.forEach(c),wt=a(e),b(_e.$$.fragment,e),vt=a(e),P=p(e,"DIV",{class:!0});var C=R(P);b(be.$$.fragment,C),Nt=a(C),Be=p(C,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-cbkdx2"&&(Be.innerHTML=Eo),Dt=a(C),He=p(C,"P",{"data-svelte-h":!0}),m(He)!=="svelte-13laq45"&&(He.innerHTML=Ko),Yt=a(C),Ve=p(C,"P",{"data-svelte-h":!0}),m(Ve)!=="svelte-wz8va1"&&(Ve.textContent=Oo),qt=a(C),Se=p(C,"UL",{"data-svelte-h":!0}),m(Se)!=="svelte-56flce"&&(Se.innerHTML=en),Et=a(C),T=p(C,"DIV",{class:!0});var j=R(T);b(ye.$$.fragment,j),Kt=a(j),Le=p(j,"P",{"data-svelte-h":!0}),m(Le)!=="svelte-ehfuat"&&(Le.textContent=tn),Ot=a(j),Re=p(j,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-3eelph"&&(Re.textContent=on),eo=a(j),Xe=p(j,"OL",{"data-svelte-h":!0}),m(Xe)!=="svelte-1pj7v4w"&&(Xe.innerHTML=nn),to=a(j),ze=p(j,"P",{"data-svelte-h":!0}),m(ze)!=="svelte-13hn5f4"&&(ze.innerHTML=sn),oo=a(j),Qe=p(j,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-1p5vgmd"&&(Qe.innerHTML=an),no=a(j),b(O.$$.fragment,j),so=a(j),b(ee.$$.fragment,j),ao=a(j),b(te.$$.fragment,j),j.forEach(c),io=a(C),W=p(C,"DIV",{class:!0});var V=R(W);b(we.$$.fragment,V),ro=a(V),Ne=p(V,"P",{"data-svelte-h":!0}),m(Ne)!=="svelte-10ckmdb"&&(Ne.textContent=rn),lo=a(V),De=p(V,"P",{"data-svelte-h":!0}),m(De)!=="svelte-3o5yim"&&(De.textContent=ln),po=a(V),Ye=p(V,"P",{"data-svelte-h":!0}),m(Ye)!=="svelte-1pq6xjb"&&(Ye.textContent=pn),co=a(V),qe=p(V,"P",{"data-svelte-h":!0}),m(qe)!=="svelte-1p5vgmd"&&(qe.innerHTML=dn),mo=a(V),b(oe.$$.fragment,V),V.forEach(c),C.forEach(c),xt=a(e),b(ve.$$.fragment,e),$t=a(e),J=p(e,"DIV",{class:!0});var G=R(J);b(xe.$$.fragment,G),fo=a(G),Ee=p(G,"P",{"data-svelte-h":!0}),m(Ee)!=="svelte-4f9e0g"&&(Ee.innerHTML=cn),uo=a(G),Ke=p(G,"P",{"data-svelte-h":!0}),m(Ke)!=="svelte-13laq45"&&(Ke.innerHTML=mn),ho=a(G),Oe=p(G,"P",{"data-svelte-h":!0}),m(Oe)!=="svelte-wz8va1"&&(Oe.textContent=fn),go=a(G),et=p(G,"UL",{"data-svelte-h":!0}),m(et)!=="svelte-56flce"&&(et.innerHTML=un),_o=a(G),I=p(G,"DIV",{class:!0});var k=R(I);b($e.$$.fragment,k),bo=a(k),tt=p(k,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-1fjqdar"&&(tt.textContent=hn),yo=a(k),ot=p(k,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-3eelph"&&(ot.textContent=gn),wo=a(k),nt=p(k,"OL",{"data-svelte-h":!0}),m(nt)!=="svelte-fu4x5s"&&(nt.innerHTML=_n),vo=a(k),st=p(k,"P",{"data-svelte-h":!0}),m(st)!=="svelte-g81wsy"&&(st.innerHTML=bn),xo=a(k),at=p(k,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1p5vgmd"&&(at.innerHTML=yn),$o=a(k),b(ne.$$.fragment,k),Mo=a(k),b(se.$$.fragment,k),To=a(k),b(ae.$$.fragment,k),k.forEach(c),Io=a(G),B=p(G,"DIV",{class:!0});var S=R(B);b(Me.$$.fragment,S),Uo=a(S),it=p(S,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1ass5kx"&&(it.textContent=wn),jo=a(S),rt=p(S,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-1jvxxhk"&&(rt.textContent=vn),ko=a(S),lt=p(S,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-vl5kxi"&&(lt.textContent=xn),Fo=a(S),pt=p(S,"P",{"data-svelte-h":!0}),m(pt)!=="svelte-1p5vgmd"&&(pt.innerHTML=$n),Po=a(S),b(ie.$$.fragment,S),S.forEach(c),G.forEach(c),Mt=a(e),dt=p(e,"P",{}),R(dt).forEach(c),this.h()},h(){X(o,"name","hf:doc:metadata"),X(o,"content",Nn),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(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(T,"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(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),X(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(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,d){n(document.head,o),f(e,h,d),f(e,i,d),f(e,r,d),y(u,e,d),f(e,t,d),f(e,g,d),f(e,ct,d),f(e,re,d),f(e,mt,d),f(e,le,d),f(e,ft,d),f(e,pe,d),f(e,ut,d),y(de,e,d),f(e,ht,d),y(D,e,d),f(e,gt,d),f(e,ce,d),f(e,_t,d),f(e,me,d),f(e,bt,d),y(fe,e,d),f(e,yt,d),f(e,F,d),y(ue,F,null),n(F,jt),n(F,Te),n(F,kt),n(F,Ie),n(F,Ft),n(F,Ue),n(F,Pt),n(F,je),n(F,Jt),n(F,M),y(he,M,null),n(M,Zt),n(M,ke),n(M,Ct),n(M,Fe),n(M,Gt),n(M,Pe),n(M,At),n(M,Je),n(M,Wt),n(M,Ze),n(M,Bt),y(Y,M,null),n(M,Ht),y(q,M,null),n(M,Vt),y(E,M,null),n(F,St),n(F,A),y(ge,A,null),n(A,Lt),n(A,Ce),n(A,Rt),n(A,Ge),n(A,Xt),n(A,Ae),n(A,zt),n(A,We),n(A,Qt),y(K,A,null),f(e,wt,d),y(_e,e,d),f(e,vt,d),f(e,P,d),y(be,P,null),n(P,Nt),n(P,Be),n(P,Dt),n(P,He),n(P,Yt),n(P,Ve),n(P,qt),n(P,Se),n(P,Et),n(P,T),y(ye,T,null),n(T,Kt),n(T,Le),n(T,Ot),n(T,Re),n(T,eo),n(T,Xe),n(T,to),n(T,ze),n(T,oo),n(T,Qe),n(T,no),y(O,T,null),n(T,so),y(ee,T,null),n(T,ao),y(te,T,null),n(P,io),n(P,W),y(we,W,null),n(W,ro),n(W,Ne),n(W,lo),n(W,De),n(W,po),n(W,Ye),n(W,co),n(W,qe),n(W,mo),y(oe,W,null),f(e,xt,d),y(ve,e,d),f(e,$t,d),f(e,J,d),y(xe,J,null),n(J,fo),n(J,Ee),n(J,uo),n(J,Ke),n(J,ho),n(J,Oe),n(J,go),n(J,et),n(J,_o),n(J,I),y($e,I,null),n(I,bo),n(I,tt),n(I,yo),n(I,ot),n(I,wo),n(I,nt),n(I,vo),n(I,st),n(I,xo),n(I,at),n(I,$o),y(ne,I,null),n(I,Mo),y(se,I,null),n(I,To),y(ae,I,null),n(J,Io),n(J,B),y(Me,B,null),n(B,Uo),n(B,it),n(B,jo),n(B,rt),n(B,ko),n(B,lt),n(B,Fo),n(B,pt),n(B,Po),y(ie,B,null),f(e,Mt,d),f(e,dt,d),Tt=!0},p(e,[d]){const Z={};d&2&&(Z.$$scope={dirty:d,ctx:e}),D.$set(Z);const U={};d&2&&(U.$$scope={dirty:d,ctx:e}),Y.$set(U);const H={};d&2&&(H.$$scope={dirty:d,ctx:e}),q.$set(H);const C={};d&2&&(C.$$scope={dirty:d,ctx:e}),E.$set(C);const j={};d&2&&(j.$$scope={dirty:d,ctx:e}),K.$set(j);const V={};d&2&&(V.$$scope={dirty:d,ctx:e}),O.$set(V);const G={};d&2&&(G.$$scope={dirty:d,ctx:e}),ee.$set(G);const k={};d&2&&(k.$$scope={dirty:d,ctx:e}),te.$set(k);const S={};d&2&&(S.$$scope={dirty:d,ctx:e}),oe.$set(S);const Mn={};d&2&&(Mn.$$scope={dirty:d,ctx:e}),ne.$set(Mn);const Tn={};d&2&&(Tn.$$scope={dirty:d,ctx:e}),se.$set(Tn);const In={};d&2&&(In.$$scope={dirty:d,ctx:e}),ae.$set(In);const Un={};d&2&&(Un.$$scope={dirty:d,ctx:e}),ie.$set(Un)},i(e){Tt||(w(u.$$.fragment,e),w(de.$$.fragment,e),w(D.$$.fragment,e),w(fe.$$.fragment,e),w(ue.$$.fragment,e),w(he.$$.fragment,e),w(Y.$$.fragment,e),w(q.$$.fragment,e),w(E.$$.fragment,e),w(ge.$$.fragment,e),w(K.$$.fragment,e),w(_e.$$.fragment,e),w(be.$$.fragment,e),w(ye.$$.fragment,e),w(O.$$.fragment,e),w(ee.$$.fragment,e),w(te.$$.fragment,e),w(we.$$.fragment,e),w(oe.$$.fragment,e),w(ve.$$.fragment,e),w(xe.$$.fragment,e),w($e.$$.fragment,e),w(ne.$$.fragment,e),w(se.$$.fragment,e),w(ae.$$.fragment,e),w(Me.$$.fragment,e),w(ie.$$.fragment,e),Tt=!0)},o(e){v(u.$$.fragment,e),v(de.$$.fragment,e),v(D.$$.fragment,e),v(fe.$$.fragment,e),v(ue.$$.fragment,e),v(he.$$.fragment,e),v(Y.$$.fragment,e),v(q.$$.fragment,e),v(E.$$.fragment,e),v(ge.$$.fragment,e),v(K.$$.fragment,e),v(_e.$$.fragment,e),v(be.$$.fragment,e),v(ye.$$.fragment,e),v(O.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(we.$$.fragment,e),v(oe.$$.fragment,e),v(ve.$$.fragment,e),v(xe.$$.fragment,e),v($e.$$.fragment,e),v(ne.$$.fragment,e),v(se.$$.fragment,e),v(ae.$$.fragment,e),v(Me.$$.fragment,e),v(ie.$$.fragment,e),Tt=!1},d(e){e&&(c(h),c(i),c(r),c(t),c(g),c(ct),c(re),c(mt),c(le),c(ft),c(pe),c(ut),c(ht),c(gt),c(ce),c(_t),c(me),c(bt),c(yt),c(F),c(wt),c(vt),c(P),c(xt),c($t),c(J),c(Mt),c(dt)),c(o),x(u,e),x(de,e),x(D,e),x(fe,e),x(ue),x(he),x(Y),x(q),x(E),x(ge),x(K),x(_e,e),x(be),x(ye),x(O),x(ee),x(te),x(we),x(oe),x(ve,e),x(xe),x($e),x(ne),x(se),x(ae),x(Me),x(ie)}}}const Nn='{"title":"AutoPipeline","local":"autopipeline","sections":[{"title":"AutoPipelineForText2Image","local":"diffusers.AutoPipelineForText2Image","sections":[],"depth":2},{"title":"AutoPipelineForImage2Image","local":"diffusers.AutoPipelineForImage2Image","sections":[],"depth":2},{"title":"AutoPipelineForInpainting","local":"diffusers.AutoPipelineForInpainting","sections":[],"depth":2}],"depth":1}';function Dn($){return kn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class os extends Fn{constructor(o){super(),Pn(this,o,Dn,Qn,jn,{})}}export{os as component};
