import{S as Zl,i as Bl,s as Sl,e as a,k as d,w as v,t as r,M as Wl,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 Vl,L as le}from"../../../chunks/vendor-hf-doc-builder.js";import{T as dr}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 Cl(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 Dl(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 Rl(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 Nl(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 Xl(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 Yl(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 zl(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 Ll(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 Hl(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 Ql(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 ql(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 Ol(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 Kl(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,Me,on,dt,Dn,nn,ct,Rn,an,D,Mt,mt,Nn,Xn,At,ft,Yn,zn,kt,ht,Ln,Hn,Ut,ut,Qn,qn,Gt,gt,On,Kn,Et,_t,ea,sn,oe,pe,Jt,Ae,ta,Zt,oa,rn,F,ke,na,Bt,aa,sa,yt,bt,ia,ra,la,Ue,pa,vt,da,ca,ma,Ge,fa,St,ha,ua,ga,Wt,_a,ya,Vt,de,Ct,ba,va,Dt,wa,Ia,$a,k,Ee,Ta,Rt,Pa,xa,Nt,ja,Fa,Je,Xt,Ma,Aa,Yt,ka,Ua,ne,Ga,zt,Ea,Ja,wt,Za,Ba,Sa,Ze,Wa,Lt,Va,Ca,Da,ce,Ra,me,Na,fe,Xa,R,Be,Ya,Ht,za,La,Qt,Ha,Qa,qt,qa,Oa,Se,Ka,Ot,es,ts,os,he,ln,ae,ue,Kt,We,ns,eo,as,pn,M,Ve,ss,to,is,rs,It,$t,ls,ps,ds,K,cs,Tt,ms,fs,oo,hs,us,no,gs,_s,ys,Ce,bs,ao,vs,ws,Is,so,$s,Ts,io,ge,ro,Ps,xs,lo,js,Fs,Ms,U,De,As,po,ks,Us,co,Gs,Es,Re,mo,Js,Zs,fo,Bs,Ss,Ne,Ws,ho,Vs,Cs,Ds,Xe,Rs,uo,Ns,Xs,Ys,_e,zs,ye,Ls,be,Hs,N,Ye,Qs,go,qs,Os,_o,Ks,ei,yo,ti,oi,ze,ni,bo,ai,si,ii,ve,dn,se,we,vo,Le,ri,wo,li,cn,A,He,pi,Io,di,ci,Pt,xt,mi,fi,hi,Qe,ui,jt,gi,_i,yi,qe,bi,$o,vi,wi,Ii,To,$i,Ti,Po,Ie,xo,Pi,xi,jo,ji,Fi,Mi,G,Oe,Ai,Fo,ki,Ui,Mo,Gi,Ei,Ke,Ao,Ji,Zi,ko,Bi,Si,et,Wi,Uo,Vi,Ci,Di,tt,Ri,Go,Ni,Xi,Yi,$e,zi,Te,Li,Pe,Hi,X,ot,Qi,Eo,qi,Oi,Jo,Ki,er,Zo,tr,or,nt,nr,Bo,ar,sr,ir,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>)`}}),Me=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)`}}),Ae=new Un({}),ke=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.2/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.2/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.2/src/diffusers/pipelines/auto_pipeline.py#L187"}}),ce=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example",$$slots:{default:[Cl]},$$scope:{ctx:j}}}),me=new dr({props:{$$slots:{default:[Dl]},$$scope:{ctx:j}}}),fe=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example-2",$$slots:{default:[Rl]},$$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.2/src/diffusers/pipelines/auto_pipeline.py#L313"}}),he=new re({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.example",$$slots:{default:[Nl]},$$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.2/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.2/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.2/src/diffusers/pipelines/auto_pipeline.py#L430"}}),_e=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example",$$slots:{default:[Xl]},$$scope:{ctx:j}}}),ye=new dr({props:{$$slots:{default:[Yl]},$$scope:{ctx:j}}}),be=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example-2",$$slots:{default:[zl]},$$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.2/src/diffusers/pipelines/auto_pipeline.py#L556"}}),ve=new re({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.example",$$slots:{default:[Ll]},$$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.2/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.2/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.2/src/diffusers/pipelines/auto_pipeline.py#L675"}}),$e=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example",$$slots:{default:[Hl]},$$scope:{ctx:j}}}),Te=new dr({props:{$$slots:{default:[Ql]},$$scope:{ctx:j}}}),Pe=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example-2",$$slots:{default:[ql]},$$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.2/src/diffusers/pipelines/auto_pipeline.py#L800"}}),xe=new re({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.example",$$slots:{default:[Ol]},$$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(Me.$$.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"),Mt=a("li"),mt=a("a"),Nn=r("stable Diffusion"),Xn=d(),At=a("li"),ft=a("a"),Yn=r("Stable Diffusion Controlnet"),zn=d(),kt=a("li"),ht=a("a"),Ln=r("Stable Diffusion XL"),Hn=d(),Ut=a("li"),ut=a("a"),Qn=r("IF"),qn=d(),Gt=a("li"),gt=a("a"),On=r("Kandinsky"),Kn=d(),Et=a("li"),_t=a("a"),ea=r("Kandinsky 2.2"),sn=d(),oe=a("h2"),pe=a("a"),Jt=a("span"),v(Ae.$$.fragment),ta=d(),Zt=a("span"),oa=r("AutoPipelineForText2Image"),rn=d(),F=a("div"),v(ke.$$.fragment),na=d(),Bt=a("p"),aa=r("AutoPipeline for text-to-image generation."),sa=d(),yt=a("p"),bt=a("a"),ia=r("AutoPipelineForText2Image"),ra=r(` is a generic pipeline class that will be instantiated as one of the text-to-image
pipeline class in diffusers.`),la=d(),Ue=a("p"),pa=r("The pipeline type (for example "),vt=a("a"),da=r("StableDiffusionPipeline"),ca=r(`) is automatically selected when created with the
AutoPipelineForText2Image.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForText2Image.from_pipe(pipeline) class methods .`),ma=d(),Ge=a("p"),fa=r("This class cannot be instantiated using "),St=a("strong"),ha=r("init"),ua=r("() (throws an error)."),ga=d(),Wt=a("p"),_a=r("Class attributes:"),ya=d(),Vt=a("ul"),de=a("li"),Ct=a("strong"),ba=r("config_name"),va=r(" ("),Dt=a("code"),wa=r("str"),Ia=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),$a=d(),k=a("div"),v(Ee.$$.fragment),Ta=d(),Rt=a("p"),Pa=r("Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),xa=d(),Nt=a("p"),ja=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Fa=d(),Je=a("ol"),Xt=a("li"),Ma=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Aa=d(),Yt=a("li"),ka=r(`Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Ua=d(),ne=a("p"),Ga=r("If a "),zt=a("code"),Ea=r("controlnet"),Ja=r(" argument is passed, it will instantiate a "),wt=a("a"),Za=r("StableDiffusionControlNetPipeline"),Ba=r(" object."),Sa=d(),Ze=a("p"),Wa=r("The pipeline is set in evaluation mode ("),Lt=a("code"),Va=r("model.eval()"),Ca=r(") by default."),Da=d(),v(ce.$$.fragment),Ra=d(),v(me.$$.fragment),Na=d(),v(fe.$$.fragment),Xa=d(),R=a("div"),v(Be.$$.fragment),Ya=d(),Ht=a("p"),za=r("Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),La=d(),Qt=a("p"),Ha=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.`),Qa=d(),qt=a("p"),qa=r(`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),Oa=d(),Se=a("p"),Ka=r("The pipeline is set in evaluation mode ("),Ot=a("code"),es=r("model.eval()"),ts=r(") by default."),os=d(),v(he.$$.fragment),ln=d(),ae=a("h2"),ue=a("a"),Kt=a("span"),v(We.$$.fragment),ns=d(),eo=a("span"),as=r("AutoPipelineForImage2Image"),pn=d(),M=a("div"),v(Ve.$$.fragment),ss=d(),to=a("p"),is=r("AutoPipeline for image-to-image generation."),rs=d(),It=a("p"),$t=a("a"),ls=r("AutoPipelineForImage2Image"),ps=r(` is a generic pipeline class that will be instantiated as one of the image-to-image
pipeline classes in diffusers.`),ds=d(),K=a("p"),cs=r("The pipeline type (for example "),Tt=a("a"),ms=r("StableDiffusionImg2ImgPipeline"),fs=r(`) is automatically selected when created with the
`),oo=a("code"),hs=r("AutoPipelineForImage2Image.from_pretrained(pretrained_model_name_or_path)"),us=r(` or
`),no=a("code"),gs=r("AutoPipelineForImage2Image.from_pipe(pipeline)"),_s=r(" class methods."),ys=d(),Ce=a("p"),bs=r("This class cannot be instantiated using "),ao=a("strong"),vs=r("init"),ws=r("() (throws an error)."),Is=d(),so=a("p"),$s=r("Class attributes:"),Ts=d(),io=a("ul"),ge=a("li"),ro=a("strong"),Ps=r("config_name"),xs=r(" ("),lo=a("code"),js=r("str"),Fs=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Ms=d(),U=a("div"),v(De.$$.fragment),As=d(),po=a("p"),ks=r("Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),Us=d(),co=a("p"),Gs=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Es=d(),Re=a("ol"),mo=a("li"),Js=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Zs=d(),fo=a("li"),Bs=r(`Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Ss=d(),Ne=a("p"),Ws=r("If a "),ho=a("code"),Vs=r("controlnet"),Cs=r(" argument is passed, it will instantiate a StableDiffusionControlNetImg2ImgPipeline object."),Ds=d(),Xe=a("p"),Rs=r("The pipeline is set in evaluation mode ("),uo=a("code"),Ns=r("model.eval()"),Xs=r(") by default."),Ys=d(),v(_e.$$.fragment),zs=d(),v(ye.$$.fragment),Ls=d(),v(be.$$.fragment),Hs=d(),N=a("div"),v(Ye.$$.fragment),Qs=d(),go=a("p"),qs=r("Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Os=d(),_o=a("p"),Ks=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.`),ei=d(),yo=a("p"),ti=r(`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),oi=d(),ze=a("p"),ni=r("The pipeline is set in evaluation mode ("),bo=a("code"),ai=r("model.eval()"),si=r(") by default."),ii=d(),v(ve.$$.fragment),dn=d(),se=a("h2"),we=a("a"),vo=a("span"),v(Le.$$.fragment),ri=d(),wo=a("span"),li=r("AutoPipelineForInpainting"),cn=d(),A=a("div"),v(He.$$.fragment),pi=d(),Io=a("p"),di=r("AutoPipeline for inpainting generation."),ci=d(),Pt=a("p"),xt=a("a"),mi=r("AutoPipelineForInpainting"),fi=r(` is a generic pipeline class that will be instantiated as one of the inpainting
pipeline class in diffusers.`),hi=d(),Qe=a("p"),ui=r("The pipeline type (for example "),jt=a("a"),gi=r("IFInpaintingPipeline"),_i=r(`) is automatically selected when created with the
AutoPipelineForInpainting.from_pretrained(pretrained_model_name_or_path) or
AutoPipelineForInpainting.from_pipe(pipeline) class methods .`),yi=d(),qe=a("p"),bi=r("This class cannot be instantiated using "),$o=a("strong"),vi=r("init"),wi=r("() (throws an error)."),Ii=d(),To=a("p"),$i=r("Class attributes:"),Ti=d(),Po=a("ul"),Ie=a("li"),xo=a("strong"),Pi=r("config_name"),xi=r(" ("),jo=a("code"),ji=r("str"),Fi=r(`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Mi=d(),G=a("div"),v(Oe.$$.fragment),Ai=d(),Fo=a("p"),ki=r("Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight."),Ui=d(),Mo=a("p"),Gi=r("The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Ei=d(),Ke=a("ol"),Ao=a("li"),Ji=r(`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Zi=d(),ko=a("li"),Bi=r("Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name."),Si=d(),et=a("p"),Wi=r("If a "),Uo=a("code"),Vi=r("controlnet"),Ci=r(" argument is passed, it will instantiate a StableDiffusionControlNetInpaintPipeline object."),Di=d(),tt=a("p"),Ri=r("The pipeline is set in evaluation mode ("),Go=a("code"),Ni=r("model.eval()"),Xi=r(") by default."),Yi=d(),v($e.$$.fragment),zi=d(),v(Te.$$.fragment),Li=d(),v(Pe.$$.fragment),Hi=d(),X=a("div"),v(ot.$$.fragment),Qi=d(),Eo=a("p"),qi=r("Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Oi=d(),Jo=a("p"),Ki=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.`),er=d(),Zo=a("p"),tr=r(`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memoery.`),or=d(),nt=a("p"),nr=r("The pipeline is set in evaluation mode ("),Bo=a("code"),ar=r("model.eval()"),sr=r(") by default."),ir=d(),v(xe.$$.fragment),this.h()},l(o){const u=Wl('[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(Me.$$.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 cr=i(ct);Rn=l(cr,"Currently AutoPipeline support the Text-to-Image, Image-to-Image, and Inpainting tasks for below diffusion models:"),cr.forEach(t),an=c(o),D=s(o,"UL",{});var H=i(D);Mt=s(H,"LI",{});var mr=i(Mt);mt=s(mr,"A",{href:!0});var fr=i(mt);Nn=l(fr,"stable Diffusion"),fr.forEach(t),mr.forEach(t),Xn=c(H),At=s(H,"LI",{});var hr=i(At);ft=s(hr,"A",{href:!0});var ur=i(ft);Yn=l(ur,"Stable Diffusion Controlnet"),ur.forEach(t),hr.forEach(t),zn=c(H),kt=s(H,"LI",{});var gr=i(kt);ht=s(gr,"A",{href:!0});var _r=i(ht);Ln=l(_r,"Stable Diffusion XL"),_r.forEach(t),gr.forEach(t),Hn=c(H),Ut=s(H,"LI",{});var yr=i(Ut);ut=s(yr,"A",{href:!0});var br=i(ut);Qn=l(br,"IF"),br.forEach(t),yr.forEach(t),qn=c(H),Gt=s(H,"LI",{});var vr=i(Gt);gt=s(vr,"A",{href:!0});var wr=i(gt);On=l(wr,"Kandinsky"),wr.forEach(t),vr.forEach(t),Kn=c(H),Et=s(H,"LI",{});var Ir=i(Et);_t=s(Ir,"A",{href:!0});var $r=i(_t);ea=l($r,"Kandinsky 2.2"),$r.forEach(t),Ir.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 Tr=i(pe);Jt=s(Tr,"SPAN",{});var Pr=i(Jt);w(Ae.$$.fragment,Pr),Pr.forEach(t),Tr.forEach(t),ta=c(fn),Zt=s(fn,"SPAN",{});var xr=i(Zt);oa=l(xr,"AutoPipelineForText2Image"),xr.forEach(t),fn.forEach(t),rn=c(o),F=s(o,"DIV",{class:!0});var J=i(F);w(ke.$$.fragment,J),na=c(J),Bt=s(J,"P",{});var jr=i(Bt);aa=l(jr,"AutoPipeline for text-to-image generation."),jr.forEach(t),sa=c(J),yt=s(J,"P",{});var rr=i(yt);bt=s(rr,"A",{href:!0});var Fr=i(bt);ia=l(Fr,"AutoPipelineForText2Image"),Fr.forEach(t),ra=l(rr,` is a generic pipeline class that will be instantiated as one of the text-to-image
pipeline class in diffusers.`),rr.forEach(t),la=c(J),Ue=s(J,"P",{});var hn=i(Ue);pa=l(hn,"The pipeline type (for example "),vt=s(hn,"A",{href:!0});var Mr=i(vt);da=l(Mr,"StableDiffusionPipeline"),Mr.forEach(t),ca=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),ma=c(J),Ge=s(J,"P",{});var un=i(Ge);fa=l(un,"This class cannot be instantiated using "),St=s(un,"STRONG",{});var Ar=i(St);ha=l(Ar,"init"),Ar.forEach(t),ua=l(un,"() (throws an error)."),un.forEach(t),ga=c(J),Wt=s(J,"P",{});var kr=i(Wt);_a=l(kr,"Class attributes:"),kr.forEach(t),ya=c(J),Vt=s(J,"UL",{});var Ur=i(Vt);de=s(Ur,"LI",{});var Lo=i(de);Ct=s(Lo,"STRONG",{});var Gr=i(Ct);ba=l(Gr,"config_name"),Gr.forEach(t),va=l(Lo," ("),Dt=s(Lo,"CODE",{});var Er=i(Dt);wa=l(Er,"str"),Er.forEach(t),Ia=l(Lo,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Lo.forEach(t),Ur.forEach(t),$a=c(J),k=s(J,"DIV",{class:!0});var Z=i(k);w(Ee.$$.fragment,Z),Ta=c(Z),Rt=s(Z,"P",{});var Jr=i(Rt);Pa=l(Jr,"Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),Jr.forEach(t),xa=c(Z),Nt=s(Z,"P",{});var Zr=i(Nt);ja=l(Zr,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),Zr.forEach(t),Fa=c(Z),Je=s(Z,"OL",{});var gn=i(Je);Xt=s(gn,"LI",{});var Br=i(Xt);Ma=l(Br,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Br.forEach(t),Aa=c(gn),Yt=s(gn,"LI",{});var Sr=i(Yt);ka=l(Sr,`Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),Sr.forEach(t),gn.forEach(t),Ua=c(Z),ne=s(Z,"P",{});var Ft=i(ne);Ga=l(Ft,"If a "),zt=s(Ft,"CODE",{});var Wr=i(zt);Ea=l(Wr,"controlnet"),Wr.forEach(t),Ja=l(Ft," argument is passed, it will instantiate a "),wt=s(Ft,"A",{href:!0});var Vr=i(wt);Za=l(Vr,"StableDiffusionControlNetPipeline"),Vr.forEach(t),Ba=l(Ft," object."),Ft.forEach(t),Sa=c(Z),Ze=s(Z,"P",{});var _n=i(Ze);Wa=l(_n,"The pipeline is set in evaluation mode ("),Lt=s(_n,"CODE",{});var Cr=i(Lt);Va=l(Cr,"model.eval()"),Cr.forEach(t),Ca=l(_n,") by default."),_n.forEach(t),Da=c(Z),w(ce.$$.fragment,Z),Ra=c(Z),w(me.$$.fragment,Z),Na=c(Z),w(fe.$$.fragment,Z),Z.forEach(t),Xa=c(J),R=s(J,"DIV",{class:!0});var Q=i(R);w(Be.$$.fragment,Q),Ya=c(Q),Ht=s(Q,"P",{});var Dr=i(Ht);za=l(Dr,"Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Dr.forEach(t),La=c(Q),Qt=s(Q,"P",{});var Rr=i(Qt);Ha=l(Rr,`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.`),Rr.forEach(t),Qa=c(Q),qt=s(Q,"P",{});var Nr=i(qt);qa=l(Nr,`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),Nr.forEach(t),Oa=c(Q),Se=s(Q,"P",{});var yn=i(Se);Ka=l(yn,"The pipeline is set in evaluation mode ("),Ot=s(yn,"CODE",{});var Xr=i(Ot);es=l(Xr,"model.eval()"),Xr.forEach(t),ts=l(yn,") by default."),yn.forEach(t),os=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 Yr=i(ue);Kt=s(Yr,"SPAN",{});var zr=i(Kt);w(We.$$.fragment,zr),zr.forEach(t),Yr.forEach(t),ns=c(bn),eo=s(bn,"SPAN",{});var Lr=i(eo);as=l(Lr,"AutoPipelineForImage2Image"),Lr.forEach(t),bn.forEach(t),pn=c(o),M=s(o,"DIV",{class:!0});var B=i(M);w(Ve.$$.fragment,B),ss=c(B),to=s(B,"P",{});var Hr=i(to);is=l(Hr,"AutoPipeline for image-to-image generation."),Hr.forEach(t),rs=c(B),It=s(B,"P",{});var lr=i(It);$t=s(lr,"A",{href:!0});var Qr=i($t);ls=l(Qr,"AutoPipelineForImage2Image"),Qr.forEach(t),ps=l(lr,` is a generic pipeline class that will be instantiated as one of the image-to-image
pipeline classes in diffusers.`),lr.forEach(t),ds=c(B),K=s(B,"P",{});var je=i(K);cs=l(je,"The pipeline type (for example "),Tt=s(je,"A",{href:!0});var qr=i(Tt);ms=l(qr,"StableDiffusionImg2ImgPipeline"),qr.forEach(t),fs=l(je,`) is automatically selected when created with the
`),oo=s(je,"CODE",{});var Or=i(oo);hs=l(Or,"AutoPipelineForImage2Image.from_pretrained(pretrained_model_name_or_path)"),Or.forEach(t),us=l(je,` or
`),no=s(je,"CODE",{});var Kr=i(no);gs=l(Kr,"AutoPipelineForImage2Image.from_pipe(pipeline)"),Kr.forEach(t),_s=l(je," class methods."),je.forEach(t),ys=c(B),Ce=s(B,"P",{});var vn=i(Ce);bs=l(vn,"This class cannot be instantiated using "),ao=s(vn,"STRONG",{});var el=i(ao);vs=l(el,"init"),el.forEach(t),ws=l(vn,"() (throws an error)."),vn.forEach(t),Is=c(B),so=s(B,"P",{});var tl=i(so);$s=l(tl,"Class attributes:"),tl.forEach(t),Ts=c(B),io=s(B,"UL",{});var ol=i(io);ge=s(ol,"LI",{});var Ho=i(ge);ro=s(Ho,"STRONG",{});var nl=i(ro);Ps=l(nl,"config_name"),nl.forEach(t),xs=l(Ho," ("),lo=s(Ho,"CODE",{});var al=i(lo);js=l(al,"str"),al.forEach(t),Fs=l(Ho,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Ho.forEach(t),ol.forEach(t),Ms=c(B),U=s(B,"DIV",{class:!0});var S=i(U);w(De.$$.fragment,S),As=c(S),po=s(S,"P",{});var sl=i(po);ks=l(sl,"Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight."),sl.forEach(t),Us=c(S),co=s(S,"P",{});var il=i(co);Gs=l(il,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),il.forEach(t),Es=c(S),Re=s(S,"OL",{});var wn=i(Re);mo=s(wn,"LI",{});var rl=i(mo);Js=l(rl,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),rl.forEach(t),Zs=c(wn),fo=s(wn,"LI",{});var ll=i(fo);Bs=l(ll,`Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class
name.`),ll.forEach(t),wn.forEach(t),Ss=c(S),Ne=s(S,"P",{});var In=i(Ne);Ws=l(In,"If a "),ho=s(In,"CODE",{});var pl=i(ho);Vs=l(pl,"controlnet"),pl.forEach(t),Cs=l(In," argument is passed, it will instantiate a StableDiffusionControlNetImg2ImgPipeline object."),In.forEach(t),Ds=c(S),Xe=s(S,"P",{});var $n=i(Xe);Rs=l($n,"The pipeline is set in evaluation mode ("),uo=s($n,"CODE",{});var dl=i(uo);Ns=l(dl,"model.eval()"),dl.forEach(t),Xs=l($n,") by default."),$n.forEach(t),Ys=c(S),w(_e.$$.fragment,S),zs=c(S),w(ye.$$.fragment,S),Ls=c(S),w(be.$$.fragment,S),S.forEach(t),Hs=c(B),N=s(B,"DIV",{class:!0});var q=i(N);w(Ye.$$.fragment,q),Qs=c(q),go=s(q,"P",{});var cl=i(go);qs=l(cl,"Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),cl.forEach(t),Os=c(q),_o=s(q,"P",{});var ml=i(_o);Ks=l(ml,`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.`),ml.forEach(t),ei=c(q),yo=s(q,"P",{});var fl=i(yo);ti=l(fl,`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating
additional memoery.`),fl.forEach(t),oi=c(q),ze=s(q,"P",{});var Tn=i(ze);ni=l(Tn,"The pipeline is set in evaluation mode ("),bo=s(Tn,"CODE",{});var hl=i(bo);ai=l(hl,"model.eval()"),hl.forEach(t),si=l(Tn,") by default."),Tn.forEach(t),ii=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 ul=i(we);vo=s(ul,"SPAN",{});var gl=i(vo);w(Le.$$.fragment,gl),gl.forEach(t),ul.forEach(t),ri=c(Pn),wo=s(Pn,"SPAN",{});var _l=i(wo);li=l(_l,"AutoPipelineForInpainting"),_l.forEach(t),Pn.forEach(t),cn=c(o),A=s(o,"DIV",{class:!0});var W=i(A);w(He.$$.fragment,W),pi=c(W),Io=s(W,"P",{});var yl=i(Io);di=l(yl,"AutoPipeline for inpainting generation."),yl.forEach(t),ci=c(W),Pt=s(W,"P",{});var pr=i(Pt);xt=s(pr,"A",{href:!0});var bl=i(xt);mi=l(bl,"AutoPipelineForInpainting"),bl.forEach(t),fi=l(pr,` is a generic pipeline class that will be instantiated as one of the inpainting
pipeline class in diffusers.`),pr.forEach(t),hi=c(W),Qe=s(W,"P",{});var xn=i(Qe);ui=l(xn,"The pipeline type (for example "),jt=s(xn,"A",{href:!0});var vl=i(jt);gi=l(vl,"IFInpaintingPipeline"),vl.forEach(t),_i=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),yi=c(W),qe=s(W,"P",{});var jn=i(qe);bi=l(jn,"This class cannot be instantiated using "),$o=s(jn,"STRONG",{});var wl=i($o);vi=l(wl,"init"),wl.forEach(t),wi=l(jn,"() (throws an error)."),jn.forEach(t),Ii=c(W),To=s(W,"P",{});var Il=i(To);$i=l(Il,"Class attributes:"),Il.forEach(t),Ti=c(W),Po=s(W,"UL",{});var $l=i(Po);Ie=s($l,"LI",{});var Qo=i(Ie);xo=s(Qo,"STRONG",{});var Tl=i(xo);Pi=l(Tl,"config_name"),Tl.forEach(t),xi=l(Qo," ("),jo=s(Qo,"CODE",{});var Pl=i(jo);ji=l(Pl,"str"),Pl.forEach(t),Fi=l(Qo,`) \u2014 The configuration filename that stores the class and module names of all the
diffusion pipeline\u2019s components.`),Qo.forEach(t),$l.forEach(t),Mi=c(W),G=s(W,"DIV",{class:!0});var V=i(G);w(Oe.$$.fragment,V),Ai=c(V),Fo=s(V,"P",{});var xl=i(Fo);ki=l(xl,"Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight."),xl.forEach(t),Ui=c(V),Mo=s(V,"P",{});var jl=i(Mo);Gi=l(jl,"The from_pretrained() method takes care of returning the correct pipeline class instance by:"),jl.forEach(t),Ei=c(V),Ke=s(V,"OL",{});var Fn=i(Ke);Ao=s(Fn,"LI",{});var Fl=i(Ao);Ji=l(Fl,`Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its
config object`),Fl.forEach(t),Zi=c(Fn),ko=s(Fn,"LI",{});var Ml=i(ko);Bi=l(Ml,"Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name."),Ml.forEach(t),Fn.forEach(t),Si=c(V),et=s(V,"P",{});var Mn=i(et);Wi=l(Mn,"If a "),Uo=s(Mn,"CODE",{});var Al=i(Uo);Vi=l(Al,"controlnet"),Al.forEach(t),Ci=l(Mn," argument is passed, it will instantiate a StableDiffusionControlNetInpaintPipeline object."),Mn.forEach(t),Di=c(V),tt=s(V,"P",{});var An=i(tt);Ri=l(An,"The pipeline is set in evaluation mode ("),Go=s(An,"CODE",{});var kl=i(Go);Ni=l(kl,"model.eval()"),kl.forEach(t),Xi=l(An,") by default."),An.forEach(t),Yi=c(V),w($e.$$.fragment,V),zi=c(V),w(Te.$$.fragment,V),Li=c(V),w(Pe.$$.fragment,V),V.forEach(t),Hi=c(W),X=s(W,"DIV",{class:!0});var O=i(X);w(ot.$$.fragment,O),Qi=c(O),Eo=s(O,"P",{});var Ul=i(Eo);qi=l(Ul,"Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class."),Ul.forEach(t),Oi=c(O),Jo=s(O,"P",{});var Gl=i(Jo);Ki=l(Gl,`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.`),Gl.forEach(t),er=c(O),Zo=s(O,"P",{});var El=i(Zo);tr=l(El,`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating
additional memoery.`),El.forEach(t),or=c(O),nt=s(O,"P",{});var kn=i(nt);nr=l(kn,"The pipeline is set in evaluation mode ("),Bo=s(kn,"CODE",{});var Jl=i(Bo);ar=l(Jl,"model.eval()"),Jl.forEach(t),sr=l(kn,") by default."),kn.forEach(t),ir=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(ep)),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.2/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image"),y(it,"href","/docs/diffusers/v0.19.2/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image"),y(rt,"href","/docs/diffusers/v0.19.2/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(gt,"href","./kandinsky"),y(_t,"href","./kandinsky"),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(bt,"href","/docs/diffusers/v0.19.2/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image"),y(vt,"href","/docs/diffusers/v0.19.2/en/api/pipelines/stable_diffusion/text2img#diffusers.StableDiffusionPipeline"),y(wt,"href","/docs/diffusers/v0.19.2/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline"),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(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($t,"href","/docs/diffusers/v0.19.2/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image"),y(Tt,"href","/docs/diffusers/v0.19.2/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(M,"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(xt,"href","/docs/diffusers/v0.19.2/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting"),y(jt,"href","/docs/diffusers/v0.19.2/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(A,"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(Me,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,Mt),e(Mt,mt),e(mt,Nn),e(D,Xn),e(D,At),e(At,ft),e(ft,Yn),e(D,zn),e(D,kt),e(kt,ht),e(ht,Ln),e(D,Hn),e(D,Ut),e(Ut,ut),e(ut,Qn),e(D,qn),e(D,Gt),e(Gt,gt),e(gt,On),e(D,Kn),e(D,Et),e(Et,_t),e(_t,ea),b(o,sn,u),b(o,oe,u),e(oe,pe),e(pe,Jt),I(Ae,Jt,null),e(oe,ta),e(oe,Zt),e(Zt,oa),b(o,rn,u),b(o,F,u),I(ke,F,null),e(F,na),e(F,Bt),e(Bt,aa),e(F,sa),e(F,yt),e(yt,bt),e(bt,ia),e(yt,ra),e(F,la),e(F,Ue),e(Ue,pa),e(Ue,vt),e(vt,da),e(Ue,ca),e(F,ma),e(F,Ge),e(Ge,fa),e(Ge,St),e(St,ha),e(Ge,ua),e(F,ga),e(F,Wt),e(Wt,_a),e(F,ya),e(F,Vt),e(Vt,de),e(de,Ct),e(Ct,ba),e(de,va),e(de,Dt),e(Dt,wa),e(de,Ia),e(F,$a),e(F,k),I(Ee,k,null),e(k,Ta),e(k,Rt),e(Rt,Pa),e(k,xa),e(k,Nt),e(Nt,ja),e(k,Fa),e(k,Je),e(Je,Xt),e(Xt,Ma),e(Je,Aa),e(Je,Yt),e(Yt,ka),e(k,Ua),e(k,ne),e(ne,Ga),e(ne,zt),e(zt,Ea),e(ne,Ja),e(ne,wt),e(wt,Za),e(ne,Ba),e(k,Sa),e(k,Ze),e(Ze,Wa),e(Ze,Lt),e(Lt,Va),e(Ze,Ca),e(k,Da),I(ce,k,null),e(k,Ra),I(me,k,null),e(k,Na),I(fe,k,null),e(F,Xa),e(F,R),I(Be,R,null),e(R,Ya),e(R,Ht),e(Ht,za),e(R,La),e(R,Qt),e(Qt,Ha),e(R,Qa),e(R,qt),e(qt,qa),e(R,Oa),e(R,Se),e(Se,Ka),e(Se,Ot),e(Ot,es),e(Se,ts),e(R,os),I(he,R,null),b(o,ln,u),b(o,ae,u),e(ae,ue),e(ue,Kt),I(We,Kt,null),e(ae,ns),e(ae,eo),e(eo,as),b(o,pn,u),b(o,M,u),I(Ve,M,null),e(M,ss),e(M,to),e(to,is),e(M,rs),e(M,It),e(It,$t),e($t,ls),e(It,ps),e(M,ds),e(M,K),e(K,cs),e(K,Tt),e(Tt,ms),e(K,fs),e(K,oo),e(oo,hs),e(K,us),e(K,no),e(no,gs),e(K,_s),e(M,ys),e(M,Ce),e(Ce,bs),e(Ce,ao),e(ao,vs),e(Ce,ws),e(M,Is),e(M,so),e(so,$s),e(M,Ts),e(M,io),e(io,ge),e(ge,ro),e(ro,Ps),e(ge,xs),e(ge,lo),e(lo,js),e(ge,Fs),e(M,Ms),e(M,U),I(De,U,null),e(U,As),e(U,po),e(po,ks),e(U,Us),e(U,co),e(co,Gs),e(U,Es),e(U,Re),e(Re,mo),e(mo,Js),e(Re,Zs),e(Re,fo),e(fo,Bs),e(U,Ss),e(U,Ne),e(Ne,Ws),e(Ne,ho),e(ho,Vs),e(Ne,Cs),e(U,Ds),e(U,Xe),e(Xe,Rs),e(Xe,uo),e(uo,Ns),e(Xe,Xs),e(U,Ys),I(_e,U,null),e(U,zs),I(ye,U,null),e(U,Ls),I(be,U,null),e(M,Hs),e(M,N),I(Ye,N,null),e(N,Qs),e(N,go),e(go,qs),e(N,Os),e(N,_o),e(_o,Ks),e(N,ei),e(N,yo),e(yo,ti),e(N,oi),e(N,ze),e(ze,ni),e(ze,bo),e(bo,ai),e(ze,si),e(N,ii),I(ve,N,null),b(o,dn,u),b(o,se,u),e(se,we),e(we,vo),I(Le,vo,null),e(se,ri),e(se,wo),e(wo,li),b(o,cn,u),b(o,A,u),I(He,A,null),e(A,pi),e(A,Io),e(Io,di),e(A,ci),e(A,Pt),e(Pt,xt),e(xt,mi),e(Pt,fi),e(A,hi),e(A,Qe),e(Qe,ui),e(Qe,jt),e(jt,gi),e(Qe,_i),e(A,yi),e(A,qe),e(qe,bi),e(qe,$o),e($o,vi),e(qe,wi),e(A,Ii),e(A,To),e(To,$i),e(A,Ti),e(A,Po),e(Po,Ie),e(Ie,xo),e(xo,Pi),e(Ie,xi),e(Ie,jo),e(jo,ji),e(Ie,Fi),e(A,Mi),e(A,G),I(Oe,G,null),e(G,Ai),e(G,Fo),e(Fo,ki),e(G,Ui),e(G,Mo),e(Mo,Gi),e(G,Ei),e(G,Ke),e(Ke,Ao),e(Ao,Ji),e(Ke,Zi),e(Ke,ko),e(ko,Bi),e(G,Si),e(G,et),e(et,Wi),e(et,Uo),e(Uo,Vi),e(et,Ci),e(G,Di),e(G,tt),e(tt,Ri),e(tt,Go),e(Go,Ni),e(tt,Xi),e(G,Yi),I($e,G,null),e(G,zi),I(Te,G,null),e(G,Li),I(Pe,G,null),e(A,Hi),e(A,X),I(ot,X,null),e(X,Qi),e(X,Eo),e(Eo,qi),e(X,Oi),e(X,Jo),e(Jo,Ki),e(X,er),e(X,Zo),e(Zo,tr),e(X,or),e(X,nt),e(nt,nr),e(nt,Bo),e(Bo,ar),e(nt,sr),e(X,ir),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),$(Me.$$.fragment,o),$(Ae.$$.fragment,o),$(ke.$$.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(Me.$$.fragment,o),T(Ae.$$.fragment,o),T(ke.$$.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(Me,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(Ae),o&&t(rn),o&&t(F),P(ke),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(M),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(A),P(He),P(Oe),P($e),P(Te),P(Pe),P(ot),P(xe)}}}const ep={local:"autopipeline",sections:[{local:"diffusers.AutoPipelineForText2Image",title:"AutoPipelineForText2Image"},{local:"diffusers.AutoPipelineForImage2Image",title:"AutoPipelineForImage2Image"},{local:"diffusers.AutoPipelineForInpainting",title:"AutoPipelineForInpainting"}],title:"AutoPipeline"};function tp(j){return Vl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class lp extends Zl{constructor(p){super();Bl(this,p,tp,Kl,Sl,{})}}export{lp as default,ep as metadata};
