import{s as fn,o as un,n as L}from"../chunks/scheduler.8c3d61f6.js";import{S as hn,i as gn,g as l,s as i,r as _,A as _n,h as p,f as m,c as r,j as R,u as b,x as c,k as z,y as n,a as g,v as w,d as y,t as v,w as $}from"../chunks/index.da70eac4.js";import{T as gt}from"../chunks/Tip.1d9b8c37.js";import{D as X}from"../chunks/Docstring.6b390b9a.js";import{C as D}from"../chunks/CodeBlock.00a903b3.js";import{E as Y}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as _t,E as bn}from"../chunks/EditOnGithub.1e64e623.js";function wn(x){let o,u='Check out the <a href="../../tutorials/autopipeline">AutoPipeline</a> tutorial to learn how to use this API!';return{c(){o=l("p"),o.innerHTML=u},l(s){o=p(s,"P",{"data-svelte-h":!0}),c(o)!=="svelte-1npomoi"&&(o.innerHTML=u)},m(s,a){g(s,o,a)},p:L,d(s){s&&m(o)}}}function yn(x){let o,u="If you get the error message below, you need to finetune the weights for your downstream task:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-xueb0m"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function vn(x){let o,u=`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=u},l(s){o=p(s,"P",{"data-svelte-h":!0}),c(o)!=="svelte-x73rgs"&&(o.innerHTML=u)},m(s,a){g(s,o,a)},p:L,d(s){s&&m(o)}}}function $n(x){let o,u="Examples:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function xn(x){let o,u;return o=new D({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(s){b(o.$$.fragment,s)},m(s,a){w(o,s,a),u=!0},p:L,i(s){u||(y(o.$$.fragment,s),u=!0)},o(s){v(o.$$.fragment,s),u=!1},d(s){$(o,s)}}}function Tn(x){let o,u="If you get the error message below, you need to finetune the weights for your downstream task:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-xueb0m"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function In(x){let o,u=`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=u},l(s){o=p(s,"P",{"data-svelte-h":!0}),c(o)!=="svelte-x73rgs"&&(o.innerHTML=u)},m(s,a){g(s,o,a)},p:L,d(s){s&&m(o)}}}function Mn(x){let o,u="Examples:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function jn(x){let o,u="Examples:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function Un(x){let o,u="If you get the error message below, you need to finetune the weights for your downstream task:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-xueb0m"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function Pn(x){let o,u=`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=u},l(s){o=p(s,"P",{"data-svelte-h":!0}),c(o)!=="svelte-x73rgs"&&(o.innerHTML=u)},m(s,a){g(s,o,a)},p:L,d(s){s&&m(o)}}}function kn(x){let o,u="Examples:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function Fn(x){let o,u="Examples:",s,a,f;return a=new D({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=u,s=i(),_(a.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-kvfsh7"&&(o.textContent=u),s=r(t),b(a.$$.fragment,t)},m(t,h){g(t,o,h),g(t,s,h),w(a,t,h),f=!0},p:L,i(t){f||(y(a.$$.fragment,t),f=!0)},o(t){v(a.$$.fragment,t),f=!1},d(t){t&&(m(o),m(s)),$(a,t)}}}function Jn(x){let o,u,s,a,f,t,h,$o="The <code>AutoPipeline</code> is designed to make it easy to load a checkpoint for a task without needing to know the specific pipeline class. Based on the task, the <code>AutoPipeline</code> automatically retrieves the correct pipeline class from the checkpoint <code>model_index.json</code> file.",it,N,rt,re,lt,k,le,bt,ye,xo=`<a href="/docs/diffusers/pr_10086/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/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pipe">from_pipe()</a> methods.`,wt,ve,To="This class cannot be instantiated using <code>__init__()</code> (throws an error).",yt,$e,Io="Class attributes:",vt,xe,Mo=`<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>`,$t,T,pe,xt,Te,jo="Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",Tt,Ie,Uo="The from_pretrained() method takes care of returning the correct pipeline class instance by:",It,Me,Po=`<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>`,Mt,je,ko='If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_10086/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline">StableDiffusionControlNetPipeline</a> object.',jt,Ue,Fo="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Ut,Q,Pt,E,kt,q,Ft,A,de,Jt,Pe,Jo="Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",Zt,ke,Zo=`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.`,Ct,Fe,Co=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memory.`,Gt,Je,Go="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",At,K,pt,ce,dt,F,me,Wt,Ze,Ao=`<a href="/docs/diffusers/pr_10086/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/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pipe">from_pipe()</a> methods.`,Bt,Ce,Wo="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Ht,Ge,Bo="Class attributes:",St,Ae,Ho=`<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>`,Vt,I,fe,Lt,We,So="Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",Rt,Be,Vo="The from_pretrained() method takes care of returning the correct pipeline class instance by:",zt,He,Lo=`<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>`,Xt,Se,Ro=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_10086/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetImg2ImgPipeline">StableDiffusionControlNetImg2ImgPipeline</a>
object.`,Yt,Ve,zo="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Dt,O,Nt,ee,Qt,te,Et,W,ue,qt,Le,Xo="Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",Kt,Re,Yo=`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.`,Ot,ze,Do=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memory.`,eo,Xe,No="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",to,oe,ct,he,mt,J,ge,oo,Ye,Qo=`<a href="/docs/diffusers/pr_10086/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/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_10086/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pipe">from_pipe()</a> methods.`,no,De,Eo="This class cannot be instantiated using <code>__init__()</code> (throws an error).",so,Ne,qo="Class attributes:",ao,Qe,Ko=`<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>`,io,M,_e,ro,Ee,Oo="Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight.",lo,qe,en="The from_pretrained() method takes care of returning the correct pipeline class instance by:",po,Ke,tn=`<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>`,co,Oe,on=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_10086/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetInpaintPipeline">StableDiffusionControlNetInpaintPipeline</a>
object.`,mo,et,nn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",fo,ne,uo,se,ho,ae,go,B,be,_o,tt,sn="Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",bo,ot,an=`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.`,wo,nt,rn=`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memory.`,yo,st,ln="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",vo,ie,ft,we,ut,at,ht;return f=new _t({props:{title:"AutoPipeline",local:"autopipeline",headingTag:"h1"}}),N=new gt({props:{warning:!1,$$slots:{default:[wn]},$$scope:{ctx:x}}}),re=new _t({props:{title:"AutoPipelineForText2Image",local:"diffusers.AutoPipelineForText2Image",headingTag:"h2"}}),le=new X({props:{name:"class diffusers.AutoPipelineForText2Image",anchor:"diffusers.AutoPipelineForText2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L235"}}),pe=new X({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_or_path",description:`<strong>pretrained_model_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/pr_10086/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_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.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.token",description:`<strong>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:"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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L260"}}),Q=new Y({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example",$$slots:{default:[yn]},$$scope:{ctx:x}}}),E=new gt({props:{$$slots:{default:[vn]},$$scope:{ctx:x}}}),q=new Y({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example-2",$$slots:{default:[$n]},$$scope:{ctx:x}}}),de=new X({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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L406"}}),K=new Y({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.example",$$slots:{default:[xn]},$$scope:{ctx:x}}}),ce=new _t({props:{title:"AutoPipelineForImage2Image",local:"diffusers.AutoPipelineForImage2Image",headingTag:"h2"}}),me=new X({props:{name:"class diffusers.AutoPipelineForImage2Image",anchor:"diffusers.AutoPipelineForImage2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L521"}}),fe=new X({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_or_path",description:`<strong>pretrained_model_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/pr_10086/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_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.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.token",description:`<strong>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:"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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L546"}}),O=new Y({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example",$$slots:{default:[Tn]},$$scope:{ctx:x}}}),ee=new gt({props:{$$slots:{default:[In]},$$scope:{ctx:x}}}),te=new Y({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example-2",$$slots:{default:[Mn]},$$scope:{ctx:x}}}),ue=new X({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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L698"}}),oe=new Y({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.example",$$slots:{default:[jn]},$$scope:{ctx:x}}}),he=new _t({props:{title:"AutoPipelineForInpainting",local:"diffusers.AutoPipelineForInpainting",headingTag:"h2"}}),ge=new X({props:{name:"class diffusers.AutoPipelineForInpainting",anchor:"diffusers.AutoPipelineForInpainting",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L819"}}),_e=new X({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_or_path",description:`<strong>pretrained_model_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/pr_10086/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_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.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.token",description:`<strong>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:"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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L844"}}),ne=new Y({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example",$$slots:{default:[Un]},$$scope:{ctx:x}}}),se=new gt({props:{$$slots:{default:[Pn]},$$scope:{ctx:x}}}),ae=new Y({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example-2",$$slots:{default:[kn]},$$scope:{ctx:x}}}),be=new X({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/vr_10086/src/diffusers/pipelines/auto_pipeline.py#L994"}}),ie=new Y({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.example",$$slots:{default:[Fn]},$$scope:{ctx:x}}}),we=new bn({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/auto_pipeline.md"}}),{c(){o=l("meta"),u=i(),s=l("p"),a=i(),_(f.$$.fragment),t=i(),h=l("p"),h.innerHTML=$o,it=i(),_(N.$$.fragment),rt=i(),_(re.$$.fragment),lt=i(),k=l("div"),_(le.$$.fragment),bt=i(),ye=l("p"),ye.innerHTML=xo,wt=i(),ve=l("p"),ve.innerHTML=To,yt=i(),$e=l("p"),$e.textContent=Io,vt=i(),xe=l("ul"),xe.innerHTML=Mo,$t=i(),T=l("div"),_(pe.$$.fragment),xt=i(),Te=l("p"),Te.textContent=jo,Tt=i(),Ie=l("p"),Ie.textContent=Uo,It=i(),Me=l("ol"),Me.innerHTML=Po,Mt=i(),je=l("p"),je.innerHTML=ko,jt=i(),Ue=l("p"),Ue.innerHTML=Fo,Ut=i(),_(Q.$$.fragment),Pt=i(),_(E.$$.fragment),kt=i(),_(q.$$.fragment),Ft=i(),A=l("div"),_(de.$$.fragment),Jt=i(),Pe=l("p"),Pe.textContent=Jo,Zt=i(),ke=l("p"),ke.textContent=Zo,Ct=i(),Fe=l("p"),Fe.textContent=Co,Gt=i(),Je=l("p"),Je.innerHTML=Go,At=i(),_(K.$$.fragment),pt=i(),_(ce.$$.fragment),dt=i(),F=l("div"),_(me.$$.fragment),Wt=i(),Ze=l("p"),Ze.innerHTML=Ao,Bt=i(),Ce=l("p"),Ce.innerHTML=Wo,Ht=i(),Ge=l("p"),Ge.textContent=Bo,St=i(),Ae=l("ul"),Ae.innerHTML=Ho,Vt=i(),I=l("div"),_(fe.$$.fragment),Lt=i(),We=l("p"),We.textContent=So,Rt=i(),Be=l("p"),Be.textContent=Vo,zt=i(),He=l("ol"),He.innerHTML=Lo,Xt=i(),Se=l("p"),Se.innerHTML=Ro,Yt=i(),Ve=l("p"),Ve.innerHTML=zo,Dt=i(),_(O.$$.fragment),Nt=i(),_(ee.$$.fragment),Qt=i(),_(te.$$.fragment),Et=i(),W=l("div"),_(ue.$$.fragment),qt=i(),Le=l("p"),Le.textContent=Xo,Kt=i(),Re=l("p"),Re.textContent=Yo,Ot=i(),ze=l("p"),ze.textContent=Do,eo=i(),Xe=l("p"),Xe.innerHTML=No,to=i(),_(oe.$$.fragment),ct=i(),_(he.$$.fragment),mt=i(),J=l("div"),_(ge.$$.fragment),oo=i(),Ye=l("p"),Ye.innerHTML=Qo,no=i(),De=l("p"),De.innerHTML=Eo,so=i(),Ne=l("p"),Ne.textContent=qo,ao=i(),Qe=l("ul"),Qe.innerHTML=Ko,io=i(),M=l("div"),_(_e.$$.fragment),ro=i(),Ee=l("p"),Ee.textContent=Oo,lo=i(),qe=l("p"),qe.textContent=en,po=i(),Ke=l("ol"),Ke.innerHTML=tn,co=i(),Oe=l("p"),Oe.innerHTML=on,mo=i(),et=l("p"),et.innerHTML=nn,fo=i(),_(ne.$$.fragment),uo=i(),_(se.$$.fragment),ho=i(),_(ae.$$.fragment),go=i(),B=l("div"),_(be.$$.fragment),_o=i(),tt=l("p"),tt.textContent=sn,bo=i(),ot=l("p"),ot.textContent=an,wo=i(),nt=l("p"),nt.textContent=rn,yo=i(),st=l("p"),st.innerHTML=ln,vo=i(),_(ie.$$.fragment),ft=i(),_(we.$$.fragment),ut=i(),at=l("p"),this.h()},l(e){const d=_n("svelte-u9bgzb",document.head);o=p(d,"META",{name:!0,content:!0}),d.forEach(m),u=r(e),s=p(e,"P",{}),R(s).forEach(m),a=r(e),b(f.$$.fragment,e),t=r(e),h=p(e,"P",{"data-svelte-h":!0}),c(h)!=="svelte-10ft6k8"&&(h.innerHTML=$o),it=r(e),b(N.$$.fragment,e),rt=r(e),b(re.$$.fragment,e),lt=r(e),k=p(e,"DIV",{class:!0});var Z=R(k);b(le.$$.fragment,Z),bt=r(Z),ye=p(Z,"P",{"data-svelte-h":!0}),c(ye)!=="svelte-220gop"&&(ye.innerHTML=xo),wt=r(Z),ve=p(Z,"P",{"data-svelte-h":!0}),c(ve)!=="svelte-13laq45"&&(ve.innerHTML=To),yt=r(Z),$e=p(Z,"P",{"data-svelte-h":!0}),c($e)!=="svelte-wz8va1"&&($e.textContent=Io),vt=r(Z),xe=p(Z,"UL",{"data-svelte-h":!0}),c(xe)!=="svelte-56flce"&&(xe.innerHTML=Mo),$t=r(Z),T=p(Z,"DIV",{class:!0});var j=R(T);b(pe.$$.fragment,j),xt=r(j),Te=p(j,"P",{"data-svelte-h":!0}),c(Te)!=="svelte-73gcl"&&(Te.textContent=jo),Tt=r(j),Ie=p(j,"P",{"data-svelte-h":!0}),c(Ie)!=="svelte-3eelph"&&(Ie.textContent=Uo),It=r(j),Me=p(j,"OL",{"data-svelte-h":!0}),c(Me)!=="svelte-rrjsq6"&&(Me.innerHTML=Po),Mt=r(j),je=p(j,"P",{"data-svelte-h":!0}),c(je)!=="svelte-11i4gfj"&&(je.innerHTML=ko),jt=r(j),Ue=p(j,"P",{"data-svelte-h":!0}),c(Ue)!=="svelte-1p5vgmd"&&(Ue.innerHTML=Fo),Ut=r(j),b(Q.$$.fragment,j),Pt=r(j),b(E.$$.fragment,j),kt=r(j),b(q.$$.fragment,j),j.forEach(m),Ft=r(Z),A=p(Z,"DIV",{class:!0});var H=R(A);b(de.$$.fragment,H),Jt=r(H),Pe=p(H,"P",{"data-svelte-h":!0}),c(Pe)!=="svelte-6rlsyn"&&(Pe.textContent=Jo),Zt=r(H),ke=p(H,"P",{"data-svelte-h":!0}),c(ke)!=="svelte-1im6dea"&&(ke.textContent=Zo),Ct=r(H),Fe=p(H,"P",{"data-svelte-h":!0}),c(Fe)!=="svelte-1u0ofey"&&(Fe.textContent=Co),Gt=r(H),Je=p(H,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-1p5vgmd"&&(Je.innerHTML=Go),At=r(H),b(K.$$.fragment,H),H.forEach(m),Z.forEach(m),pt=r(e),b(ce.$$.fragment,e),dt=r(e),F=p(e,"DIV",{class:!0});var C=R(F);b(me.$$.fragment,C),Wt=r(C),Ze=p(C,"P",{"data-svelte-h":!0}),c(Ze)!=="svelte-1d5q0n9"&&(Ze.innerHTML=Ao),Bt=r(C),Ce=p(C,"P",{"data-svelte-h":!0}),c(Ce)!=="svelte-13laq45"&&(Ce.innerHTML=Wo),Ht=r(C),Ge=p(C,"P",{"data-svelte-h":!0}),c(Ge)!=="svelte-wz8va1"&&(Ge.textContent=Bo),St=r(C),Ae=p(C,"UL",{"data-svelte-h":!0}),c(Ae)!=="svelte-56flce"&&(Ae.innerHTML=Ho),Vt=r(C),I=p(C,"DIV",{class:!0});var U=R(I);b(fe.$$.fragment,U),Lt=r(U),We=p(U,"P",{"data-svelte-h":!0}),c(We)!=="svelte-ehfuat"&&(We.textContent=So),Rt=r(U),Be=p(U,"P",{"data-svelte-h":!0}),c(Be)!=="svelte-3eelph"&&(Be.textContent=Vo),zt=r(U),He=p(U,"OL",{"data-svelte-h":!0}),c(He)!=="svelte-1pj7v4w"&&(He.innerHTML=Lo),Xt=r(U),Se=p(U,"P",{"data-svelte-h":!0}),c(Se)!=="svelte-zoql2d"&&(Se.innerHTML=Ro),Yt=r(U),Ve=p(U,"P",{"data-svelte-h":!0}),c(Ve)!=="svelte-1p5vgmd"&&(Ve.innerHTML=zo),Dt=r(U),b(O.$$.fragment,U),Nt=r(U),b(ee.$$.fragment,U),Qt=r(U),b(te.$$.fragment,U),U.forEach(m),Et=r(C),W=p(C,"DIV",{class:!0});var S=R(W);b(ue.$$.fragment,S),qt=r(S),Le=p(S,"P",{"data-svelte-h":!0}),c(Le)!=="svelte-10ckmdb"&&(Le.textContent=Xo),Kt=r(S),Re=p(S,"P",{"data-svelte-h":!0}),c(Re)!=="svelte-3o5yim"&&(Re.textContent=Yo),Ot=r(S),ze=p(S,"P",{"data-svelte-h":!0}),c(ze)!=="svelte-1u0ofey"&&(ze.textContent=Do),eo=r(S),Xe=p(S,"P",{"data-svelte-h":!0}),c(Xe)!=="svelte-1p5vgmd"&&(Xe.innerHTML=No),to=r(S),b(oe.$$.fragment,S),S.forEach(m),C.forEach(m),ct=r(e),b(he.$$.fragment,e),mt=r(e),J=p(e,"DIV",{class:!0});var G=R(J);b(ge.$$.fragment,G),oo=r(G),Ye=p(G,"P",{"data-svelte-h":!0}),c(Ye)!=="svelte-1eww7xz"&&(Ye.innerHTML=Qo),no=r(G),De=p(G,"P",{"data-svelte-h":!0}),c(De)!=="svelte-13laq45"&&(De.innerHTML=Eo),so=r(G),Ne=p(G,"P",{"data-svelte-h":!0}),c(Ne)!=="svelte-wz8va1"&&(Ne.textContent=qo),ao=r(G),Qe=p(G,"UL",{"data-svelte-h":!0}),c(Qe)!=="svelte-56flce"&&(Qe.innerHTML=Ko),io=r(G),M=p(G,"DIV",{class:!0});var P=R(M);b(_e.$$.fragment,P),ro=r(P),Ee=p(P,"P",{"data-svelte-h":!0}),c(Ee)!=="svelte-1fjqdar"&&(Ee.textContent=Oo),lo=r(P),qe=p(P,"P",{"data-svelte-h":!0}),c(qe)!=="svelte-3eelph"&&(qe.textContent=en),po=r(P),Ke=p(P,"OL",{"data-svelte-h":!0}),c(Ke)!=="svelte-fu4x5s"&&(Ke.innerHTML=tn),co=r(P),Oe=p(P,"P",{"data-svelte-h":!0}),c(Oe)!=="svelte-yzukdj"&&(Oe.innerHTML=on),mo=r(P),et=p(P,"P",{"data-svelte-h":!0}),c(et)!=="svelte-1p5vgmd"&&(et.innerHTML=nn),fo=r(P),b(ne.$$.fragment,P),uo=r(P),b(se.$$.fragment,P),ho=r(P),b(ae.$$.fragment,P),P.forEach(m),go=r(G),B=p(G,"DIV",{class:!0});var V=R(B);b(be.$$.fragment,V),_o=r(V),tt=p(V,"P",{"data-svelte-h":!0}),c(tt)!=="svelte-1ass5kx"&&(tt.textContent=sn),bo=r(V),ot=p(V,"P",{"data-svelte-h":!0}),c(ot)!=="svelte-1jvxxhk"&&(ot.textContent=an),wo=r(V),nt=p(V,"P",{"data-svelte-h":!0}),c(nt)!=="svelte-16h1ngl"&&(nt.textContent=rn),yo=r(V),st=p(V,"P",{"data-svelte-h":!0}),c(st)!=="svelte-1p5vgmd"&&(st.innerHTML=ln),vo=r(V),b(ie.$$.fragment,V),V.forEach(m),G.forEach(m),ft=r(e),b(we.$$.fragment,e),ut=r(e),at=p(e,"P",{}),R(at).forEach(m),this.h()},h(){z(o,"name","hf:doc:metadata"),z(o,"content",Zn),z(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),z(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),g(e,u,d),g(e,s,d),g(e,a,d),w(f,e,d),g(e,t,d),g(e,h,d),g(e,it,d),w(N,e,d),g(e,rt,d),w(re,e,d),g(e,lt,d),g(e,k,d),w(le,k,null),n(k,bt),n(k,ye),n(k,wt),n(k,ve),n(k,yt),n(k,$e),n(k,vt),n(k,xe),n(k,$t),n(k,T),w(pe,T,null),n(T,xt),n(T,Te),n(T,Tt),n(T,Ie),n(T,It),n(T,Me),n(T,Mt),n(T,je),n(T,jt),n(T,Ue),n(T,Ut),w(Q,T,null),n(T,Pt),w(E,T,null),n(T,kt),w(q,T,null),n(k,Ft),n(k,A),w(de,A,null),n(A,Jt),n(A,Pe),n(A,Zt),n(A,ke),n(A,Ct),n(A,Fe),n(A,Gt),n(A,Je),n(A,At),w(K,A,null),g(e,pt,d),w(ce,e,d),g(e,dt,d),g(e,F,d),w(me,F,null),n(F,Wt),n(F,Ze),n(F,Bt),n(F,Ce),n(F,Ht),n(F,Ge),n(F,St),n(F,Ae),n(F,Vt),n(F,I),w(fe,I,null),n(I,Lt),n(I,We),n(I,Rt),n(I,Be),n(I,zt),n(I,He),n(I,Xt),n(I,Se),n(I,Yt),n(I,Ve),n(I,Dt),w(O,I,null),n(I,Nt),w(ee,I,null),n(I,Qt),w(te,I,null),n(F,Et),n(F,W),w(ue,W,null),n(W,qt),n(W,Le),n(W,Kt),n(W,Re),n(W,Ot),n(W,ze),n(W,eo),n(W,Xe),n(W,to),w(oe,W,null),g(e,ct,d),w(he,e,d),g(e,mt,d),g(e,J,d),w(ge,J,null),n(J,oo),n(J,Ye),n(J,no),n(J,De),n(J,so),n(J,Ne),n(J,ao),n(J,Qe),n(J,io),n(J,M),w(_e,M,null),n(M,ro),n(M,Ee),n(M,lo),n(M,qe),n(M,po),n(M,Ke),n(M,co),n(M,Oe),n(M,mo),n(M,et),n(M,fo),w(ne,M,null),n(M,uo),w(se,M,null),n(M,ho),w(ae,M,null),n(J,go),n(J,B),w(be,B,null),n(B,_o),n(B,tt),n(B,bo),n(B,ot),n(B,wo),n(B,nt),n(B,yo),n(B,st),n(B,vo),w(ie,B,null),g(e,ft,d),w(we,e,d),g(e,ut,d),g(e,at,d),ht=!0},p(e,[d]){const Z={};d&2&&(Z.$$scope={dirty:d,ctx:e}),N.$set(Z);const j={};d&2&&(j.$$scope={dirty:d,ctx:e}),Q.$set(j);const H={};d&2&&(H.$$scope={dirty:d,ctx:e}),E.$set(H);const C={};d&2&&(C.$$scope={dirty:d,ctx:e}),q.$set(C);const U={};d&2&&(U.$$scope={dirty:d,ctx:e}),K.$set(U);const S={};d&2&&(S.$$scope={dirty:d,ctx:e}),O.$set(S);const G={};d&2&&(G.$$scope={dirty:d,ctx:e}),ee.$set(G);const P={};d&2&&(P.$$scope={dirty:d,ctx:e}),te.$set(P);const V={};d&2&&(V.$$scope={dirty:d,ctx:e}),oe.$set(V);const pn={};d&2&&(pn.$$scope={dirty:d,ctx:e}),ne.$set(pn);const dn={};d&2&&(dn.$$scope={dirty:d,ctx:e}),se.$set(dn);const cn={};d&2&&(cn.$$scope={dirty:d,ctx:e}),ae.$set(cn);const mn={};d&2&&(mn.$$scope={dirty:d,ctx:e}),ie.$set(mn)},i(e){ht||(y(f.$$.fragment,e),y(N.$$.fragment,e),y(re.$$.fragment,e),y(le.$$.fragment,e),y(pe.$$.fragment,e),y(Q.$$.fragment,e),y(E.$$.fragment,e),y(q.$$.fragment,e),y(de.$$.fragment,e),y(K.$$.fragment,e),y(ce.$$.fragment,e),y(me.$$.fragment,e),y(fe.$$.fragment,e),y(O.$$.fragment,e),y(ee.$$.fragment,e),y(te.$$.fragment,e),y(ue.$$.fragment,e),y(oe.$$.fragment,e),y(he.$$.fragment,e),y(ge.$$.fragment,e),y(_e.$$.fragment,e),y(ne.$$.fragment,e),y(se.$$.fragment,e),y(ae.$$.fragment,e),y(be.$$.fragment,e),y(ie.$$.fragment,e),y(we.$$.fragment,e),ht=!0)},o(e){v(f.$$.fragment,e),v(N.$$.fragment,e),v(re.$$.fragment,e),v(le.$$.fragment,e),v(pe.$$.fragment,e),v(Q.$$.fragment,e),v(E.$$.fragment,e),v(q.$$.fragment,e),v(de.$$.fragment,e),v(K.$$.fragment,e),v(ce.$$.fragment,e),v(me.$$.fragment,e),v(fe.$$.fragment,e),v(O.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(ue.$$.fragment,e),v(oe.$$.fragment,e),v(he.$$.fragment,e),v(ge.$$.fragment,e),v(_e.$$.fragment,e),v(ne.$$.fragment,e),v(se.$$.fragment,e),v(ae.$$.fragment,e),v(be.$$.fragment,e),v(ie.$$.fragment,e),v(we.$$.fragment,e),ht=!1},d(e){e&&(m(u),m(s),m(a),m(t),m(h),m(it),m(rt),m(lt),m(k),m(pt),m(dt),m(F),m(ct),m(mt),m(J),m(ft),m(ut),m(at)),m(o),$(f,e),$(N,e),$(re,e),$(le),$(pe),$(Q),$(E),$(q),$(de),$(K),$(ce,e),$(me),$(fe),$(O),$(ee),$(te),$(ue),$(oe),$(he,e),$(ge),$(_e),$(ne),$(se),$(ae),$(be),$(ie),$(we,e)}}}const Zn='{"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 Cn(x){return un(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ln extends hn{constructor(o){super(),gn(this,o,Cn,Jn,fn,{})}}export{Ln as component};
