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