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