import{S as Sl,i as Wl,s as Vl,e as a,k as d,w as v,t as r,M as Cl,c as s,d as t,m as c,a as i,x as w,h as l,b as y,G as e,g as b,y as I,q as $,o as T,B as P,v as Dl,L as le}from"../../../chunks/vendor-hf-doc-builder.js";import{T as hr}from"../../../chunks/Tip-hf-doc-builder.js";import{D as ie}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as te}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as Un}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as re}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Rl(j){let p,_,f,m,g;return m=new te({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`<span class="hljs-comment">Some</span> <span class="hljs-comment">weights</span> <span class="hljs-comment">of</span> <span class="hljs-comment">UNet2DConditionModel were not initialized from the model checkpoint at</span> <span class="hljs-comment">runwayml/stable</span><span class="hljs-literal">-</span><span class="hljs-comment">diffusion</span><span class="hljs-literal">-</span><span class="hljs-comment">v1</span><span class="hljs-literal">-</span><span class="hljs-comment">5 and are newly initialized because the shapes did</span> <span class="hljs-comment">not</span> <span class="hljs-comment">match:</span>
<span class="hljs-literal">-</span> <span class="hljs-comment">conv_in</span><span class="hljs-string">.</span><span class="hljs-comment">weight:</span> <span class="hljs-comment">found</span> <span class="hljs-comment">shape</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">4</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the checkpoint and</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">9</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the model instantiated</span>
<span class="hljs-comment">You</span> <span class="hljs-comment">should</span> <span class="hljs-comment">probably</span> <span class="hljs-comment">TRAIN this model on a down-stream task to be able to use it for predictions and inference</span><span class="hljs-string">.</span>`}}),{c(){p=a("p"),_=r("If you get the error message below, you need to finetune the weights for your downstream task:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"If you get the error message below, you need to finetune the weights for your downstream task:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function Nl(j){let p,_,f,m,g,n,h,C;return{c(){p=a("p"),_=r("To use private or "),f=a("a"),m=r("gated"),g=r(` models, log-in with
`),n=a("code"),h=r("huggingface-cli login"),C=r("."),this.h()},l(E){p=s(E,"P",{});var x=i(p);_=l(x,"To use private or "),f=s(x,"A",{href:!0,rel:!0});var Y=i(f);m=l(Y,"gated"),Y.forEach(t),g=l(x,` models, log-in with
`),n=s(x,"CODE",{});var z=i(n);h=l(z,"huggingface-cli login"),z.forEach(t),C=l(x,"."),x.forEach(t),this.h()},h(){y(f,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),y(f,"rel","nofollow")},m(E,x){b(E,p,x),e(p,_),e(p,f),e(f,m),e(p,g),e(p,n),e(n,h),e(p,C)},d(E){E&&t(p)}}}function Xl(j){let p,_,f,m,g;return m=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0VG9JbWFnZS5mcm9tX3ByZXRyYWluZWQoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBcHJpbnQocGlwZWxpbmUuX19jbGFzc19fKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForTextToImage.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(pipeline.__class__)`}}),{c(){p=a("p"),_=r("Examples:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"Examples:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function Yl(j){let p,_;return p=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTJDJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2VUb0ltYWdlJTBBJTBBcGlwZV9pMmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjByZXF1aXJlc19zYWZldHlfY2hlY2tlciUzREZhbHNlJTBBKSUwQSUwQXBpcGVfdDJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dFRvSW1hZ2UuZnJvbV9waXBlKHBpcGVfdDJpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage, AutoPipelineForImageToImage

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

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_t2i = AutoPipelineForTextToImage.from_pipe(pipe_t2i)`}}),{c(){v(p.$$.fragment)},l(f){w(p.$$.fragment,f)},m(f,m){I(p,f,m),_=!0},p:le,i(f){_||($(p.$$.fragment,f),_=!0)},o(f){T(p.$$.fragment,f),_=!1},d(f){P(p,f)}}}function zl(j){let p,_,f,m,g;return m=new te({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`<span class="hljs-comment">Some</span> <span class="hljs-comment">weights</span> <span class="hljs-comment">of</span> <span class="hljs-comment">UNet2DConditionModel were not initialized from the model checkpoint at</span> <span class="hljs-comment">runwayml/stable</span><span class="hljs-literal">-</span><span class="hljs-comment">diffusion</span><span class="hljs-literal">-</span><span class="hljs-comment">v1</span><span class="hljs-literal">-</span><span class="hljs-comment">5 and are newly initialized because the shapes did</span> <span class="hljs-comment">not</span> <span class="hljs-comment">match:</span>
<span class="hljs-literal">-</span> <span class="hljs-comment">conv_in</span><span class="hljs-string">.</span><span class="hljs-comment">weight:</span> <span class="hljs-comment">found</span> <span class="hljs-comment">shape</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">4</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the checkpoint and</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">9</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the model instantiated</span>
<span class="hljs-comment">You</span> <span class="hljs-comment">should</span> <span class="hljs-comment">probably</span> <span class="hljs-comment">TRAIN this model on a down-stream task to be able to use it for predictions and inference</span><span class="hljs-string">.</span>`}}),{c(){p=a("p"),_=r("If you get the error message below, you need to finetune the weights for your downstream task:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"If you get the error message below, you need to finetune the weights for your downstream task:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function Ll(j){let p,_,f,m,g,n,h,C;return{c(){p=a("p"),_=r("To use private or "),f=a("a"),m=r("gated"),g=r(` models, log-in with
`),n=a("code"),h=r("huggingface-cli login"),C=r("."),this.h()},l(E){p=s(E,"P",{});var x=i(p);_=l(x,"To use private or "),f=s(x,"A",{href:!0,rel:!0});var Y=i(f);m=l(Y,"gated"),Y.forEach(t),g=l(x,` models, log-in with
`),n=s(x,"CODE",{});var z=i(n);h=l(z,"huggingface-cli login"),z.forEach(t),C=l(x,"."),x.forEach(t),this.h()},h(){y(f,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),y(f,"rel","nofollow")},m(E,x){b(E,p,x),e(p,_),e(p,f),e(f,m),e(p,g),e(p,n),e(n,h),e(p,C)},d(E){E&&t(p)}}}function Hl(j){let p,_,f,m,g;return m=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZVRvSW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQXByaW50KHBpcGVsaW5lLl9fY2xhc3NfXyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForImageToImage.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(pipeline.__class__)`}}),{c(){p=a("p"),_=r("Examples:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"Examples:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function Ql(j){let p,_,f,m,g;return m=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTJDJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2VUb0ltYWdlJTBBJTBBcGlwZV90MmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0MkltYWdlLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHJlcXVpcmVzX3NhZmV0eV9jaGVja2VyJTNERmFsc2UlMEEpJTBBJTBBcGlwZV9pMmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZVRvSW1hZ2UuZnJvbV9waXBlKHBpcGVfdDJpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage, AutoPipelineForImageToImage

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

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe_i2i = AutoPipelineForImageToImage.from_pipe(pipe_t2i)`}}),{c(){p=a("p"),_=r("Examples:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"Examples:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function ql(j){let p,_,f,m,g;return m=new te({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`<span class="hljs-comment">Some</span> <span class="hljs-comment">weights</span> <span class="hljs-comment">of</span> <span class="hljs-comment">UNet2DConditionModel were not initialized from the model checkpoint at</span> <span class="hljs-comment">runwayml/stable</span><span class="hljs-literal">-</span><span class="hljs-comment">diffusion</span><span class="hljs-literal">-</span><span class="hljs-comment">v1</span><span class="hljs-literal">-</span><span class="hljs-comment">5 and are newly initialized because the shapes did</span> <span class="hljs-comment">not</span> <span class="hljs-comment">match:</span>
<span class="hljs-literal">-</span> <span class="hljs-comment">conv_in</span><span class="hljs-string">.</span><span class="hljs-comment">weight:</span> <span class="hljs-comment">found</span> <span class="hljs-comment">shape</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">4</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the checkpoint and</span> <span class="hljs-comment">torch</span><span class="hljs-string">.</span><span class="hljs-comment">Size(</span><span class="hljs-title">[</span><span class="hljs-comment">320</span><span class="hljs-string">,</span> <span class="hljs-comment">9</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-string">,</span> <span class="hljs-comment">3</span><span class="hljs-title">]</span><span class="hljs-comment">) in the model instantiated</span>
<span class="hljs-comment">You</span> <span class="hljs-comment">should</span> <span class="hljs-comment">probably</span> <span class="hljs-comment">TRAIN this model on a down-stream task to be able to use it for predictions and inference</span><span class="hljs-string">.</span>`}}),{c(){p=a("p"),_=r("If you get the error message below, you need to finetune the weights for your downstream task:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"If you get the error message below, you need to finetune the weights for your downstream task:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function Ol(j){let p,_,f,m,g,n,h,C;return{c(){p=a("p"),_=r("To use private or "),f=a("a"),m=r("gated"),g=r(` models, log-in with
`),n=a("code"),h=r("huggingface-cli login"),C=r("."),this.h()},l(E){p=s(E,"P",{});var x=i(p);_=l(x,"To use private or "),f=s(x,"A",{href:!0,rel:!0});var Y=i(f);m=l(Y,"gated"),Y.forEach(t),g=l(x,` models, log-in with
`),n=s(x,"CODE",{});var z=i(n);h=l(z,"huggingface-cli login"),z.forEach(t),C=l(x,"."),x.forEach(t),this.h()},h(){y(f,"href","https://huggingface.co/docs/hub/models-gated#gated-models"),y(f,"rel","nofollow")},m(E,x){b(E,p,x),e(p,_),e(p,f),e(f,m),e(p,g),e(p,n),e(n,h),e(p,C)},d(E){E&&t(p)}}}function Kl(j){let p,_,f,m,g;return m=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZVRvSW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQXByaW50KHBpcGVsaW5lLl9fY2xhc3NfXyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage

<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline = AutoPipelineForImageToImage.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(pipeline.__class__)`}}),{c(){p=a("p"),_=r("Examples:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"Examples:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function ep(j){let p,_,f,m,g;return m=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHRUb0ltYWdlJTJDJTIwQXV0b1BpcGVsaW5lRm9ySW5wYWludGluZyUwQSUwQXBpcGVfdDJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyRGVlcEZsb3lkJTJGSUYtSS1YTC12MS4wJTIyJTJDJTIwcmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSUwQSklMEElMEFwaXBlX2lucGFpbnQlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbnBhaW50aW5nLmZyb21fcGlwZShwaXBlX3QyaSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForTextToImage, 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)`}}),{c(){p=a("p"),_=r("Examples:"),f=d(),v(m.$$.fragment)},l(n){p=s(n,"P",{});var h=i(p);_=l(h,"Examples:"),h.forEach(t),f=c(n),w(m.$$.fragment,n)},m(n,h){b(n,p,h),e(p,_),b(n,f,h),I(m,n,h),g=!0},p:le,i(n){g||($(m.$$.fragment,n),g=!0)},o(n){T(m.$$.fragment,n),g=!1},d(n){n&&t(p),n&&t(f),P(m,n)}}}function tp(j){let p,_,f,m,g,n,h,C,E,x,Y,z,qo,L,Gn,st,En,Jn,it,Zn,Bn,rt,Sn,Wn,Oo,lt,Vn,Ko,Fe,en,pt,Cn,tn,ke,on,dt,Dn,nn,ct,Rn,an,D,At,mt,Nn,Xn,Ut,ft,Yn,zn,Gt,ht,Ln,Hn,Et,ut,Qn,qn,gt,_t,On,Kn,ea,yt,bt,ta,oa,sn,oe,pe,Jt,Me,na,Zt,aa,rn,F,Ae,sa,Bt,ia,ra,vt,wt,la,pa,da,Ue,ca,It,ma,fa,ha,Ge,ua,St,ga,_a,ya,Wt,ba,va,Vt,de,Ct,wa,Ia,Dt,$a,Ta,Pa,A,Ee,xa,Rt,ja,Fa,Nt,ka,Ma,Je,Xt,Aa,Ua,Yt,Ga,Ea,ne,Ja,zt,Za,Ba,$t,Sa,Wa,Va,Ze,Ca,Lt,Da,Ra,Na,ce,Xa,me,Ya,fe,za,R,Be,La,Ht,Ha,Qa,Qt,qa,Oa,qt,Ka,es,Se,ts,Ot,os,ns,as,he,ln,ae,ue,Kt,We,ss,eo,is,pn,k,Ve,rs,to,ls,ps,Tt,Pt,ds,cs,ms,K,fs,xt,hs,us,oo,gs,_s,no,ys,bs,vs,Ce,ws,ao,Is,$s,Ts,so,Ps,xs,io,ge,ro,js,Fs,lo,ks,Ms,As,U,De,Us,po,Gs,Es,co,Js,Zs,Re,mo,Bs,Ss,fo,Ws,Vs,Ne,Cs,ho,Ds,Rs,Ns,Xe,Xs,uo,Ys,zs,Ls,_e,Hs,ye,Qs,be,qs,N,Ye,Os,go,Ks,ei,_o,ti,oi,yo,ni,ai,ze,si,bo,ii,ri,li,ve,dn,se,we,vo,Le,pi,wo,di,cn,M,He,ci,Io,mi,fi,jt,Ft,hi,ui,gi,Qe,_i,kt,yi,bi,vi,qe,wi,$o,Ii,$i,Ti,To,Pi,xi,Po,Ie,xo,ji,Fi,jo,ki,Mi,Ai,G,Oe,Ui,Fo,Gi,Ei,ko,Ji,Zi,Ke,Mo,Bi,Si,Ao,Wi,Vi,et,Ci,Uo,Di,Ri,Ni,tt,Xi,Go,Yi,zi,Li,$e,Hi,Te,Qi,Pe,qi,X,ot,Oi,Eo,Ki,er,Jo,tr,or,Zo,nr,ar,nt,sr,Bo,ir,rr,lr,xe,mn;return n=new Un({}),Fe=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFBpcGVsaW5lRm9ySW1hZ2VUb0ltYWdlJTBBJTBBcGlwZV9pMmklMjAlM0QlMjBQaXBlbGluZUZvckltYWdlb0ltYWdlLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> PipelineForImageToImage

pipe_i2i = PipelineForImageoImage.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)`}}),ke=new te({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFBpcGVsaW5lRm9ySW5wYWludGluZyUwQSUwQXBpcGVfaW5wYWludCUyMCUzRCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmcuZnJvbV9waXBlKHBpcGVfaTJpKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> PipelineForInpainting

pipe_inpaint = AutoPipelineForInpainting.from_pipe(pipe_i2i)`}}),Me=new Un({}),Ae=new ie({props:{name:"class diffusers.AutoPipelineForText2Image",anchor:"diffusers.AutoPipelineForText2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L158"}}),Ee=new ie({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForText2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L187"}}),ce=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example",$$slots:{default:[Rl]},$$scope:{ctx:j}}}),me=new hr({props:{$$slots:{default:[Nl]},$$scope:{ctx:j}}}),fe=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example-2",$$slots:{default:[Xl]},$$scope:{ctx:j}}}),Be=new ie({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForText2Image.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L313"}}),he=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.example",$$slots:{default:[Yl]},$$scope:{ctx:j}}}),We=new Un({}),Ve=new ie({props:{name:"class diffusers.AutoPipelineForImage2Image",anchor:"diffusers.AutoPipelineForImage2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L401"}}),De=new ie({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L430"}}),_e=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example",$$slots:{default:[zl]},$$scope:{ctx:j}}}),ye=new hr({props:{$$slots:{default:[Ll]},$$scope:{ctx:j}}}),be=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example-2",$$slots:{default:[Hl]},$$scope:{ctx:j}}}),Ye=new ie({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForImage2Image.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L556"}}),ve=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.example",$$slots:{default:[Ql]},$$scope:{ctx:j}}}),Le=new Un({}),He=new ie({props:{name:"class diffusers.AutoPipelineForInpainting",anchor:"diffusers.AutoPipelineForInpainting",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L646"}}),Oe=new ie({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForInpainting.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline
hosted on the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights
saved using
<a href="/docs/diffusers/v0.19.0/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype. If &#x201C;auto&#x201D; is passed, the
dtype is automatically derived from the model&#x2019;s weights.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to resume downloading the model weights and configuration files. If set to <code>False</code>, any
incompletely downloaded files are deleted.`,name:"resume_download"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"use_auth_token"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id similar to
<code>revision</code> when loading a custom pipeline from the Hub. It can be a &#x1F917; Diffusers version when loading a
custom pipeline from GitHub, otherwise it defaults to <code>&quot;main&quot;</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device.</p>
<p>Set <code>device_map=&quot;auto&quot;</code> to have &#x1F917; Accelerate automatically compute the most optimized <code>device_map</code>. For
more information about each option see <a href="https://hf.co/docs/accelerate/main/en/usage_guides/big_modeling#designing-a-device-map" rel="nofollow">designing a device
map</a>.`,name:"device_map"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary device identifier for the maximum memory. Will default to the maximum memory available for
each GPU and the available CPU RAM if unset.`,name:"max_memory"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
The path to offload weights if device_map contains the value <code>&quot;disk&quot;</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, temporarily offloads the CPU state dict to the hard drive to avoid running out of CPU RAM if
the weight of the CPU state dict + the biggest shard of the checkpoint does not fit. Defaults to <code>True</code>
when there is some disk offload.`,name:"offload_state_dict"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code> if torch version &gt;= 1.9.0 else <code>False</code>) &#x2014;
Speed up model loading only loading the pretrained weights and not initializing the weights. This also
tries to not use more than 1x model size in CPU memory (including peak memory) while loading the model.
Only supported for PyTorch &gt;= 1.9.0. If you are using an older version of PyTorch, setting this
argument to <code>True</code> will raise an error.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to <code>None</code>, the safetensors weights are downloaded if they&#x2019;re available <strong>and</strong> if the
safetensors library is installed. If set to <code>True</code>, the model is forcibly loaded from safetensors
weights. If set to <code>False</code>, safetensors weights are not loaded.`,name:"use_safetensors"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to overwrite load and saveable variables (the pipeline components of the specific pipeline
class). The overwritten components are passed directly to the pipelines <code>__init__</code> method. See example
below for more information.`,name:"kwargs"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Load weights from a specified variant filename such as <code>&quot;fp16&quot;</code> or <code>&quot;ema&quot;</code>. This is ignored when
loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L675"}}),$e=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example",$$slots:{default:[ql]},$$scope:{ctx:j}}}),Te=new hr({props:{$$slots:{default:[Ol]},$$scope:{ctx:j}}}),Pe=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example-2",$$slots:{default:[Kl]},$$scope:{ctx:j}}}),ot=new ie({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForInpainting.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) &#x2014;
an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/v0.19.0/src/diffusers/pipelines/auto_pipeline.py#L800"}}),xe=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.example",$$slots:{default:[ep]},$$scope:{ctx:j}}}),{c(){p=a("meta"),_=d(),f=a("h1"),m=a("a"),g=a("span"),v(n.$$.fragment),h=d(),C=a("span"),E=r("AutoPipeline"),x=d(),Y=a("p"),z=r("In many cases, one checkpoint can be used for multiple tasks. For example, you may be able to use the same checkpoint for Text-to-Image, Image-to-Image, and Inpainting. However, you\u2019ll need to know the pipeline class names linked to your checkpoint."),qo=d(),L=a("p"),Gn=r("AutoPipeline is designed to make it easy for you to use multiple pipelines in your workflow. We currently provide 3 AutoPipeline classes to perform three different tasks, i.e. "),st=a("a"),En=r("AutoPipelineForText2Image"),Jn=r(", "),it=a("a"),Zn=r("AutoPipelineForImage2Image"),Bn=r(", and "),rt=a("a"),Sn=r("AutoPipelineForInpainting"),Wn=r(". You\u2019ll need to choose the AutoPipeline class based on the task you want to perform and use it to automatically retrieve the relevant pipeline given the name/path to the pre-trained weights."),Oo=d(),lt=a("p"),Vn=r("For example, to perform Image-to-Image with the SD1.5 checkpoint, you can do"),Ko=d(),v(Fe.$$.fragment),en=d(),pt=a("p"),Cn=r("It will also help you switch between tasks seamlessly using the same checkpoint without reallocating additional memory. For example, to re-use the Image-to-Image pipeline we just created for inpainting, you can do"),tn=d(),v(ke.$$.fragment),on=d(),dt=a("p"),Dn=r("All the components will be transferred to the inpainting pipeline with zero cost."),nn=d(),ct=a("p"),Rn=r("Currently AutoPipeline support the Text-to-Image, Image-to-Image, and Inpainting tasks for below diffusion models:"),an=d(),D=a("ul"),At=a("li"),mt=a("a"),Nn=r("stable Diffusion"),Xn=d(),Ut=a("li"),ft=a("a"),Yn=r("Stable Diffusion Controlnet"),zn=d(),Gt=a("li"),ht=a("a"),Ln=r("Stable Diffusion XL"),Hn=d(),Et=a("li"),ut=a("a"),Qn=r("IF"),qn=d(),gt=a("li"),_t=a("a"),On=r("Kandinsky"),Kn=r("(./kandinsky)(./kandinsky)(./kandinsky)(./kandinsky)"),ea=d(),yt=a("li"),bt=a("a"),ta=r("Kandinsky 2.2"),oa=r("(./kandinsky)"),sn=d(),oe=a("h2"),pe=a("a"),Jt=a("span"),v(Me.$$.fragment),na=d(),Zt=a("span"),aa=r("AutoPipelineForText2Image"),rn=d(),F=a("div"),v(Ae.$$.fragment),sa=d(),Bt=a("p"),ia=r("AutoPipeline for text-to-image generation."),ra=d(),vt=a("p"),wt=a("a"),la=r("AutoPipelineForText2Image"),pa=r(` is a generic pipeline class that will be instantiated as one of the text-to-image
pipeline class in diffusers.`),da=d(),Ue=a("p"),ca=r("The pipeline type (for example "),It=a("a"),ma=r("StableDiffusionPipeline"),fa=r(`) is automatically selected when created with the
AutoPipelineForText2Image.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForText2Image.from_pipe(pipeline) class methods .`),ha=d(),Ge=a("p"),ua=r("This class cannot be instantiated using "),St=a("strong"),ga=r("init"),_a=r("() (throws an error)."),ya=d(),Wt=a("p"),ba=r("Class attributes:"),va=d(),Vt=a("ul"),de=a("li"),Ct=a("strong"),wa=r("config_name"),Ia=r(" ("),Dt=a("code"),$a=r("str"),Ta=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Pa=d(),A=a("div"),v(Ee.$$.fragment),xa=d(),Rt=a("p"),ja=r("Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),Fa=d(),Nt=a("p"),ka=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Ma=d(),Je=a("ol"),Xt=a("li"),Aa=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Ua=d(),Yt=a("li"),Ga=r(`Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Ea=d(),ne=a("p"),Ja=r("If a "),zt=a("code"),Za=r("controlnet"),Ba=r(" argument is passed, it will instantiate a "),$t=a("a"),Sa=r("StableDiffusionControlNetPipeline"),Wa=r(" object."),Va=d(),Ze=a("p"),Ca=r("The pipeline is set in evaluation mode ("),Lt=a("code"),Da=r("model.eval()"),Ra=r(") by default."),Na=d(),v(ce.$$.fragment),Xa=d(),v(me.$$.fragment),Ya=d(),v(fe.$$.fragment),za=d(),R=a("div"),v(Be.$$.fragment),La=d(),Ht=a("p"),Ha=r("Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Qa=d(),Qt=a("p"),qa=r(`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.`),Oa=d(),qt=a("p"),Ka=r(`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),es=d(),Se=a("p"),ts=r("The pipeline is set in evaluation mode ("),Ot=a("code"),os=r("model.eval()"),ns=r(") by default."),as=d(),v(he.$$.fragment),ln=d(),ae=a("h2"),ue=a("a"),Kt=a("span"),v(We.$$.fragment),ss=d(),eo=a("span"),is=r("AutoPipelineForImage2Image"),pn=d(),k=a("div"),v(Ve.$$.fragment),rs=d(),to=a("p"),ls=r("AutoPipeline for image-to-image generation."),ps=d(),Tt=a("p"),Pt=a("a"),ds=r("AutoPipelineForImage2Image"),cs=r(` is a generic pipeline class that will be instantiated as one of the image-to-image
pipeline classes in diffusers.`),ms=d(),K=a("p"),fs=r("The pipeline type (for example "),xt=a("a"),hs=r("StableDiffusionImg2ImgPipeline"),us=r(`) is automatically selected when created with the
`),oo=a("code"),gs=r("AutoPipelineForImage2Image.from_pretrained(pretrained_model_name_or_path)"),_s=r(` or
`),no=a("code"),ys=r("AutoPipelineForImage2Image.from_pipe(pipeline)"),bs=r(" class methods."),vs=d(),Ce=a("p"),ws=r("This class cannot be instantiated using "),ao=a("strong"),Is=r("init"),$s=r("() (throws an error)."),Ts=d(),so=a("p"),Ps=r("Class attributes:"),xs=d(),io=a("ul"),ge=a("li"),ro=a("strong"),js=r("config_name"),Fs=r(" ("),lo=a("code"),ks=r("str"),Ms=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),As=d(),U=a("div"),v(De.$$.fragment),Us=d(),po=a("p"),Gs=r("Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),Es=d(),co=a("p"),Js=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Zs=d(),Re=a("ol"),mo=a("li"),Bs=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Ss=d(),fo=a("li"),Ws=r(`Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Vs=d(),Ne=a("p"),Cs=r("If a "),ho=a("code"),Ds=r("controlnet"),Rs=r(" argument is passed, it will instantiate a StableDiffusionControlNetImg2ImgPipeline object."),Ns=d(),Xe=a("p"),Xs=r("The pipeline is set in evaluation mode ("),uo=a("code"),Ys=r("model.eval()"),zs=r(") by default."),Ls=d(),v(_e.$$.fragment),Hs=d(),v(ye.$$.fragment),Qs=d(),v(be.$$.fragment),qs=d(),N=a("div"),v(Ye.$$.fragment),Os=d(),go=a("p"),Ks=r("Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),ei=d(),_o=a("p"),ti=r(`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.`),oi=d(),yo=a("p"),ni=r(`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),ai=d(),ze=a("p"),si=r("The pipeline is set in evaluation mode ("),bo=a("code"),ii=r("model.eval()"),ri=r(") by default."),li=d(),v(ve.$$.fragment),dn=d(),se=a("h2"),we=a("a"),vo=a("span"),v(Le.$$.fragment),pi=d(),wo=a("span"),di=r("AutoPipelineForInpainting"),cn=d(),M=a("div"),v(He.$$.fragment),ci=d(),Io=a("p"),mi=r("AutoPipeline for inpainting generation."),fi=d(),jt=a("p"),Ft=a("a"),hi=r("AutoPipelineForInpainting"),ui=r(` is a generic pipeline class that will be instantiated as one of the inpainting
pipeline class in diffusers.`),gi=d(),Qe=a("p"),_i=r("The pipeline type (for example "),kt=a("a"),yi=r("IFInpaintingPipeline"),bi=r(`) is automatically selected when created with the
AutoPipelineForInpainting.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForInpainting.from_pipe(pipeline) class methods .`),vi=d(),qe=a("p"),wi=r("This class cannot be instantiated using "),$o=a("strong"),Ii=r("init"),$i=r("() (throws an error)."),Ti=d(),To=a("p"),Pi=r("Class attributes:"),xi=d(),Po=a("ul"),Ie=a("li"),xo=a("strong"),ji=r("config_name"),Fi=r(" ("),jo=a("code"),ki=r("str"),Mi=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Ai=d(),G=a("div"),v(Oe.$$.fragment),Ui=d(),Fo=a("p"),Gi=r("Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight."),Ei=d(),ko=a("p"),Ji=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Zi=d(),Ke=a("ol"),Mo=a("li"),Bi=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Si=d(),Ao=a("li"),Wi=r("Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name."),Vi=d(),et=a("p"),Ci=r("If a "),Uo=a("code"),Di=r("controlnet"),Ri=r(" argument is passed, it will instantiate a StableDiffusionControlNetInpaintPipeline object."),Ni=d(),tt=a("p"),Xi=r("The pipeline is set in evaluation mode ("),Go=a("code"),Yi=r("model.eval()"),zi=r(") by default."),Li=d(),v($e.$$.fragment),Hi=d(),v(Te.$$.fragment),Qi=d(),v(Pe.$$.fragment),qi=d(),X=a("div"),v(ot.$$.fragment),Oi=d(),Eo=a("p"),Ki=r("Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),er=d(),Jo=a("p"),tr=r(`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.`),or=d(),Zo=a("p"),nr=r(`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memoery.`),ar=d(),nt=a("p"),sr=r("The pipeline is set in evaluation mode ("),Bo=a("code"),ir=r("model.eval()"),rr=r(") by default."),lr=d(),v(xe.$$.fragment),this.h()},l(o){const u=Cl('[data-svelte="svelte-1phssyn"]',document.head);p=s(u,"META",{name:!0,content:!0}),u.forEach(t),_=c(o),f=s(o,"H1",{class:!0});var at=i(f);m=s(at,"A",{id:!0,class:!0,href:!0});var So=i(m);g=s(So,"SPAN",{});var Wo=i(g);w(n.$$.fragment,Wo),Wo.forEach(t),So.forEach(t),h=c(at),C=s(at,"SPAN",{});var Vo=i(C);E=l(Vo,"AutoPipeline"),Vo.forEach(t),at.forEach(t),x=c(o),Y=s(o,"P",{});var Co=i(Y);z=l(Co,"In many cases, one checkpoint can be used for multiple tasks. For example, you may be able to use the same checkpoint for Text-to-Image, Image-to-Image, and Inpainting. However, you\u2019ll need to know the pipeline class names linked to your checkpoint."),Co.forEach(t),qo=c(o),L=s(o,"P",{});var ee=i(L);Gn=l(ee,"AutoPipeline is designed to make it easy for you to use multiple pipelines in your workflow. We currently provide 3 AutoPipeline classes to perform three different tasks, i.e. "),st=s(ee,"A",{href:!0});var Do=i(st);En=l(Do,"AutoPipelineForText2Image"),Do.forEach(t),Jn=l(ee,", "),it=s(ee,"A",{href:!0});var Ro=i(it);Zn=l(Ro,"AutoPipelineForImage2Image"),Ro.forEach(t),Bn=l(ee,", and "),rt=s(ee,"A",{href:!0});var No=i(rt);Sn=l(No,"AutoPipelineForInpainting"),No.forEach(t),Wn=l(ee,". You\u2019ll need to choose the AutoPipeline class based on the task you want to perform and use it to automatically retrieve the relevant pipeline given the name/path to the pre-trained weights."),ee.forEach(t),Oo=c(o),lt=s(o,"P",{});var Xo=i(lt);Vn=l(Xo,"For example, to perform Image-to-Image with the SD1.5 checkpoint, you can do"),Xo.forEach(t),Ko=c(o),w(Fe.$$.fragment,o),en=c(o),pt=s(o,"P",{});var Yo=i(pt);Cn=l(Yo,"It will also help you switch between tasks seamlessly using the same checkpoint without reallocating additional memory. For example, to re-use the Image-to-Image pipeline we just created for inpainting, you can do"),Yo.forEach(t),tn=c(o),w(ke.$$.fragment,o),on=c(o),dt=s(o,"P",{});var zo=i(dt);Dn=l(zo,"All the components will be transferred to the inpainting pipeline with zero cost."),zo.forEach(t),nn=c(o),ct=s(o,"P",{});var ur=i(ct);Rn=l(ur,"Currently AutoPipeline support the Text-to-Image, Image-to-Image, and Inpainting tasks for below diffusion models:"),ur.forEach(t),an=c(o),D=s(o,"UL",{});var H=i(D);At=s(H,"LI",{});var gr=i(At);mt=s(gr,"A",{href:!0});var _r=i(mt);Nn=l(_r,"stable Diffusion"),_r.forEach(t),gr.forEach(t),Xn=c(H),Ut=s(H,"LI",{});var yr=i(Ut);ft=s(yr,"A",{href:!0});var br=i(ft);Yn=l(br,"Stable Diffusion Controlnet"),br.forEach(t),yr.forEach(t),zn=c(H),Gt=s(H,"LI",{});var vr=i(Gt);ht=s(vr,"A",{href:!0});var wr=i(ht);Ln=l(wr,"Stable Diffusion XL"),wr.forEach(t),vr.forEach(t),Hn=c(H),Et=s(H,"LI",{});var Ir=i(Et);ut=s(Ir,"A",{href:!0});var $r=i(ut);Qn=l($r,"IF"),$r.forEach(t),Ir.forEach(t),qn=c(H),gt=s(H,"LI",{});var pr=i(gt);_t=s(pr,"A",{href:!0});var Tr=i(_t);On=l(Tr,"Kandinsky"),Tr.forEach(t),Kn=l(pr,"(./kandinsky)(./kandinsky)(./kandinsky)(./kandinsky)"),pr.forEach(t),ea=c(H),yt=s(H,"LI",{});var dr=i(yt);bt=s(dr,"A",{href:!0});var Pr=i(bt);ta=l(Pr,"Kandinsky 2.2"),Pr.forEach(t),oa=l(dr,"(./kandinsky)"),dr.forEach(t),H.forEach(t),sn=c(o),oe=s(o,"H2",{class:!0});var fn=i(oe);pe=s(fn,"A",{id:!0,class:!0,href:!0});var xr=i(pe);Jt=s(xr,"SPAN",{});var jr=i(Jt);w(Me.$$.fragment,jr),jr.forEach(t),xr.forEach(t),na=c(fn),Zt=s(fn,"SPAN",{});var Fr=i(Zt);aa=l(Fr,"AutoPipelineForText2Image"),Fr.forEach(t),fn.forEach(t),rn=c(o),F=s(o,"DIV",{class:!0});var J=i(F);w(Ae.$$.fragment,J),sa=c(J),Bt=s(J,"P",{});var kr=i(Bt);ia=l(kr,"AutoPipeline for text-to-image generation."),kr.forEach(t),ra=c(J),vt=s(J,"P",{});var cr=i(vt);wt=s(cr,"A",{href:!0});var Mr=i(wt);la=l(Mr,"AutoPipelineForText2Image"),Mr.forEach(t),pa=l(cr,` is a generic pipeline class that will be instantiated as one of the text-to-image
pipeline class in diffusers.`),cr.forEach(t),da=c(J),Ue=s(J,"P",{});var hn=i(Ue);ca=l(hn,"The pipeline type (for example "),It=s(hn,"A",{href:!0});var Ar=i(It);ma=l(Ar,"StableDiffusionPipeline"),Ar.forEach(t),fa=l(hn,`) is automatically selected when created with the
AutoPipelineForText2Image.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForText2Image.from_pipe(pipeline) class methods .`),hn.forEach(t),ha=c(J),Ge=s(J,"P",{});var un=i(Ge);ua=l(un,"This class cannot be instantiated using "),St=s(un,"STRONG",{});var Ur=i(St);ga=l(Ur,"init"),Ur.forEach(t),_a=l(un,"() (throws an error)."),un.forEach(t),ya=c(J),Wt=s(J,"P",{});var Gr=i(Wt);ba=l(Gr,"Class attributes:"),Gr.forEach(t),va=c(J),Vt=s(J,"UL",{});var Er=i(Vt);de=s(Er,"LI",{});var Lo=i(de);Ct=s(Lo,"STRONG",{});var Jr=i(Ct);wa=l(Jr,"config_name"),Jr.forEach(t),Ia=l(Lo," ("),Dt=s(Lo,"CODE",{});var Zr=i(Dt);$a=l(Zr,"str"),Zr.forEach(t),Ta=l(Lo,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Lo.forEach(t),Er.forEach(t),Pa=c(J),A=s(J,"DIV",{class:!0});var Z=i(A);w(Ee.$$.fragment,Z),xa=c(Z),Rt=s(Z,"P",{});var Br=i(Rt);ja=l(Br,"Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),Br.forEach(t),Fa=c(Z),Nt=s(Z,"P",{});var Sr=i(Nt);ka=l(Sr,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Sr.forEach(t),Ma=c(Z),Je=s(Z,"OL",{});var gn=i(Je);Xt=s(gn,"LI",{});var Wr=i(Xt);Aa=l(Wr,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Wr.forEach(t),Ua=c(gn),Yt=s(gn,"LI",{});var Vr=i(Yt);Ga=l(Vr,`Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Vr.forEach(t),gn.forEach(t),Ea=c(Z),ne=s(Z,"P",{});var Mt=i(ne);Ja=l(Mt,"If a "),zt=s(Mt,"CODE",{});var Cr=i(zt);Za=l(Cr,"controlnet"),Cr.forEach(t),Ba=l(Mt," argument is passed, it will instantiate a "),$t=s(Mt,"A",{href:!0});var Dr=i($t);Sa=l(Dr,"StableDiffusionControlNetPipeline"),Dr.forEach(t),Wa=l(Mt," object."),Mt.forEach(t),Va=c(Z),Ze=s(Z,"P",{});var _n=i(Ze);Ca=l(_n,"The pipeline is set in evaluation mode ("),Lt=s(_n,"CODE",{});var Rr=i(Lt);Da=l(Rr,"model.eval()"),Rr.forEach(t),Ra=l(_n,") by default."),_n.forEach(t),Na=c(Z),w(ce.$$.fragment,Z),Xa=c(Z),w(me.$$.fragment,Z),Ya=c(Z),w(fe.$$.fragment,Z),Z.forEach(t),za=c(J),R=s(J,"DIV",{class:!0});var Q=i(R);w(Be.$$.fragment,Q),La=c(Q),Ht=s(Q,"P",{});var Nr=i(Ht);Ha=l(Nr,"Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Nr.forEach(t),Qa=c(Q),Qt=s(Q,"P",{});var Xr=i(Qt);qa=l(Xr,`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.`),Xr.forEach(t),Oa=c(Q),qt=s(Q,"P",{});var Yr=i(qt);Ka=l(Yr,`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),Yr.forEach(t),es=c(Q),Se=s(Q,"P",{});var yn=i(Se);ts=l(yn,"The pipeline is set in evaluation mode ("),Ot=s(yn,"CODE",{});var zr=i(Ot);os=l(zr,"model.eval()"),zr.forEach(t),ns=l(yn,") by default."),yn.forEach(t),as=c(Q),w(he.$$.fragment,Q),Q.forEach(t),J.forEach(t),ln=c(o),ae=s(o,"H2",{class:!0});var bn=i(ae);ue=s(bn,"A",{id:!0,class:!0,href:!0});var Lr=i(ue);Kt=s(Lr,"SPAN",{});var Hr=i(Kt);w(We.$$.fragment,Hr),Hr.forEach(t),Lr.forEach(t),ss=c(bn),eo=s(bn,"SPAN",{});var Qr=i(eo);is=l(Qr,"AutoPipelineForImage2Image"),Qr.forEach(t),bn.forEach(t),pn=c(o),k=s(o,"DIV",{class:!0});var B=i(k);w(Ve.$$.fragment,B),rs=c(B),to=s(B,"P",{});var qr=i(to);ls=l(qr,"AutoPipeline for image-to-image generation."),qr.forEach(t),ps=c(B),Tt=s(B,"P",{});var mr=i(Tt);Pt=s(mr,"A",{href:!0});var Or=i(Pt);ds=l(Or,"AutoPipelineForImage2Image"),Or.forEach(t),cs=l(mr,` is a generic pipeline class that will be instantiated as one of the image-to-image
pipeline classes in diffusers.`),mr.forEach(t),ms=c(B),K=s(B,"P",{});var je=i(K);fs=l(je,"The pipeline type (for example "),xt=s(je,"A",{href:!0});var Kr=i(xt);hs=l(Kr,"StableDiffusionImg2ImgPipeline"),Kr.forEach(t),us=l(je,`) is automatically selected when created with the
`),oo=s(je,"CODE",{});var el=i(oo);gs=l(el,"AutoPipelineForImage2Image.from_pretrained(pretrained_model_name_or_path)"),el.forEach(t),_s=l(je,` or
`),no=s(je,"CODE",{});var tl=i(no);ys=l(tl,"AutoPipelineForImage2Image.from_pipe(pipeline)"),tl.forEach(t),bs=l(je," class methods."),je.forEach(t),vs=c(B),Ce=s(B,"P",{});var vn=i(Ce);ws=l(vn,"This class cannot be instantiated using "),ao=s(vn,"STRONG",{});var ol=i(ao);Is=l(ol,"init"),ol.forEach(t),$s=l(vn,"() (throws an error)."),vn.forEach(t),Ts=c(B),so=s(B,"P",{});var nl=i(so);Ps=l(nl,"Class attributes:"),nl.forEach(t),xs=c(B),io=s(B,"UL",{});var al=i(io);ge=s(al,"LI",{});var Ho=i(ge);ro=s(Ho,"STRONG",{});var sl=i(ro);js=l(sl,"config_name"),sl.forEach(t),Fs=l(Ho," ("),lo=s(Ho,"CODE",{});var il=i(lo);ks=l(il,"str"),il.forEach(t),Ms=l(Ho,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Ho.forEach(t),al.forEach(t),As=c(B),U=s(B,"DIV",{class:!0});var S=i(U);w(De.$$.fragment,S),Us=c(S),po=s(S,"P",{});var rl=i(po);Gs=l(rl,"Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),rl.forEach(t),Es=c(S),co=s(S,"P",{});var ll=i(co);Js=l(ll,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),ll.forEach(t),Zs=c(S),Re=s(S,"OL",{});var wn=i(Re);mo=s(wn,"LI",{});var pl=i(mo);Bs=l(pl,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),pl.forEach(t),Ss=c(wn),fo=s(wn,"LI",{});var dl=i(fo);Ws=l(dl,`Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),dl.forEach(t),wn.forEach(t),Vs=c(S),Ne=s(S,"P",{});var In=i(Ne);Cs=l(In,"If a "),ho=s(In,"CODE",{});var cl=i(ho);Ds=l(cl,"controlnet"),cl.forEach(t),Rs=l(In," argument is passed, it will instantiate a StableDiffusionControlNetImg2ImgPipeline object."),In.forEach(t),Ns=c(S),Xe=s(S,"P",{});var $n=i(Xe);Xs=l($n,"The pipeline is set in evaluation mode ("),uo=s($n,"CODE",{});var ml=i(uo);Ys=l(ml,"model.eval()"),ml.forEach(t),zs=l($n,") by default."),$n.forEach(t),Ls=c(S),w(_e.$$.fragment,S),Hs=c(S),w(ye.$$.fragment,S),Qs=c(S),w(be.$$.fragment,S),S.forEach(t),qs=c(B),N=s(B,"DIV",{class:!0});var q=i(N);w(Ye.$$.fragment,q),Os=c(q),go=s(q,"P",{});var fl=i(go);Ks=l(fl,"Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),fl.forEach(t),ei=c(q),_o=s(q,"P",{});var hl=i(_o);ti=l(hl,`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.`),hl.forEach(t),oi=c(q),yo=s(q,"P",{});var ul=i(yo);ni=l(ul,`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),ul.forEach(t),ai=c(q),ze=s(q,"P",{});var Tn=i(ze);si=l(Tn,"The pipeline is set in evaluation mode ("),bo=s(Tn,"CODE",{});var gl=i(bo);ii=l(gl,"model.eval()"),gl.forEach(t),ri=l(Tn,") by default."),Tn.forEach(t),li=c(q),w(ve.$$.fragment,q),q.forEach(t),B.forEach(t),dn=c(o),se=s(o,"H2",{class:!0});var Pn=i(se);we=s(Pn,"A",{id:!0,class:!0,href:!0});var _l=i(we);vo=s(_l,"SPAN",{});var yl=i(vo);w(Le.$$.fragment,yl),yl.forEach(t),_l.forEach(t),pi=c(Pn),wo=s(Pn,"SPAN",{});var bl=i(wo);di=l(bl,"AutoPipelineForInpainting"),bl.forEach(t),Pn.forEach(t),cn=c(o),M=s(o,"DIV",{class:!0});var W=i(M);w(He.$$.fragment,W),ci=c(W),Io=s(W,"P",{});var vl=i(Io);mi=l(vl,"AutoPipeline for inpainting generation."),vl.forEach(t),fi=c(W),jt=s(W,"P",{});var fr=i(jt);Ft=s(fr,"A",{href:!0});var wl=i(Ft);hi=l(wl,"AutoPipelineForInpainting"),wl.forEach(t),ui=l(fr,` is a generic pipeline class that will be instantiated as one of the inpainting
pipeline class in diffusers.`),fr.forEach(t),gi=c(W),Qe=s(W,"P",{});var xn=i(Qe);_i=l(xn,"The pipeline type (for example "),kt=s(xn,"A",{href:!0});var Il=i(kt);yi=l(Il,"IFInpaintingPipeline"),Il.forEach(t),bi=l(xn,`) is automatically selected when created with the
AutoPipelineForInpainting.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForInpainting.from_pipe(pipeline) class methods .`),xn.forEach(t),vi=c(W),qe=s(W,"P",{});var jn=i(qe);wi=l(jn,"This class cannot be instantiated using "),$o=s(jn,"STRONG",{});var $l=i($o);Ii=l($l,"init"),$l.forEach(t),$i=l(jn,"() (throws an error)."),jn.forEach(t),Ti=c(W),To=s(W,"P",{});var Tl=i(To);Pi=l(Tl,"Class attributes:"),Tl.forEach(t),xi=c(W),Po=s(W,"UL",{});var Pl=i(Po);Ie=s(Pl,"LI",{});var Qo=i(Ie);xo=s(Qo,"STRONG",{});var xl=i(xo);ji=l(xl,"config_name"),xl.forEach(t),Fi=l(Qo," ("),jo=s(Qo,"CODE",{});var jl=i(jo);ki=l(jl,"str"),jl.forEach(t),Mi=l(Qo,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Qo.forEach(t),Pl.forEach(t),Ai=c(W),G=s(W,"DIV",{class:!0});var V=i(G);w(Oe.$$.fragment,V),Ui=c(V),Fo=s(V,"P",{});var Fl=i(Fo);Gi=l(Fl,"Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight."),Fl.forEach(t),Ei=c(V),ko=s(V,"P",{});var kl=i(ko);Ji=l(kl,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),kl.forEach(t),Zi=c(V),Ke=s(V,"OL",{});var Fn=i(Ke);Mo=s(Fn,"LI",{});var Ml=i(Mo);Bi=l(Ml,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Ml.forEach(t),Si=c(Fn),Ao=s(Fn,"LI",{});var Al=i(Ao);Wi=l(Al,"Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name."),Al.forEach(t),Fn.forEach(t),Vi=c(V),et=s(V,"P",{});var kn=i(et);Ci=l(kn,"If a "),Uo=s(kn,"CODE",{});var Ul=i(Uo);Di=l(Ul,"controlnet"),Ul.forEach(t),Ri=l(kn," argument is passed, it will instantiate a StableDiffusionControlNetInpaintPipeline object."),kn.forEach(t),Ni=c(V),tt=s(V,"P",{});var Mn=i(tt);Xi=l(Mn,"The pipeline is set in evaluation mode ("),Go=s(Mn,"CODE",{});var Gl=i(Go);Yi=l(Gl,"model.eval()"),Gl.forEach(t),zi=l(Mn,") by default."),Mn.forEach(t),Li=c(V),w($e.$$.fragment,V),Hi=c(V),w(Te.$$.fragment,V),Qi=c(V),w(Pe.$$.fragment,V),V.forEach(t),qi=c(W),X=s(W,"DIV",{class:!0});var O=i(X);w(ot.$$.fragment,O),Oi=c(O),Eo=s(O,"P",{});var El=i(Eo);Ki=l(El,"Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),El.forEach(t),er=c(O),Jo=s(O,"P",{});var Jl=i(Jo);tr=l(Jl,`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.`),Jl.forEach(t),or=c(O),Zo=s(O,"P",{});var Zl=i(Zo);nr=l(Zl,`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memoery.`),Zl.forEach(t),ar=c(O),nt=s(O,"P",{});var An=i(nt);sr=l(An,"The pipeline is set in evaluation mode ("),Bo=s(An,"CODE",{});var Bl=i(Bo);ir=l(Bl,"model.eval()"),Bl.forEach(t),rr=l(An,") by default."),An.forEach(t),lr=c(O),w(xe.$$.fragment,O),O.forEach(t),W.forEach(t),this.h()},h(){y(p,"name","hf:doc:metadata"),y(p,"content",JSON.stringify(op)),y(m,"id","autopipeline"),y(m,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),y(m,"href","#autopipeline"),y(f,"class","relative group"),y(st,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image"),y(it,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image"),y(rt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting"),y(mt,"href","./stable_diffusion"),y(ft,"href","./api/pipelines/controlnet"),y(ht,"href","./stable_diffusion/stable_diffusion_xl"),y(ut,"href","./if"),y(_t,"href","./kandinsky"),y(bt,"href",""),y(pe,"id","diffusers.AutoPipelineForText2Image"),y(pe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),y(pe,"href","#diffusers.AutoPipelineForText2Image"),y(oe,"class","relative group"),y(wt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image"),y(It,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline"),y($t,"href","/docs/diffusers/v0.19.0/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ue,"id","diffusers.AutoPipelineForImage2Image"),y(ue,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),y(ue,"href","#diffusers.AutoPipelineForImage2Image"),y(ae,"class","relative group"),y(Pt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image"),y(xt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/stable_diffusion/img2img#diffusers.StableDiffusionImg2ImgPipeline"),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(we,"id","diffusers.AutoPipelineForInpainting"),y(we,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),y(we,"href","#diffusers.AutoPipelineForInpainting"),y(se,"class","relative group"),y(Ft,"href","/docs/diffusers/v0.19.0/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting"),y(kt,"href","/docs/diffusers/v0.19.0/en/api/pipelines/deepfloyd_if#diffusers.IFInpaintingPipeline"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,u){e(document.head,p),b(o,_,u),b(o,f,u),e(f,m),e(m,g),I(n,g,null),e(f,h),e(f,C),e(C,E),b(o,x,u),b(o,Y,u),e(Y,z),b(o,qo,u),b(o,L,u),e(L,Gn),e(L,st),e(st,En),e(L,Jn),e(L,it),e(it,Zn),e(L,Bn),e(L,rt),e(rt,Sn),e(L,Wn),b(o,Oo,u),b(o,lt,u),e(lt,Vn),b(o,Ko,u),I(Fe,o,u),b(o,en,u),b(o,pt,u),e(pt,Cn),b(o,tn,u),I(ke,o,u),b(o,on,u),b(o,dt,u),e(dt,Dn),b(o,nn,u),b(o,ct,u),e(ct,Rn),b(o,an,u),b(o,D,u),e(D,At),e(At,mt),e(mt,Nn),e(D,Xn),e(D,Ut),e(Ut,ft),e(ft,Yn),e(D,zn),e(D,Gt),e(Gt,ht),e(ht,Ln),e(D,Hn),e(D,Et),e(Et,ut),e(ut,Qn),e(D,qn),e(D,gt),e(gt,_t),e(_t,On),e(gt,Kn),e(D,ea),e(D,yt),e(yt,bt),e(bt,ta),e(yt,oa),b(o,sn,u),b(o,oe,u),e(oe,pe),e(pe,Jt),I(Me,Jt,null),e(oe,na),e(oe,Zt),e(Zt,aa),b(o,rn,u),b(o,F,u),I(Ae,F,null),e(F,sa),e(F,Bt),e(Bt,ia),e(F,ra),e(F,vt),e(vt,wt),e(wt,la),e(vt,pa),e(F,da),e(F,Ue),e(Ue,ca),e(Ue,It),e(It,ma),e(Ue,fa),e(F,ha),e(F,Ge),e(Ge,ua),e(Ge,St),e(St,ga),e(Ge,_a),e(F,ya),e(F,Wt),e(Wt,ba),e(F,va),e(F,Vt),e(Vt,de),e(de,Ct),e(Ct,wa),e(de,Ia),e(de,Dt),e(Dt,$a),e(de,Ta),e(F,Pa),e(F,A),I(Ee,A,null),e(A,xa),e(A,Rt),e(Rt,ja),e(A,Fa),e(A,Nt),e(Nt,ka),e(A,Ma),e(A,Je),e(Je,Xt),e(Xt,Aa),e(Je,Ua),e(Je,Yt),e(Yt,Ga),e(A,Ea),e(A,ne),e(ne,Ja),e(ne,zt),e(zt,Za),e(ne,Ba),e(ne,$t),e($t,Sa),e(ne,Wa),e(A,Va),e(A,Ze),e(Ze,Ca),e(Ze,Lt),e(Lt,Da),e(Ze,Ra),e(A,Na),I(ce,A,null),e(A,Xa),I(me,A,null),e(A,Ya),I(fe,A,null),e(F,za),e(F,R),I(Be,R,null),e(R,La),e(R,Ht),e(Ht,Ha),e(R,Qa),e(R,Qt),e(Qt,qa),e(R,Oa),e(R,qt),e(qt,Ka),e(R,es),e(R,Se),e(Se,ts),e(Se,Ot),e(Ot,os),e(Se,ns),e(R,as),I(he,R,null),b(o,ln,u),b(o,ae,u),e(ae,ue),e(ue,Kt),I(We,Kt,null),e(ae,ss),e(ae,eo),e(eo,is),b(o,pn,u),b(o,k,u),I(Ve,k,null),e(k,rs),e(k,to),e(to,ls),e(k,ps),e(k,Tt),e(Tt,Pt),e(Pt,ds),e(Tt,cs),e(k,ms),e(k,K),e(K,fs),e(K,xt),e(xt,hs),e(K,us),e(K,oo),e(oo,gs),e(K,_s),e(K,no),e(no,ys),e(K,bs),e(k,vs),e(k,Ce),e(Ce,ws),e(Ce,ao),e(ao,Is),e(Ce,$s),e(k,Ts),e(k,so),e(so,Ps),e(k,xs),e(k,io),e(io,ge),e(ge,ro),e(ro,js),e(ge,Fs),e(ge,lo),e(lo,ks),e(ge,Ms),e(k,As),e(k,U),I(De,U,null),e(U,Us),e(U,po),e(po,Gs),e(U,Es),e(U,co),e(co,Js),e(U,Zs),e(U,Re),e(Re,mo),e(mo,Bs),e(Re,Ss),e(Re,fo),e(fo,Ws),e(U,Vs),e(U,Ne),e(Ne,Cs),e(Ne,ho),e(ho,Ds),e(Ne,Rs),e(U,Ns),e(U,Xe),e(Xe,Xs),e(Xe,uo),e(uo,Ys),e(Xe,zs),e(U,Ls),I(_e,U,null),e(U,Hs),I(ye,U,null),e(U,Qs),I(be,U,null),e(k,qs),e(k,N),I(Ye,N,null),e(N,Os),e(N,go),e(go,Ks),e(N,ei),e(N,_o),e(_o,ti),e(N,oi),e(N,yo),e(yo,ni),e(N,ai),e(N,ze),e(ze,si),e(ze,bo),e(bo,ii),e(ze,ri),e(N,li),I(ve,N,null),b(o,dn,u),b(o,se,u),e(se,we),e(we,vo),I(Le,vo,null),e(se,pi),e(se,wo),e(wo,di),b(o,cn,u),b(o,M,u),I(He,M,null),e(M,ci),e(M,Io),e(Io,mi),e(M,fi),e(M,jt),e(jt,Ft),e(Ft,hi),e(jt,ui),e(M,gi),e(M,Qe),e(Qe,_i),e(Qe,kt),e(kt,yi),e(Qe,bi),e(M,vi),e(M,qe),e(qe,wi),e(qe,$o),e($o,Ii),e(qe,$i),e(M,Ti),e(M,To),e(To,Pi),e(M,xi),e(M,Po),e(Po,Ie),e(Ie,xo),e(xo,ji),e(Ie,Fi),e(Ie,jo),e(jo,ki),e(Ie,Mi),e(M,Ai),e(M,G),I(Oe,G,null),e(G,Ui),e(G,Fo),e(Fo,Gi),e(G,Ei),e(G,ko),e(ko,Ji),e(G,Zi),e(G,Ke),e(Ke,Mo),e(Mo,Bi),e(Ke,Si),e(Ke,Ao),e(Ao,Wi),e(G,Vi),e(G,et),e(et,Ci),e(et,Uo),e(Uo,Di),e(et,Ri),e(G,Ni),e(G,tt),e(tt,Xi),e(tt,Go),e(Go,Yi),e(tt,zi),e(G,Li),I($e,G,null),e(G,Hi),I(Te,G,null),e(G,Qi),I(Pe,G,null),e(M,qi),e(M,X),I(ot,X,null),e(X,Oi),e(X,Eo),e(Eo,Ki),e(X,er),e(X,Jo),e(Jo,tr),e(X,or),e(X,Zo),e(Zo,nr),e(X,ar),e(X,nt),e(nt,sr),e(nt,Bo),e(Bo,ir),e(nt,rr),e(X,lr),I(xe,X,null),mn=!0},p(o,[u]){const at={};u&2&&(at.$$scope={dirty:u,ctx:o}),ce.$set(at);const So={};u&2&&(So.$$scope={dirty:u,ctx:o}),me.$set(So);const Wo={};u&2&&(Wo.$$scope={dirty:u,ctx:o}),fe.$set(Wo);const Vo={};u&2&&(Vo.$$scope={dirty:u,ctx:o}),he.$set(Vo);const Co={};u&2&&(Co.$$scope={dirty:u,ctx:o}),_e.$set(Co);const ee={};u&2&&(ee.$$scope={dirty:u,ctx:o}),ye.$set(ee);const Do={};u&2&&(Do.$$scope={dirty:u,ctx:o}),be.$set(Do);const Ro={};u&2&&(Ro.$$scope={dirty:u,ctx:o}),ve.$set(Ro);const No={};u&2&&(No.$$scope={dirty:u,ctx:o}),$e.$set(No);const Xo={};u&2&&(Xo.$$scope={dirty:u,ctx:o}),Te.$set(Xo);const Yo={};u&2&&(Yo.$$scope={dirty:u,ctx:o}),Pe.$set(Yo);const zo={};u&2&&(zo.$$scope={dirty:u,ctx:o}),xe.$set(zo)},i(o){mn||($(n.$$.fragment,o),$(Fe.$$.fragment,o),$(ke.$$.fragment,o),$(Me.$$.fragment,o),$(Ae.$$.fragment,o),$(Ee.$$.fragment,o),$(ce.$$.fragment,o),$(me.$$.fragment,o),$(fe.$$.fragment,o),$(Be.$$.fragment,o),$(he.$$.fragment,o),$(We.$$.fragment,o),$(Ve.$$.fragment,o),$(De.$$.fragment,o),$(_e.$$.fragment,o),$(ye.$$.fragment,o),$(be.$$.fragment,o),$(Ye.$$.fragment,o),$(ve.$$.fragment,o),$(Le.$$.fragment,o),$(He.$$.fragment,o),$(Oe.$$.fragment,o),$($e.$$.fragment,o),$(Te.$$.fragment,o),$(Pe.$$.fragment,o),$(ot.$$.fragment,o),$(xe.$$.fragment,o),mn=!0)},o(o){T(n.$$.fragment,o),T(Fe.$$.fragment,o),T(ke.$$.fragment,o),T(Me.$$.fragment,o),T(Ae.$$.fragment,o),T(Ee.$$.fragment,o),T(ce.$$.fragment,o),T(me.$$.fragment,o),T(fe.$$.fragment,o),T(Be.$$.fragment,o),T(he.$$.fragment,o),T(We.$$.fragment,o),T(Ve.$$.fragment,o),T(De.$$.fragment,o),T(_e.$$.fragment,o),T(ye.$$.fragment,o),T(be.$$.fragment,o),T(Ye.$$.fragment,o),T(ve.$$.fragment,o),T(Le.$$.fragment,o),T(He.$$.fragment,o),T(Oe.$$.fragment,o),T($e.$$.fragment,o),T(Te.$$.fragment,o),T(Pe.$$.fragment,o),T(ot.$$.fragment,o),T(xe.$$.fragment,o),mn=!1},d(o){t(p),o&&t(_),o&&t(f),P(n),o&&t(x),o&&t(Y),o&&t(qo),o&&t(L),o&&t(Oo),o&&t(lt),o&&t(Ko),P(Fe,o),o&&t(en),o&&t(pt),o&&t(tn),P(ke,o),o&&t(on),o&&t(dt),o&&t(nn),o&&t(ct),o&&t(an),o&&t(D),o&&t(sn),o&&t(oe),P(Me),o&&t(rn),o&&t(F),P(Ae),P(Ee),P(ce),P(me),P(fe),P(Be),P(he),o&&t(ln),o&&t(ae),P(We),o&&t(pn),o&&t(k),P(Ve),P(De),P(_e),P(ye),P(be),P(Ye),P(ve),o&&t(dn),o&&t(se),P(Le),o&&t(cn),o&&t(M),P(He),P(Oe),P($e),P(Te),P(Pe),P(ot),P(xe)}}}const op={local:"autopipeline",sections:[{local:"diffusers.AutoPipelineForText2Image",title:"AutoPipelineForText2Image"},{local:"diffusers.AutoPipelineForImage2Image",title:"AutoPipelineForImage2Image"},{local:"diffusers.AutoPipelineForInpainting",title:"AutoPipelineForInpainting"}],title:"AutoPipeline"};function np(j){return Dl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class dp extends Sl{constructor(p){super();Wl(this,p,np,tp,Vl,{})}}export{dp as default,op as metadata};
