Buckets:
| import{s as _i,o as bi,n as K}from"../chunks/scheduler.53228c21.js";import{S as yi,i as vi,e as s,s as n,c as g,h as wi,a as r,d as c,b as i,f as Y,g as _,j as p,k as J,l as o,m as x,n as b,t as y,o as v,p as w}from"../chunks/index.cac5d66a.js";import{C as xi}from"../chunks/CopyLLMTxtMenu.f1196f8c.js";import{D}from"../chunks/Docstring.0935d2db.js";import{C as O}from"../chunks/CodeBlock.606cbaf4.js";import{E as N}from"../chunks/ExampleCodeBlock.e3168bdf.js";import{H as Ft,E as Mi}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.05c95d6f.js";function Ti(M){let a,h="If you get the error message below, you need to finetune the weights for your downstream task:",d,l,f;return l=new O({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIwYW5kJTIwYXJlJTIwbmV3bHklMjBpbml0aWFsaXplZCUyMGJlY2F1c2UlMjB0aGUlMjBzaGFwZXMlMjBkaWQlMjBub3QlMjBtYXRjaCUzQSUwQS0lMjBjb252X2luLndlaWdodCUzQSUyMGZvdW5kJTIwc2hhcGUlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDQlMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMGNoZWNrcG9pbnQlMjBhbmQlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDklMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMG1vZGVsJTIwaW5zdGFudGlhdGVkJTBBWW91JTIwc2hvdWxkJTIwcHJvYmFibHklMjBUUkFJTiUyMHRoaXMlMjBtb2RlbCUyMG9uJTIwYSUyMGRvd24tc3RyZWFtJTIwdGFzayUyMHRvJTIwYmUlMjBhYmxlJTIwdG8lMjB1c2UlMjBpdCUyMGZvciUyMHByZWRpY3Rpb25zJTIwYW5kJTIwaW5mZXJlbmNlLg==",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint <span class="hljs-built_in">at</span> stable-<span class="hljs-keyword">diffusion-v1-5/stable-diffusion-v1-5 </span><span class="hljs-keyword">and </span>are newly initialized <span class="hljs-keyword">because </span>the <span class="hljs-keyword">shapes </span><span class="hljs-keyword">did </span>not match: | |
| - conv_in.weight: found <span class="hljs-keyword">shape </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the checkpoint <span class="hljs-keyword">and </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the model <span class="hljs-keyword">instantiated | |
| </span>You <span class="hljs-keyword">should </span>probably TRAIN this model on a down-stream task to <span class="hljs-keyword">be </span>able to use it for predictions <span class="hljs-keyword">and </span>inference.`,lang:"",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-xueb0m"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function $i(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEElMEFwaXBlbGluZSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image | |
| <span class="hljs-meta">>>> </span>pipeline = AutoPipelineForText2Image.from_pretrained(<span class="hljs-string">"stable-diffusion-v1-5/stable-diffusion-v1-5"</span>) | |
| <span class="hljs-meta">>>> </span>image = pipeline(prompt).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function ki(M){let a,h;return a=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZSUwQSUwQXBpcGVfaTJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9ySW1hZ2UySW1hZ2UuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHJlcXVpcmVzX3NhZmV0eV9jaGVja2VyJTNERmFsc2UlMEEpJTBBJTBBcGlwZV90MmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0MkltYWdlLmZyb21fcGlwZShwaXBlX2kyaSklMEFpbWFnZSUyMCUzRCUyMHBpcGVfdDJpKHByb21wdCkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForImage2Image | |
| <span class="hljs-meta">>>> </span>pipe_i2i = AutoPipelineForImage2Image.from_pretrained( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"stable-diffusion-v1-5/stable-diffusion-v1-5"</span>, requires_safety_checker=<span class="hljs-literal">False</span> | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>pipe_t2i = AutoPipelineForText2Image.from_pipe(pipe_i2i) | |
| <span class="hljs-meta">>>> </span>image = pipe_t2i(prompt).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){g(a.$$.fragment)},l(d){_(a.$$.fragment,d)},m(d,l){b(a,d,l),h=!0},p:K,i(d){h||(y(a.$$.fragment,d),h=!0)},o(d){v(a.$$.fragment,d),h=!1},d(d){w(a,d)}}}function Ii(M){let a,h="If you get the error message below, you need to finetune the weights for your downstream task:",d,l,f;return l=new O({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIwYW5kJTIwYXJlJTIwbmV3bHklMjBpbml0aWFsaXplZCUyMGJlY2F1c2UlMjB0aGUlMjBzaGFwZXMlMjBkaWQlMjBub3QlMjBtYXRjaCUzQSUwQS0lMjBjb252X2luLndlaWdodCUzQSUyMGZvdW5kJTIwc2hhcGUlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDQlMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMGNoZWNrcG9pbnQlMjBhbmQlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDklMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMG1vZGVsJTIwaW5zdGFudGlhdGVkJTBBWW91JTIwc2hvdWxkJTIwcHJvYmFibHklMjBUUkFJTiUyMHRoaXMlMjBtb2RlbCUyMG9uJTIwYSUyMGRvd24tc3RyZWFtJTIwdGFzayUyMHRvJTIwYmUlMjBhYmxlJTIwdG8lMjB1c2UlMjBpdCUyMGZvciUyMHByZWRpY3Rpb25zJTIwYW5kJTIwaW5mZXJlbmNlLg==",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint <span class="hljs-built_in">at</span> stable-<span class="hljs-keyword">diffusion-v1-5/stable-diffusion-v1-5 </span><span class="hljs-keyword">and </span>are newly initialized <span class="hljs-keyword">because </span>the <span class="hljs-keyword">shapes </span><span class="hljs-keyword">did </span>not match: | |
| - conv_in.weight: found <span class="hljs-keyword">shape </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the checkpoint <span class="hljs-keyword">and </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the model <span class="hljs-keyword">instantiated | |
| </span>You <span class="hljs-keyword">should </span>probably TRAIN this model on a down-stream task to <span class="hljs-keyword">be </span>able to use it for predictions <span class="hljs-keyword">and </span>inference.`,lang:"",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-xueb0m"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Ui(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvckltYWdlMkltYWdlJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTIyc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUocHJvbXB0JTJDJTIwaW1hZ2UpLmltYWdlcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForImage2Image | |
| <span class="hljs-meta">>>> </span>pipeline = AutoPipelineForImage2Image.from_pretrained(<span class="hljs-string">"stable-diffusion-v1-5/stable-diffusion-v1-5"</span>) | |
| <span class="hljs-meta">>>> </span>image = pipeline(prompt, image).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function ji(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbWFnZTJJbWFnZSUwQSUwQXBpcGVfdDJpJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTIwcmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSUwQSklMEElMEFwaXBlX2kyaSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvckltYWdlMkltYWdlLmZyb21fcGlwZShwaXBlX3QyaSklMEFpbWFnZSUyMCUzRCUyMHBpcGVfaTJpKHByb21wdCUyQyUyMGltYWdlKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForImage2Image | |
| <span class="hljs-meta">>>> </span>pipe_t2i = AutoPipelineForText2Image.from_pretrained( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"stable-diffusion-v1-5/stable-diffusion-v1-5"</span>, requires_safety_checker=<span class="hljs-literal">False</span> | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>pipe_i2i = AutoPipelineForImage2Image.from_pipe(pipe_t2i) | |
| <span class="hljs-meta">>>> </span>image = pipe_i2i(prompt, image).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Ci(M){let a,h="If you get the error message below, you need to finetune the weights for your downstream task:",d,l,f;return l=new O({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIwYW5kJTIwYXJlJTIwbmV3bHklMjBpbml0aWFsaXplZCUyMGJlY2F1c2UlMjB0aGUlMjBzaGFwZXMlMjBkaWQlMjBub3QlMjBtYXRjaCUzQSUwQS0lMjBjb252X2luLndlaWdodCUzQSUyMGZvdW5kJTIwc2hhcGUlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDQlMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMGNoZWNrcG9pbnQlMjBhbmQlMjB0b3JjaC5TaXplKCU1QjMyMCUyQyUyMDklMkMlMjAzJTJDJTIwMyU1RCklMjBpbiUyMHRoZSUyMG1vZGVsJTIwaW5zdGFudGlhdGVkJTBBWW91JTIwc2hvdWxkJTIwcHJvYmFibHklMjBUUkFJTiUyMHRoaXMlMjBtb2RlbCUyMG9uJTIwYSUyMGRvd24tc3RyZWFtJTIwdGFzayUyMHRvJTIwYmUlMjBhYmxlJTIwdG8lMjB1c2UlMjBpdCUyMGZvciUyMHByZWRpY3Rpb25zJTIwYW5kJTIwaW5mZXJlbmNlLg==",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint <span class="hljs-built_in">at</span> stable-<span class="hljs-keyword">diffusion-v1-5/stable-diffusion-v1-5 </span><span class="hljs-keyword">and </span>are newly initialized <span class="hljs-keyword">because </span>the <span class="hljs-keyword">shapes </span><span class="hljs-keyword">did </span>not match: | |
| - conv_in.weight: found <span class="hljs-keyword">shape </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">4</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the checkpoint <span class="hljs-keyword">and </span>torch.Size([<span class="hljs-number">320</span>, <span class="hljs-number">9</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>]) in the model <span class="hljs-keyword">instantiated | |
| </span>You <span class="hljs-keyword">should </span>probably TRAIN this model on a down-stream task to <span class="hljs-keyword">be </span>able to use it for predictions <span class="hljs-keyword">and </span>inference.`,lang:"",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-xueb0m"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Pi(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmclMEElMEFwaXBlbGluZSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmcuZnJvbV9wcmV0cmFpbmVkKCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCUyQyUyMGltYWdlJTNEaW5pdF9pbWFnZSUyQyUyMG1hc2tfaW1hZ2UlM0RtYXNrX2ltYWdlKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForInpainting | |
| <span class="hljs-meta">>>> </span>pipeline = AutoPipelineForInpainting.from_pretrained(<span class="hljs-string">"stable-diffusion-v1-5/stable-diffusion-v1-5"</span>) | |
| <span class="hljs-meta">>>> </span>image = pipeline(prompt, image=init_image, mask_image=mask_image).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Fi(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMkMlMjBBdXRvUGlwZWxpbmVGb3JJbnBhaW50aW5nJTBBJTBBcGlwZV90MmklMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0MkltYWdlLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJEZWVwRmxveWQlMkZJRi1JLVhMLXYxLjAlMjIlMkMlMjByZXF1aXJlc19zYWZldHlfY2hlY2tlciUzREZhbHNlJTBBKSUwQSUwQXBpcGVfaW5wYWludCUyMCUzRCUyMEF1dG9QaXBlbGluZUZvcklucGFpbnRpbmcuZnJvbV9waXBlKHBpcGVfdDJpKSUwQWltYWdlJTIwJTNEJTIwcGlwZV9pbnBhaW50KHByb21wdCUyQyUyMGltYWdlJTNEaW5pdF9pbWFnZSUyQyUyMG1hc2tfaW1hZ2UlM0RtYXNrX2ltYWdlKS5pbWFnZXMlNUIwJTVE",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image, AutoPipelineForInpainting | |
| <span class="hljs-meta">>>> </span>pipe_t2i = AutoPipelineForText2Image.from_pretrained( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"DeepFloyd/IF-I-XL-v1.0"</span>, requires_safety_checker=<span class="hljs-literal">False</span> | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>pipe_inpaint = AutoPipelineForInpainting.from_pipe(pipe_t2i) | |
| <span class="hljs-meta">>>> </span>image = pipe_inpaint(prompt, image=init_image, mask_image=mask_image).images[<span class="hljs-number">0</span>]`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Ai(M){let a,h="Examples:",d,l,f;return l=new O({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBzb3VuZGZpbGUlMjBhcyUyMHNmJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQyQXVkaW8lMEElMEFwaXBlbGluZSUyMCUzRCUyMEF1dG9QaXBlbGluZUZvclRleHQyQXVkaW8uZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWF1ZGlvLW9wZW4tMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQXBpcGVsaW5lJTIwJTNEJTIwcGlwZWxpbmUudG8oJTIyY3VkYSUyMiklMEElMEFvdXRwdXQlMjAlM0QlMjBwaXBlbGluZSglMEElMjAlMjAlMjAlMjAlMjJHZW5lcmF0ZSUyMGElMjBtYWxlJTIwdm9pY2UlMjByZWFkaW5nJTIwYSUyMHBhcmFncmFwaCUyMiUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QyMDAlMkMlMEElMjAlMjAlMjAlMjBhdWRpb19lbmRfaW5fcyUzRDEwLjAlMkMlMEEpJTBBYXVkaW8lMjAlM0QlMjBvdXRwdXQuYXVkaW9zJTVCMCU1RC5ULmZsb2F0KCkuY3B1KCkubnVtcHkoKSUwQXNmLndyaXRlKCUyMmF1ZGlvLndhdiUyMiUyQyUyMGF1ZGlvJTJDJTIwcGlwZWxpbmUudmFlLnNhbXBsaW5nX3JhdGUp",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> soundfile <span class="hljs-keyword">as</span> sf | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Audio | |
| <span class="hljs-meta">>>> </span>pipeline = AutoPipelineForText2Audio.from_pretrained( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"stabilityai/stable-audio-open-1.0"</span>, torch_dtype=torch.float16 | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>pipeline = pipeline.to(<span class="hljs-string">"cuda"</span>) | |
| <span class="hljs-meta">>>> </span>output = pipeline( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"Generate a male voice reading a paragraph"</span>, | |
| <span class="hljs-meta">... </span> num_inference_steps=<span class="hljs-number">200</span>, | |
| <span class="hljs-meta">... </span> audio_end_in_s=<span class="hljs-number">10.0</span>, | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>audio = output.audios[<span class="hljs-number">0</span>].T.<span class="hljs-built_in">float</span>().cpu().numpy() | |
| <span class="hljs-meta">>>> </span>sf.write(<span class="hljs-string">"audio.wav"</span>, audio, pipeline.vae.sampling_rate)`,lang:"py",wrap:!1}}),{c(){a=s("p"),a.textContent=h,d=n(),g(l.$$.fragment)},l(t){a=r(t,"P",{"data-svelte-h":!0}),p(a)!=="svelte-kvfsh7"&&(a.textContent=h),d=i(t),_(l.$$.fragment,t)},m(t,u){x(t,a,u),x(t,d,u),b(l,t,u),f=!0},p:K,i(t){f||(y(l.$$.fragment,t),f=!0)},o(t){v(l.$$.fragment,t),f=!1},d(t){t&&(c(a),c(d)),w(l,t)}}}function Ji(M){let a,h;return a=new O({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjBzb3VuZGZpbGUlMjBhcyUyMHNmJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQyQXVkaW8lMkMlMjBTdGFibGVBdWRpb1BpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMFN0YWJsZUF1ZGlvUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWF1ZGlvLW9wZW4tMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQSUwQXBpcGVfYXVkaW8lMjAlM0QlMjBBdXRvUGlwZWxpbmVGb3JUZXh0MkF1ZGlvLmZyb21fcGlwZShwaXBlKSUwQW91dHB1dCUyMCUzRCUyMHBpcGVfYXVkaW8oJTBBJTIwJTIwJTIwJTIwJTIyR2VuZXJhdGUlMjBhJTIwc291bmQlMjIlMkMlMEElMjAlMjAlMjAlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEMjAwJTJDJTBBJTIwJTIwJTIwJTIwYXVkaW9fZW5kX2luX3MlM0QxMC4wJTJDJTBBKSUwQWF1ZGlvJTIwJTNEJTIwb3V0cHV0LmF1ZGlvcyU1QjAlNUQuVC5mbG9hdCgpLmNwdSgpLm51bXB5KCklMEFzZi53cml0ZSglMjJhdWRpby53YXYlMjIlMkMlMjBhdWRpbyUyQyUyMHBpcGVfYXVkaW8udmFlLnNhbXBsaW5nX3JhdGUp",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> soundfile <span class="hljs-keyword">as</span> sf | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Audio, StableAudioPipeline | |
| <span class="hljs-meta">>>> </span>pipe = StableAudioPipeline.from_pretrained(<span class="hljs-string">"stabilityai/stable-audio-open-1.0"</span>, torch_dtype=torch.float16) | |
| <span class="hljs-meta">>>> </span>pipe_audio = AutoPipelineForText2Audio.from_pipe(pipe) | |
| <span class="hljs-meta">>>> </span>output = pipe_audio( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"Generate a sound"</span>, | |
| <span class="hljs-meta">... </span> num_inference_steps=<span class="hljs-number">200</span>, | |
| <span class="hljs-meta">... </span> audio_end_in_s=<span class="hljs-number">10.0</span>, | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span>audio = output.audios[<span class="hljs-number">0</span>].T.<span class="hljs-built_in">float</span>().cpu().numpy() | |
| <span class="hljs-meta">>>> </span>sf.write(<span class="hljs-string">"audio.wav"</span>, audio, pipe_audio.vae.sampling_rate)`,lang:"py",wrap:!1}}),{c(){g(a.$$.fragment)},l(d){_(a.$$.fragment,d)},m(d,l){b(a,d,l),h=!0},p:K,i(d){h||(y(a.$$.fragment,d),h=!0)},o(d){v(a.$$.fragment,d),h=!1},d(d){w(a,d)}}}function Zi(M){let a,h,d,l,f,t,u,At,me,un="The <code>AutoPipeline</code> is designed to make it easy to load a checkpoint for a task without needing to know the specific pipeline class. Based on the task, the <code>AutoPipeline</code> automatically retrieves the correct pipeline class from the checkpoint <code>model_index.json</code> file.",Jt,ee,hn='<p>Check out the <a href="../../tutorials/autopipeline">AutoPipeline</a> tutorial to learn how to use this API!</p>',Zt,fe,Gt,C,ue,qt,Je,gn=`<a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image">AutoPipelineForText2Image</a> is a generic pipeline class that instantiates a text-to-image pipeline class. The | |
| specific underlying pipeline class is automatically selected from either the | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Image.from_pipe">from_pipe()</a> methods.`,Et,Ze,_n="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Yt,Ge,bn="Class attributes:",zt,We,yn=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the | |
| diffusion pipeline’s components.</li>`,Dt,T,he,Nt,Be,vn="Instantiates a text-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",Kt,He,wn="The from_pretrained() method takes care of returning the correct pipeline class instance by:",Ot,Re,xn=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its | |
| config object</li> <li>Find the text-to-image pipeline linked to the pipeline class using pattern matching on pipeline class | |
| name.</li>`,eo,Le,Mn='If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_13896/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetPipeline">StableDiffusionControlNetPipeline</a> object.',to,Se,Tn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",oo,te,no,ge,$n=`<p>> To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in | |
| with <code>hf > auth login</code>.</p>`,io,oe,ao,L,_e,so,Xe,kn="Instantiates a text-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",ro,Ve,In=`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.`,lo,Qe,Un=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating | |
| additional memory.`,po,qe,jn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",co,ne,Wt,be,Bt,P,ye,mo,Ee,Cn=`<a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image">AutoPipelineForImage2Image</a> is a generic pipeline class that instantiates an image-to-image pipeline class. The | |
| specific underlying pipeline class is automatically selected from either the | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForImage2Image.from_pipe">from_pipe()</a> methods.`,fo,Ye,Pn="This class cannot be instantiated using <code>__init__()</code> (throws an error).",uo,ze,Fn="Class attributes:",ho,De,An=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the | |
| diffusion pipeline’s components.</li>`,go,$,ve,_o,Ne,Jn="Instantiates a image-to-image Pytorch diffusion pipeline from pretrained pipeline weight.",bo,Ke,Zn="The from_pretrained() method takes care of returning the correct pipeline class instance by:",yo,Oe,Gn=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its | |
| config object</li> <li>Find the image-to-image pipeline linked to the pipeline class using pattern matching on pipeline class | |
| name.</li>`,vo,et,Wn=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_13896/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetImg2ImgPipeline">StableDiffusionControlNetImg2ImgPipeline</a> | |
| object.`,wo,tt,Bn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",xo,ie,Mo,we,Hn=`<p>> To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in | |
| with <code>hf > auth login</code>.</p>`,To,ae,$o,S,xe,ko,ot,Rn="Instantiates a image-to-image Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",Io,nt,Ln=`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.`,Uo,it,Sn=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating | |
| additional memory.`,jo,at,Xn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Co,se,Ht,Me,Rt,F,Te,Po,st,Vn=`<a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting">AutoPipelineForInpainting</a> is a generic pipeline class that instantiates an inpainting pipeline class. The | |
| specific underlying pipeline class is automatically selected from either the | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForInpainting.from_pipe">from_pipe()</a> methods.`,Fo,rt,Qn="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Ao,lt,qn="Class attributes:",Jo,dt,En=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the | |
| diffusion pipeline’s components.</li>`,Zo,k,$e,Go,pt,Yn="Instantiates a inpainting Pytorch diffusion pipeline from pretrained pipeline weight.",Wo,ct,zn="The from_pretrained() method takes care of returning the correct pipeline class instance by:",Bo,mt,Dn=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its | |
| config object</li> <li>Find the inpainting pipeline linked to the pipeline class using pattern matching on pipeline class name.</li>`,Ho,ft,Nn=`If a <code>controlnet</code> argument is passed, it will instantiate a <a href="/docs/diffusers/pr_13896/en/api/pipelines/controlnet#diffusers.StableDiffusionControlNetInpaintPipeline">StableDiffusionControlNetInpaintPipeline</a> | |
| object.`,Ro,ut,Kn="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",Lo,re,So,ke,On=`<p>> To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in | |
| with <code>hf > auth login</code>.</p>`,Xo,le,Vo,X,Ie,Qo,ht,ei="Instantiates a inpainting Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",qo,gt,ti=`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.`,Eo,_t,oi=`All the modules the pipeline class contain will be used to initialize the new pipeline without reallocating | |
| additional memory.`,Yo,bt,ni="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",zo,de,Lt,Ue,St,A,je,Do,yt,ii=`<a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Audio">AutoPipelineForText2Audio</a> is a generic pipeline class that instantiates a text-to-audio pipeline class. The | |
| specific underlying pipeline class is automatically selected from either the | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Audio.from_pretrained">from_pretrained()</a> or <a href="/docs/diffusers/pr_13896/en/api/pipelines/auto_pipeline#diffusers.AutoPipelineForText2Audio.from_pipe">from_pipe()</a> methods.`,No,vt,ai="This class cannot be instantiated using <code>__init__()</code> (throws an error).",Ko,wt,si="Class attributes:",Oo,xt,ri=`<li><strong>config_name</strong> (<code>str</code>) — The configuration filename that stores the class and module names of all the | |
| diffusion pipeline’s components.</li>`,en,Z,Ce,tn,Mt,li="Instantiates a text-to-audio Pytorch diffusion pipeline from pretrained pipeline weight.",on,Tt,di="The from_pretrained() method takes care of returning the correct pipeline class instance by:",nn,$t,pi=`<li>Detect the pipeline class of the pretrained_model_or_path based on the _class_name property of its | |
| config object</li> <li>Find the text-to-audio pipeline linked to the pipeline class using pattern matching on pipeline class | |
| name.</li>`,an,kt,ci="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",sn,Pe,mi=`<p>> To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated</a> models, log-in | |
| with <code>hf > auth login</code>.</p>`,rn,pe,ln,V,Fe,dn,It,fi="Instantiates a text-to-audio Pytorch diffusion pipeline from another instantiated diffusion pipeline class.",pn,Ut,ui=`The from_pipe() method takes care of returning the correct pipeline class instance by finding the text-to-audio | |
| pipeline linked to the pipeline class using pattern matching on pipeline class name.`,cn,jt,hi=`All the modules the pipeline contains will be used to initialize the new pipeline without reallocating | |
| additional memory.`,mn,Ct,gi="The pipeline is set in evaluation mode (<code>model.eval()</code>) by default.",fn,ce,Xt,Ae,Vt,Pt,Qt;return f=new xi({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),u=new Ft({props:{title:"AutoPipeline",local:"autopipeline",headingTag:"h1"}}),fe=new Ft({props:{title:"AutoPipelineForText2Image",local:"diffusers.AutoPipelineForText2Image",headingTag:"h2"}}),ue=new D({props:{name:"class diffusers.AutoPipelineForText2Image",anchor:"diffusers.AutoPipelineForText2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L361"}}),he=new D({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForText2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.pretrained_model_or_path",description:`<strong>pretrained_model_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline | |
| hosted on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights | |
| saved using | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li> | |
| </ul>`,name:"pretrained_model_or_path"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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>str | os.PathLike</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</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>) — | |
| 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>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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>"main"</code>) — | |
| 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 🤗 Diffusers version when loading a | |
| custom pipeline from GitHub, otherwise it defaults to <code>"main"</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>) — | |
| Mirror source to resolve accessibility issues if you’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, int | str | torch.device]</code>, <em>optional</em>) — | |
| A map that specifies where each submodule should go. It doesn’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="auto"</code> to have 🤗 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>) — | |
| 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>) — | |
| The path to offload weights if device_map contains the value <code>"disk"</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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 >= 1.9.0 else <code>False</code>) — | |
| 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 >= 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>) — | |
| If set to <code>None</code>, the safetensors weights are downloaded if they’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>) — | |
| 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>) — | |
| Load weights from a specified variant filename such as <code>"fp16"</code> or <code>"ema"</code>. This is ignored when | |
| loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L386"}}),te=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example",$$slots:{default:[Ti]},$$scope:{ctx:M}}}),oe=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pretrained.example-2",$$slots:{default:[$i]},$$scope:{ctx:M}}}),_e=new D({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>) — | |
| an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L534"}}),ne=new N({props:{anchor:"diffusers.AutoPipelineForText2Image.from_pipe.example",$$slots:{default:[ki]},$$scope:{ctx:M}}}),be=new Ft({props:{title:"AutoPipelineForImage2Image",local:"diffusers.AutoPipelineForImage2Image",headingTag:"h2"}}),ye=new D({props:{name:"class diffusers.AutoPipelineForImage2Image",anchor:"diffusers.AutoPipelineForImage2Image",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L651"}}),ve=new D({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.pretrained_model_or_path",description:`<strong>pretrained_model_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline | |
| hosted on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights | |
| saved using | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li> | |
| </ul>`,name:"pretrained_model_or_path"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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>str | os.PathLike</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</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>) — | |
| 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>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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>"main"</code>) — | |
| 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 🤗 Diffusers version when loading a | |
| custom pipeline from GitHub, otherwise it defaults to <code>"main"</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>) — | |
| Mirror source to resolve accessibility issues if you’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, int | str | torch.device]</code>, <em>optional</em>) — | |
| A map that specifies where each submodule should go. It doesn’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="auto"</code> to have 🤗 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>) — | |
| 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>) — | |
| The path to offload weights if device_map contains the value <code>"disk"</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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 >= 1.9.0 else <code>False</code>) — | |
| 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 >= 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>) — | |
| If set to <code>None</code>, the safetensors weights are downloaded if they’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>) — | |
| 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>) — | |
| Load weights from a specified variant filename such as <code>"fp16"</code> or <code>"ema"</code>. This is ignored when | |
| loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L676"}}),ie=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example",$$slots:{default:[Ii]},$$scope:{ctx:M}}}),ae=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pretrained.example-2",$$slots:{default:[Ui]},$$scope:{ctx:M}}}),xe=new D({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>) — | |
| an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L835"}}),se=new N({props:{anchor:"diffusers.AutoPipelineForImage2Image.from_pipe.example",$$slots:{default:[ji]},$$scope:{ctx:M}}}),Me=new Ft({props:{title:"AutoPipelineForInpainting",local:"diffusers.AutoPipelineForInpainting",headingTag:"h2"}}),Te=new D({props:{name:"class diffusers.AutoPipelineForInpainting",anchor:"diffusers.AutoPipelineForInpainting",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L957"}}),$e=new D({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForInpainting.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.pretrained_model_or_path",description:`<strong>pretrained_model_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>repo id</em> (for example <code>CompVis/ldm-text2im-large-256</code>) of a pretrained pipeline | |
| hosted on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights | |
| saved using | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li> | |
| </ul>`,name:"pretrained_model_or_path"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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>str | os.PathLike</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</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>) — | |
| 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>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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>"main"</code>) — | |
| 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 🤗 Diffusers version when loading a | |
| custom pipeline from GitHub, otherwise it defaults to <code>"main"</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>) — | |
| Mirror source to resolve accessibility issues if you’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, int | str | torch.device]</code>, <em>optional</em>) — | |
| A map that specifies where each submodule should go. It doesn’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="auto"</code> to have 🤗 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>) — | |
| 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>) — | |
| The path to offload weights if device_map contains the value <code>"disk"</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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 >= 1.9.0 else <code>False</code>) — | |
| 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 >= 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>) — | |
| If set to <code>None</code>, the safetensors weights are downloaded if they’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>) — | |
| 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>) — | |
| Load weights from a specified variant filename such as <code>"fp16"</code> or <code>"ema"</code>. This is ignored when | |
| loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L982"}}),re=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example",$$slots:{default:[Ci]},$$scope:{ctx:M}}}),le=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pretrained.example-2",$$slots:{default:[Pi]},$$scope:{ctx:M}}}),Ie=new D({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>) — | |
| an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L1138"}}),de=new N({props:{anchor:"diffusers.AutoPipelineForInpainting.from_pipe.example",$$slots:{default:[Fi]},$$scope:{ctx:M}}}),Ue=new Ft({props:{title:"AutoPipelineForText2Audio",local:"diffusers.AutoPipelineForText2Audio",headingTag:"h2"}}),je=new D({props:{name:"class diffusers.AutoPipelineForText2Audio",anchor:"diffusers.AutoPipelineForText2Audio",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L1257"}}),Ce=new D({props:{name:"from_pretrained",anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained",parameters:[{name:"pretrained_model_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.pretrained_model_or_path",description:`<strong>pretrained_model_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>repo id</em> (for example <code>stabilityai/stable-audio-open-1.0</code>) of a pretrained | |
| pipeline hosted on the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_pipeline_directory/</code>) containing pipeline weights | |
| saved using | |
| <a href="/docs/diffusers/pr_13896/en/api/pipelines/overview#diffusers.DiffusionPipeline.save_pretrained">save_pretrained()</a>.</li> | |
| </ul>`,name:"pretrained_model_or_path"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) — | |
| Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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.AutoPipelineForText2Audio.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str | os.PathLike</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.output_loading_info(bool,",description:`<strong>output_loading_info(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info(bool,"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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.AutoPipelineForText2Audio.from_pretrained.custom_revision",description:`<strong>custom_revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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 🤗 Diffusers version when loading a | |
| custom pipeline from GitHub, otherwise it defaults to <code>"main"</code> when loading from the Hub.`,name:"custom_revision"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) — | |
| Mirror source to resolve accessibility issues if you’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.AutoPipelineForText2Audio.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>dict[str, int | str | torch.device]</code>, <em>optional</em>) — | |
| A map that specifies where each submodule should go. It doesn’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="auto"</code> to have 🤗 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.AutoPipelineForText2Audio.from_pretrained.max_memory",description:`<strong>max_memory</strong> (<code>Dict</code>, <em>optional</em>) — | |
| 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.AutoPipelineForText2Audio.from_pretrained.offload_folder",description:`<strong>offload_folder</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) — | |
| The path to offload weights if device_map contains the value <code>"disk"</code>.`,name:"offload_folder"},{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.offload_state_dict",description:`<strong>offload_state_dict</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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.AutoPipelineForText2Audio.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 >= 1.9.0 else <code>False</code>) — | |
| 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 >= 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.AutoPipelineForText2Audio.from_pretrained.use_safetensors",description:`<strong>use_safetensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) — | |
| If set to <code>None</code>, the safetensors weights are downloaded if they’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.AutoPipelineForText2Audio.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) — | |
| 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.AutoPipelineForText2Audio.from_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) — | |
| Load weights from a specified variant filename such as <code>"fp16"</code> or <code>"ema"</code>. This is ignored when | |
| loading <code>from_flax</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L1282"}}),pe=new N({props:{anchor:"diffusers.AutoPipelineForText2Audio.from_pretrained.example",$$slots:{default:[Ai]},$$scope:{ctx:M}}}),Fe=new D({props:{name:"from_pipe",anchor:"diffusers.AutoPipelineForText2Audio.from_pipe",parameters:[{name:"pipeline",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.AutoPipelineForText2Audio.from_pipe.pipeline",description:`<strong>pipeline</strong> (<code>DiffusionPipeline</code>) — | |
| an instantiated <code>DiffusionPipeline</code> object`,name:"pipeline"}],source:"https://github.com/huggingface/diffusers/blob/vr_13896/src/diffusers/pipelines/auto_pipeline.py#L1418"}}),ce=new N({props:{anchor:"diffusers.AutoPipelineForText2Audio.from_pipe.example",$$slots:{default:[Ji]},$$scope:{ctx:M}}}),Ae=new Mi({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/auto_pipeline.md"}}),{c(){a=s("meta"),h=n(),d=s("p"),l=n(),g(f.$$.fragment),t=n(),g(u.$$.fragment),At=n(),me=s("p"),me.innerHTML=un,Jt=n(),ee=s("blockquote"),ee.innerHTML=hn,Zt=n(),g(fe.$$.fragment),Gt=n(),C=s("div"),g(ue.$$.fragment),qt=n(),Je=s("p"),Je.innerHTML=gn,Et=n(),Ze=s("p"),Ze.innerHTML=_n,Yt=n(),Ge=s("p"),Ge.textContent=bn,zt=n(),We=s("ul"),We.innerHTML=yn,Dt=n(),T=s("div"),g(he.$$.fragment),Nt=n(),Be=s("p"),Be.textContent=vn,Kt=n(),He=s("p"),He.textContent=wn,Ot=n(),Re=s("ol"),Re.innerHTML=xn,eo=n(),Le=s("p"),Le.innerHTML=Mn,to=n(),Se=s("p"),Se.innerHTML=Tn,oo=n(),g(te.$$.fragment),no=n(),ge=s("blockquote"),ge.innerHTML=$n,io=n(),g(oe.$$.fragment),ao=n(),L=s("div"),g(_e.$$.fragment),so=n(),Xe=s("p"),Xe.textContent=kn,ro=n(),Ve=s("p"),Ve.textContent=In,lo=n(),Qe=s("p"),Qe.textContent=Un,po=n(),qe=s("p"),qe.innerHTML=jn,co=n(),g(ne.$$.fragment),Wt=n(),g(be.$$.fragment),Bt=n(),P=s("div"),g(ye.$$.fragment),mo=n(),Ee=s("p"),Ee.innerHTML=Cn,fo=n(),Ye=s("p"),Ye.innerHTML=Pn,uo=n(),ze=s("p"),ze.textContent=Fn,ho=n(),De=s("ul"),De.innerHTML=An,go=n(),$=s("div"),g(ve.$$.fragment),_o=n(),Ne=s("p"),Ne.textContent=Jn,bo=n(),Ke=s("p"),Ke.textContent=Zn,yo=n(),Oe=s("ol"),Oe.innerHTML=Gn,vo=n(),et=s("p"),et.innerHTML=Wn,wo=n(),tt=s("p"),tt.innerHTML=Bn,xo=n(),g(ie.$$.fragment),Mo=n(),we=s("blockquote"),we.innerHTML=Hn,To=n(),g(ae.$$.fragment),$o=n(),S=s("div"),g(xe.$$.fragment),ko=n(),ot=s("p"),ot.textContent=Rn,Io=n(),nt=s("p"),nt.textContent=Ln,Uo=n(),it=s("p"),it.textContent=Sn,jo=n(),at=s("p"),at.innerHTML=Xn,Co=n(),g(se.$$.fragment),Ht=n(),g(Me.$$.fragment),Rt=n(),F=s("div"),g(Te.$$.fragment),Po=n(),st=s("p"),st.innerHTML=Vn,Fo=n(),rt=s("p"),rt.innerHTML=Qn,Ao=n(),lt=s("p"),lt.textContent=qn,Jo=n(),dt=s("ul"),dt.innerHTML=En,Zo=n(),k=s("div"),g($e.$$.fragment),Go=n(),pt=s("p"),pt.textContent=Yn,Wo=n(),ct=s("p"),ct.textContent=zn,Bo=n(),mt=s("ol"),mt.innerHTML=Dn,Ho=n(),ft=s("p"),ft.innerHTML=Nn,Ro=n(),ut=s("p"),ut.innerHTML=Kn,Lo=n(),g(re.$$.fragment),So=n(),ke=s("blockquote"),ke.innerHTML=On,Xo=n(),g(le.$$.fragment),Vo=n(),X=s("div"),g(Ie.$$.fragment),Qo=n(),ht=s("p"),ht.textContent=ei,qo=n(),gt=s("p"),gt.textContent=ti,Eo=n(),_t=s("p"),_t.textContent=oi,Yo=n(),bt=s("p"),bt.innerHTML=ni,zo=n(),g(de.$$.fragment),Lt=n(),g(Ue.$$.fragment),St=n(),A=s("div"),g(je.$$.fragment),Do=n(),yt=s("p"),yt.innerHTML=ii,No=n(),vt=s("p"),vt.innerHTML=ai,Ko=n(),wt=s("p"),wt.textContent=si,Oo=n(),xt=s("ul"),xt.innerHTML=ri,en=n(),Z=s("div"),g(Ce.$$.fragment),tn=n(),Mt=s("p"),Mt.textContent=li,on=n(),Tt=s("p"),Tt.textContent=di,nn=n(),$t=s("ol"),$t.innerHTML=pi,an=n(),kt=s("p"),kt.innerHTML=ci,sn=n(),Pe=s("blockquote"),Pe.innerHTML=mi,rn=n(),g(pe.$$.fragment),ln=n(),V=s("div"),g(Fe.$$.fragment),dn=n(),It=s("p"),It.textContent=fi,pn=n(),Ut=s("p"),Ut.textContent=ui,cn=n(),jt=s("p"),jt.textContent=hi,mn=n(),Ct=s("p"),Ct.innerHTML=gi,fn=n(),g(ce.$$.fragment),Xt=n(),g(Ae.$$.fragment),Vt=n(),Pt=s("p"),this.h()},l(e){const m=wi("svelte-u9bgzb",document.head);a=r(m,"META",{name:!0,content:!0}),m.forEach(c),h=i(e),d=r(e,"P",{}),Y(d).forEach(c),l=i(e),_(f.$$.fragment,e),t=i(e),_(u.$$.fragment,e),At=i(e),me=r(e,"P",{"data-svelte-h":!0}),p(me)!=="svelte-10ft6k8"&&(me.innerHTML=un),Jt=i(e),ee=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(ee)!=="svelte-1riqrnp"&&(ee.innerHTML=hn),Zt=i(e),_(fe.$$.fragment,e),Gt=i(e),C=r(e,"DIV",{class:!0});var G=Y(C);_(ue.$$.fragment,G),qt=i(G),Je=r(G,"P",{"data-svelte-h":!0}),p(Je)!=="svelte-nv711z"&&(Je.innerHTML=gn),Et=i(G),Ze=r(G,"P",{"data-svelte-h":!0}),p(Ze)!=="svelte-13laq45"&&(Ze.innerHTML=_n),Yt=i(G),Ge=r(G,"P",{"data-svelte-h":!0}),p(Ge)!=="svelte-wz8va1"&&(Ge.textContent=bn),zt=i(G),We=r(G,"UL",{"data-svelte-h":!0}),p(We)!=="svelte-56flce"&&(We.innerHTML=yn),Dt=i(G),T=r(G,"DIV",{class:!0});var I=Y(T);_(he.$$.fragment,I),Nt=i(I),Be=r(I,"P",{"data-svelte-h":!0}),p(Be)!=="svelte-73gcl"&&(Be.textContent=vn),Kt=i(I),He=r(I,"P",{"data-svelte-h":!0}),p(He)!=="svelte-3eelph"&&(He.textContent=wn),Ot=i(I),Re=r(I,"OL",{"data-svelte-h":!0}),p(Re)!=="svelte-rrjsq6"&&(Re.innerHTML=xn),eo=i(I),Le=r(I,"P",{"data-svelte-h":!0}),p(Le)!=="svelte-3boz2d"&&(Le.innerHTML=Mn),to=i(I),Se=r(I,"P",{"data-svelte-h":!0}),p(Se)!=="svelte-1p5vgmd"&&(Se.innerHTML=Tn),oo=i(I),_(te.$$.fragment,I),no=i(I),ge=r(I,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(ge)!=="svelte-zg8xkk"&&(ge.innerHTML=$n),io=i(I),_(oe.$$.fragment,I),I.forEach(c),ao=i(G),L=r(G,"DIV",{class:!0});var Q=Y(L);_(_e.$$.fragment,Q),so=i(Q),Xe=r(Q,"P",{"data-svelte-h":!0}),p(Xe)!=="svelte-6rlsyn"&&(Xe.textContent=kn),ro=i(Q),Ve=r(Q,"P",{"data-svelte-h":!0}),p(Ve)!=="svelte-1im6dea"&&(Ve.textContent=In),lo=i(Q),Qe=r(Q,"P",{"data-svelte-h":!0}),p(Qe)!=="svelte-1u0ofey"&&(Qe.textContent=Un),po=i(Q),qe=r(Q,"P",{"data-svelte-h":!0}),p(qe)!=="svelte-1p5vgmd"&&(qe.innerHTML=jn),co=i(Q),_(ne.$$.fragment,Q),Q.forEach(c),G.forEach(c),Wt=i(e),_(be.$$.fragment,e),Bt=i(e),P=r(e,"DIV",{class:!0});var W=Y(P);_(ye.$$.fragment,W),mo=i(W),Ee=r(W,"P",{"data-svelte-h":!0}),p(Ee)!=="svelte-x0ztq3"&&(Ee.innerHTML=Cn),fo=i(W),Ye=r(W,"P",{"data-svelte-h":!0}),p(Ye)!=="svelte-13laq45"&&(Ye.innerHTML=Pn),uo=i(W),ze=r(W,"P",{"data-svelte-h":!0}),p(ze)!=="svelte-wz8va1"&&(ze.textContent=Fn),ho=i(W),De=r(W,"UL",{"data-svelte-h":!0}),p(De)!=="svelte-56flce"&&(De.innerHTML=An),go=i(W),$=r(W,"DIV",{class:!0});var U=Y($);_(ve.$$.fragment,U),_o=i(U),Ne=r(U,"P",{"data-svelte-h":!0}),p(Ne)!=="svelte-ehfuat"&&(Ne.textContent=Jn),bo=i(U),Ke=r(U,"P",{"data-svelte-h":!0}),p(Ke)!=="svelte-3eelph"&&(Ke.textContent=Zn),yo=i(U),Oe=r(U,"OL",{"data-svelte-h":!0}),p(Oe)!=="svelte-1pj7v4w"&&(Oe.innerHTML=Gn),vo=i(U),et=r(U,"P",{"data-svelte-h":!0}),p(et)!=="svelte-15zfqkv"&&(et.innerHTML=Wn),wo=i(U),tt=r(U,"P",{"data-svelte-h":!0}),p(tt)!=="svelte-1p5vgmd"&&(tt.innerHTML=Bn),xo=i(U),_(ie.$$.fragment,U),Mo=i(U),we=r(U,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(we)!=="svelte-zg8xkk"&&(we.innerHTML=Hn),To=i(U),_(ae.$$.fragment,U),U.forEach(c),$o=i(W),S=r(W,"DIV",{class:!0});var q=Y(S);_(xe.$$.fragment,q),ko=i(q),ot=r(q,"P",{"data-svelte-h":!0}),p(ot)!=="svelte-10ckmdb"&&(ot.textContent=Rn),Io=i(q),nt=r(q,"P",{"data-svelte-h":!0}),p(nt)!=="svelte-3o5yim"&&(nt.textContent=Ln),Uo=i(q),it=r(q,"P",{"data-svelte-h":!0}),p(it)!=="svelte-1u0ofey"&&(it.textContent=Sn),jo=i(q),at=r(q,"P",{"data-svelte-h":!0}),p(at)!=="svelte-1p5vgmd"&&(at.innerHTML=Xn),Co=i(q),_(se.$$.fragment,q),q.forEach(c),W.forEach(c),Ht=i(e),_(Me.$$.fragment,e),Rt=i(e),F=r(e,"DIV",{class:!0});var B=Y(F);_(Te.$$.fragment,B),Po=i(B),st=r(B,"P",{"data-svelte-h":!0}),p(st)!=="svelte-skzli1"&&(st.innerHTML=Vn),Fo=i(B),rt=r(B,"P",{"data-svelte-h":!0}),p(rt)!=="svelte-13laq45"&&(rt.innerHTML=Qn),Ao=i(B),lt=r(B,"P",{"data-svelte-h":!0}),p(lt)!=="svelte-wz8va1"&&(lt.textContent=qn),Jo=i(B),dt=r(B,"UL",{"data-svelte-h":!0}),p(dt)!=="svelte-56flce"&&(dt.innerHTML=En),Zo=i(B),k=r(B,"DIV",{class:!0});var j=Y(k);_($e.$$.fragment,j),Go=i(j),pt=r(j,"P",{"data-svelte-h":!0}),p(pt)!=="svelte-1fjqdar"&&(pt.textContent=Yn),Wo=i(j),ct=r(j,"P",{"data-svelte-h":!0}),p(ct)!=="svelte-3eelph"&&(ct.textContent=zn),Bo=i(j),mt=r(j,"OL",{"data-svelte-h":!0}),p(mt)!=="svelte-fu4x5s"&&(mt.innerHTML=Dn),Ho=i(j),ft=r(j,"P",{"data-svelte-h":!0}),p(ft)!=="svelte-x2v45p"&&(ft.innerHTML=Nn),Ro=i(j),ut=r(j,"P",{"data-svelte-h":!0}),p(ut)!=="svelte-1p5vgmd"&&(ut.innerHTML=Kn),Lo=i(j),_(re.$$.fragment,j),So=i(j),ke=r(j,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(ke)!=="svelte-zg8xkk"&&(ke.innerHTML=On),Xo=i(j),_(le.$$.fragment,j),j.forEach(c),Vo=i(B),X=r(B,"DIV",{class:!0});var E=Y(X);_(Ie.$$.fragment,E),Qo=i(E),ht=r(E,"P",{"data-svelte-h":!0}),p(ht)!=="svelte-1ass5kx"&&(ht.textContent=ei),qo=i(E),gt=r(E,"P",{"data-svelte-h":!0}),p(gt)!=="svelte-1jvxxhk"&&(gt.textContent=ti),Eo=i(E),_t=r(E,"P",{"data-svelte-h":!0}),p(_t)!=="svelte-16h1ngl"&&(_t.textContent=oi),Yo=i(E),bt=r(E,"P",{"data-svelte-h":!0}),p(bt)!=="svelte-1p5vgmd"&&(bt.innerHTML=ni),zo=i(E),_(de.$$.fragment,E),E.forEach(c),B.forEach(c),Lt=i(e),_(Ue.$$.fragment,e),St=i(e),A=r(e,"DIV",{class:!0});var H=Y(A);_(je.$$.fragment,H),Do=i(H),yt=r(H,"P",{"data-svelte-h":!0}),p(yt)!=="svelte-n6imza"&&(yt.innerHTML=ii),No=i(H),vt=r(H,"P",{"data-svelte-h":!0}),p(vt)!=="svelte-13laq45"&&(vt.innerHTML=ai),Ko=i(H),wt=r(H,"P",{"data-svelte-h":!0}),p(wt)!=="svelte-wz8va1"&&(wt.textContent=si),Oo=i(H),xt=r(H,"UL",{"data-svelte-h":!0}),p(xt)!=="svelte-56flce"&&(xt.innerHTML=ri),en=i(H),Z=r(H,"DIV",{class:!0});var R=Y(Z);_(Ce.$$.fragment,R),tn=i(R),Mt=r(R,"P",{"data-svelte-h":!0}),p(Mt)!=="svelte-j9by74"&&(Mt.textContent=li),on=i(R),Tt=r(R,"P",{"data-svelte-h":!0}),p(Tt)!=="svelte-3eelph"&&(Tt.textContent=di),nn=i(R),$t=r(R,"OL",{"data-svelte-h":!0}),p($t)!=="svelte-zpyle7"&&($t.innerHTML=pi),an=i(R),kt=r(R,"P",{"data-svelte-h":!0}),p(kt)!=="svelte-1p5vgmd"&&(kt.innerHTML=ci),sn=i(R),Pe=r(R,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(Pe)!=="svelte-zg8xkk"&&(Pe.innerHTML=mi),rn=i(R),_(pe.$$.fragment,R),R.forEach(c),ln=i(H),V=r(H,"DIV",{class:!0});var z=Y(V);_(Fe.$$.fragment,z),dn=i(z),It=r(z,"P",{"data-svelte-h":!0}),p(It)!=="svelte-1j2uyea"&&(It.textContent=fi),pn=i(z),Ut=r(z,"P",{"data-svelte-h":!0}),p(Ut)!=="svelte-1w2x0n5"&&(Ut.textContent=ui),cn=i(z),jt=r(z,"P",{"data-svelte-h":!0}),p(jt)!=="svelte-1u0ofey"&&(jt.textContent=hi),mn=i(z),Ct=r(z,"P",{"data-svelte-h":!0}),p(Ct)!=="svelte-1p5vgmd"&&(Ct.innerHTML=gi),fn=i(z),_(ce.$$.fragment,z),z.forEach(c),H.forEach(c),Xt=i(e),_(Ae.$$.fragment,e),Vt=i(e),Pt=r(e,"P",{}),Y(Pt).forEach(c),this.h()},h(){J(a,"name","hf:doc:metadata"),J(a,"content",Gi),J(ee,"class","tip"),J(ge,"class","tip"),J(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(we,"class","tip"),J($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ke,"class","tip"),J(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(Pe,"class","tip"),J(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(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(e,m){o(document.head,a),x(e,h,m),x(e,d,m),x(e,l,m),b(f,e,m),x(e,t,m),b(u,e,m),x(e,At,m),x(e,me,m),x(e,Jt,m),x(e,ee,m),x(e,Zt,m),b(fe,e,m),x(e,Gt,m),x(e,C,m),b(ue,C,null),o(C,qt),o(C,Je),o(C,Et),o(C,Ze),o(C,Yt),o(C,Ge),o(C,zt),o(C,We),o(C,Dt),o(C,T),b(he,T,null),o(T,Nt),o(T,Be),o(T,Kt),o(T,He),o(T,Ot),o(T,Re),o(T,eo),o(T,Le),o(T,to),o(T,Se),o(T,oo),b(te,T,null),o(T,no),o(T,ge),o(T,io),b(oe,T,null),o(C,ao),o(C,L),b(_e,L,null),o(L,so),o(L,Xe),o(L,ro),o(L,Ve),o(L,lo),o(L,Qe),o(L,po),o(L,qe),o(L,co),b(ne,L,null),x(e,Wt,m),b(be,e,m),x(e,Bt,m),x(e,P,m),b(ye,P,null),o(P,mo),o(P,Ee),o(P,fo),o(P,Ye),o(P,uo),o(P,ze),o(P,ho),o(P,De),o(P,go),o(P,$),b(ve,$,null),o($,_o),o($,Ne),o($,bo),o($,Ke),o($,yo),o($,Oe),o($,vo),o($,et),o($,wo),o($,tt),o($,xo),b(ie,$,null),o($,Mo),o($,we),o($,To),b(ae,$,null),o(P,$o),o(P,S),b(xe,S,null),o(S,ko),o(S,ot),o(S,Io),o(S,nt),o(S,Uo),o(S,it),o(S,jo),o(S,at),o(S,Co),b(se,S,null),x(e,Ht,m),b(Me,e,m),x(e,Rt,m),x(e,F,m),b(Te,F,null),o(F,Po),o(F,st),o(F,Fo),o(F,rt),o(F,Ao),o(F,lt),o(F,Jo),o(F,dt),o(F,Zo),o(F,k),b($e,k,null),o(k,Go),o(k,pt),o(k,Wo),o(k,ct),o(k,Bo),o(k,mt),o(k,Ho),o(k,ft),o(k,Ro),o(k,ut),o(k,Lo),b(re,k,null),o(k,So),o(k,ke),o(k,Xo),b(le,k,null),o(F,Vo),o(F,X),b(Ie,X,null),o(X,Qo),o(X,ht),o(X,qo),o(X,gt),o(X,Eo),o(X,_t),o(X,Yo),o(X,bt),o(X,zo),b(de,X,null),x(e,Lt,m),b(Ue,e,m),x(e,St,m),x(e,A,m),b(je,A,null),o(A,Do),o(A,yt),o(A,No),o(A,vt),o(A,Ko),o(A,wt),o(A,Oo),o(A,xt),o(A,en),o(A,Z),b(Ce,Z,null),o(Z,tn),o(Z,Mt),o(Z,on),o(Z,Tt),o(Z,nn),o(Z,$t),o(Z,an),o(Z,kt),o(Z,sn),o(Z,Pe),o(Z,rn),b(pe,Z,null),o(A,ln),o(A,V),b(Fe,V,null),o(V,dn),o(V,It),o(V,pn),o(V,Ut),o(V,cn),o(V,jt),o(V,mn),o(V,Ct),o(V,fn),b(ce,V,null),x(e,Xt,m),b(Ae,e,m),x(e,Vt,m),x(e,Pt,m),Qt=!0},p(e,[m]){const G={};m&2&&(G.$$scope={dirty:m,ctx:e}),te.$set(G);const I={};m&2&&(I.$$scope={dirty:m,ctx:e}),oe.$set(I);const Q={};m&2&&(Q.$$scope={dirty:m,ctx:e}),ne.$set(Q);const W={};m&2&&(W.$$scope={dirty:m,ctx:e}),ie.$set(W);const U={};m&2&&(U.$$scope={dirty:m,ctx:e}),ae.$set(U);const q={};m&2&&(q.$$scope={dirty:m,ctx:e}),se.$set(q);const B={};m&2&&(B.$$scope={dirty:m,ctx:e}),re.$set(B);const j={};m&2&&(j.$$scope={dirty:m,ctx:e}),le.$set(j);const E={};m&2&&(E.$$scope={dirty:m,ctx:e}),de.$set(E);const H={};m&2&&(H.$$scope={dirty:m,ctx:e}),pe.$set(H);const R={};m&2&&(R.$$scope={dirty:m,ctx:e}),ce.$set(R)},i(e){Qt||(y(f.$$.fragment,e),y(u.$$.fragment,e),y(fe.$$.fragment,e),y(ue.$$.fragment,e),y(he.$$.fragment,e),y(te.$$.fragment,e),y(oe.$$.fragment,e),y(_e.$$.fragment,e),y(ne.$$.fragment,e),y(be.$$.fragment,e),y(ye.$$.fragment,e),y(ve.$$.fragment,e),y(ie.$$.fragment,e),y(ae.$$.fragment,e),y(xe.$$.fragment,e),y(se.$$.fragment,e),y(Me.$$.fragment,e),y(Te.$$.fragment,e),y($e.$$.fragment,e),y(re.$$.fragment,e),y(le.$$.fragment,e),y(Ie.$$.fragment,e),y(de.$$.fragment,e),y(Ue.$$.fragment,e),y(je.$$.fragment,e),y(Ce.$$.fragment,e),y(pe.$$.fragment,e),y(Fe.$$.fragment,e),y(ce.$$.fragment,e),y(Ae.$$.fragment,e),Qt=!0)},o(e){v(f.$$.fragment,e),v(u.$$.fragment,e),v(fe.$$.fragment,e),v(ue.$$.fragment,e),v(he.$$.fragment,e),v(te.$$.fragment,e),v(oe.$$.fragment,e),v(_e.$$.fragment,e),v(ne.$$.fragment,e),v(be.$$.fragment,e),v(ye.$$.fragment,e),v(ve.$$.fragment,e),v(ie.$$.fragment,e),v(ae.$$.fragment,e),v(xe.$$.fragment,e),v(se.$$.fragment,e),v(Me.$$.fragment,e),v(Te.$$.fragment,e),v($e.$$.fragment,e),v(re.$$.fragment,e),v(le.$$.fragment,e),v(Ie.$$.fragment,e),v(de.$$.fragment,e),v(Ue.$$.fragment,e),v(je.$$.fragment,e),v(Ce.$$.fragment,e),v(pe.$$.fragment,e),v(Fe.$$.fragment,e),v(ce.$$.fragment,e),v(Ae.$$.fragment,e),Qt=!1},d(e){e&&(c(h),c(d),c(l),c(t),c(At),c(me),c(Jt),c(ee),c(Zt),c(Gt),c(C),c(Wt),c(Bt),c(P),c(Ht),c(Rt),c(F),c(Lt),c(St),c(A),c(Xt),c(Vt),c(Pt)),c(a),w(f,e),w(u,e),w(fe,e),w(ue),w(he),w(te),w(oe),w(_e),w(ne),w(be,e),w(ye),w(ve),w(ie),w(ae),w(xe),w(se),w(Me,e),w(Te),w($e),w(re),w(le),w(Ie),w(de),w(Ue,e),w(je),w(Ce),w(pe),w(Fe),w(ce),w(Ae,e)}}}const Gi='{"title":"AutoPipeline","local":"autopipeline","sections":[{"title":"AutoPipelineForText2Image","local":"diffusers.AutoPipelineForText2Image","sections":[],"depth":2},{"title":"AutoPipelineForImage2Image","local":"diffusers.AutoPipelineForImage2Image","sections":[],"depth":2},{"title":"AutoPipelineForInpainting","local":"diffusers.AutoPipelineForInpainting","sections":[],"depth":2},{"title":"AutoPipelineForText2Audio","local":"diffusers.AutoPipelineForText2Audio","sections":[],"depth":2}],"depth":1}';function Wi(M){return bi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Qi extends yi{constructor(a){super(),vi(this,a,Wi,Zi,_i,{})}}export{Qi as component}; | |
Xet Storage Details
- Size:
- 86.7 kB
- Xet hash:
- 827cf86244bf646a34798767342842eb1c816ccde8bd3b5c6b026044b93ef0a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.