Buckets:

rtrm's picture
download
raw
18.2 kB
import{s as Ct,n as Mt,o as qt}from"../chunks/scheduler.53228c21.js";import{S as Tt,i as wt,e as l,s as i,c as u,h as St,a as r,d as s,b as n,f as P,g as d,j as c,k as h,l as t,m as p,n as m,t as f,o as g,p as _}from"../chunks/index.100fac89.js";import{C as Dt}from"../chunks/CopyLLMTxtMenu.733ee6d3.js";import{D as B}from"../chunks/Docstring.695f69dc.js";import{H as be,E as Et}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.0e2208d5.js";function At(at){let L,he,ge,ke,E,$e,A,ve,H,Pe,a,O,Ie,te,pt=`Base class for all Pipeline Blocks: PipelineBlock, AutoPipelineBlocks, SequentialPipelineBlocks,
LoopSequentialPipelineBlocks`,Ve,ie,ct='<a href="/docs/diffusers/pr_12849/en/api/modular_diffusers/pipeline_blocks#diffusers.ModularPipelineBlocks">ModularPipelineBlocks</a> provides method to load and save the definition of pipeline blocks.',Ne,I,ut="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",Ue,C,V,je,ne,dt=`Combines multiple lists of InputParam objects from different blocks. For duplicate inputs, updates only if
current default value is None and new default value is not None. Warns if multiple non-None default values
exist for the same input.`,ze,M,N,Ke,se,mt=`Combines multiple lists of OutputParam objects from different blocks. For duplicate outputs, keeps the first
occurrence of each output name.`,Qe,q,U,Fe,le,ft="Get all inputs and intermediates in one dictionary",We,T,j,Ge,re,gt="create a ModularPipeline, optionally accept pretrained_model_name_or_path to load from hub.",xe,z,ye,k,K,Re,oe,_t=`A Pipeline Blocks that combines multiple pipeline block classes into one. When called, it will call each block in
sequence.`,Je,ae,bt=`This class inherits from <a href="/docs/diffusers/pr_12849/en/api/modular_diffusers/pipeline_blocks#diffusers.ModularPipelineBlocks">ModularPipelineBlocks</a>. Check the superclass documentation for the generic methods the
library implements for all the pipeline blocks (such as loading or saving etc.)`,Xe,Q,ht="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",Ye,w,F,Ze,pe,kt="Creates a SequentialPipelineBlocks instance from a dictionary of blocks.",Be,W,Le,$,G,et,ce,$t=`A Pipeline blocks that combines multiple pipeline block classes into a For Loop. When called, it will call each
block in sequence.`,tt,ue,vt=`This class inherits from <a href="/docs/diffusers/pr_12849/en/api/modular_diffusers/pipeline_blocks#diffusers.ModularPipelineBlocks">ModularPipelineBlocks</a>. Check the superclass documentation for the generic methods the
library implements for all the pipeline blocks (such as loading or saving etc.)`,it,R,Pt="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",nt,S,J,st,de,xt="Creates a LoopSequentialPipelineBlocks instance from a dictionary of blocks.",Ce,X,Me,v,Y,lt,me,yt="A Pipeline Blocks that automatically selects a block to run based on the inputs.",rt,fe,Bt=`This class inherits from <a href="/docs/diffusers/pr_12849/en/api/modular_diffusers/pipeline_blocks#diffusers.ModularPipelineBlocks">ModularPipelineBlocks</a>. Check the superclass documentation for the generic methods the
library implements for all the pipeline blocks (such as loading or saving etc.)`,ot,Z,Lt="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",qe,ee,Te,_e,we;return E=new Dt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),A=new be({props:{title:"Pipeline blocks",local:"pipeline-blocks",headingTag:"h1"}}),H=new be({props:{title:"ModularPipelineBlocks",local:"diffusers.ModularPipelineBlocks",headingTag:"h2"}}),O=new B({props:{name:"class diffusers.ModularPipelineBlocks",anchor:"diffusers.ModularPipelineBlocks",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L232"}}),V=new B({props:{name:"combine_inputs",anchor:"diffusers.ModularPipelineBlocks.combine_inputs",parameters:[{name:"*named_input_lists",val:": typing.List[typing.Tuple[str, typing.List[diffusers.modular_pipelines.modular_pipeline_utils.InputParam]]]"}],parametersDescription:[{anchor:"diffusers.ModularPipelineBlocks.combine_inputs.named_input_lists",description:"<strong>named_input_lists</strong> &#x2014; List of tuples containing (block_name, input_param_list) pairs",name:"named_input_lists"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L436",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Combined list of unique InputParam objects</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>List[InputParam]</p>
`}}),N=new B({props:{name:"combine_outputs",anchor:"diffusers.ModularPipelineBlocks.combine_outputs",parameters:[{name:"*named_output_lists",val:": typing.List[typing.Tuple[str, typing.List[diffusers.modular_pipelines.modular_pipeline_utils.OutputParam]]]"}],parametersDescription:[{anchor:"diffusers.ModularPipelineBlocks.combine_outputs.named_output_lists",description:"<strong>named_output_lists</strong> &#x2014; List of tuples containing (block_name, output_param_list) pairs",name:"named_output_lists"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L479",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Combined list of unique OutputParam objects</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>List[OutputParam]</p>
`}}),U=new B({props:{name:"get_block_state",anchor:"diffusers.ModularPipelineBlocks.get_block_state",parameters:[{name:"state",val:": PipelineState"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L379"}}),j=new B({props:{name:"init_pipeline",anchor:"diffusers.ModularPipelineBlocks.init_pipeline",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L358"}}),z=new be({props:{title:"SequentialPipelineBlocks",local:"diffusers.modular_pipelines.SequentialPipelineBlocks",headingTag:"h2"}}),K=new B({props:{name:"class diffusers.modular_pipelines.SequentialPipelineBlocks",anchor:"diffusers.modular_pipelines.SequentialPipelineBlocks",parameters:[],parametersDescription:[{anchor:"diffusers.modular_pipelines.SequentialPipelineBlocks.block_classes",description:"<strong>block_classes</strong> &#x2014; List of block classes to be used",name:"block_classes"},{anchor:"diffusers.modular_pipelines.SequentialPipelineBlocks.block_names",description:"<strong>block_names</strong> &#x2014; List of prefixes for each block",name:"block_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L783"}}),F=new B({props:{name:"from_blocks_dict",anchor:"diffusers.modular_pipelines.SequentialPipelineBlocks.from_blocks_dict",parameters:[{name:"blocks_dict",val:": typing.Dict[str, typing.Any]"},{name:"description",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.SequentialPipelineBlocks.from_blocks_dict.blocks_dict",description:"<strong>blocks_dict</strong> &#x2014; Dictionary mapping block names to block classes or instances",name:"blocks_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L827",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A new SequentialPipelineBlocks instance</p>
`}}),W=new be({props:{title:"LoopSequentialPipelineBlocks",local:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks",headingTag:"h2"}}),G=new B({props:{name:"class diffusers.modular_pipelines.LoopSequentialPipelineBlocks",anchor:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks",parameters:[],parametersDescription:[{anchor:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks.block_classes",description:"<strong>block_classes</strong> &#x2014; List of block classes to be used",name:"block_classes"},{anchor:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks.block_names",description:"<strong>block_names</strong> &#x2014; List of prefixes for each block",name:"block_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1142"}}),J=new B({props:{name:"from_blocks_dict",anchor:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks.from_blocks_dict",parameters:[{name:"blocks_dict",val:": typing.Dict[str, typing.Any]"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.LoopSequentialPipelineBlocks.from_blocks_dict.blocks_dict",description:"<strong>blocks_dict</strong> &#x2014; Dictionary mapping block names to block instances",name:"blocks_dict"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1294",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A new LoopSequentialPipelineBlocks instance</p>
`}}),X=new be({props:{title:"AutoPipelineBlocks",local:"diffusers.modular_pipelines.AutoPipelineBlocks",headingTag:"h2"}}),Y=new B({props:{name:"class diffusers.modular_pipelines.AutoPipelineBlocks",anchor:"diffusers.modular_pipelines.AutoPipelineBlocks",parameters:[],parametersDescription:[{anchor:"diffusers.modular_pipelines.AutoPipelineBlocks.block_classes",description:"<strong>block_classes</strong> &#x2014; List of block classes to be used",name:"block_classes"},{anchor:"diffusers.modular_pipelines.AutoPipelineBlocks.block_names",description:"<strong>block_names</strong> &#x2014; List of prefixes for each block",name:"block_names"},{anchor:"diffusers.modular_pipelines.AutoPipelineBlocks.block_trigger_inputs",description:"<strong>block_trigger_inputs</strong> &#x2014; List of input names that trigger specific blocks, with None for default",name:"block_trigger_inputs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L526"}}),ee=new Et({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline_blocks.md"}}),{c(){L=l("meta"),he=i(),ge=l("p"),ke=i(),u(E.$$.fragment),$e=i(),u(A.$$.fragment),ve=i(),u(H.$$.fragment),Pe=i(),a=l("div"),u(O.$$.fragment),Ie=i(),te=l("p"),te.textContent=pt,Ve=i(),ie=l("p"),ie.innerHTML=ct,Ne=i(),I=l("blockquote"),I.innerHTML=ut,Ue=i(),C=l("div"),u(V.$$.fragment),je=i(),ne=l("p"),ne.textContent=dt,ze=i(),M=l("div"),u(N.$$.fragment),Ke=i(),se=l("p"),se.textContent=mt,Qe=i(),q=l("div"),u(U.$$.fragment),Fe=i(),le=l("p"),le.textContent=ft,We=i(),T=l("div"),u(j.$$.fragment),Ge=i(),re=l("p"),re.textContent=gt,xe=i(),u(z.$$.fragment),ye=i(),k=l("div"),u(K.$$.fragment),Re=i(),oe=l("p"),oe.textContent=_t,Je=i(),ae=l("p"),ae.innerHTML=bt,Xe=i(),Q=l("blockquote"),Q.innerHTML=ht,Ye=i(),w=l("div"),u(F.$$.fragment),Ze=i(),pe=l("p"),pe.textContent=kt,Be=i(),u(W.$$.fragment),Le=i(),$=l("div"),u(G.$$.fragment),et=i(),ce=l("p"),ce.textContent=$t,tt=i(),ue=l("p"),ue.innerHTML=vt,it=i(),R=l("blockquote"),R.innerHTML=Pt,nt=i(),S=l("div"),u(J.$$.fragment),st=i(),de=l("p"),de.textContent=xt,Ce=i(),u(X.$$.fragment),Me=i(),v=l("div"),u(Y.$$.fragment),lt=i(),me=l("p"),me.textContent=yt,rt=i(),fe=l("p"),fe.innerHTML=Bt,ot=i(),Z=l("blockquote"),Z.innerHTML=Lt,qe=i(),u(ee.$$.fragment),Te=i(),_e=l("p"),this.h()},l(e){const o=St("svelte-u9bgzb",document.head);L=r(o,"META",{name:!0,content:!0}),o.forEach(s),he=n(e),ge=r(e,"P",{}),P(ge).forEach(s),ke=n(e),d(E.$$.fragment,e),$e=n(e),d(A.$$.fragment,e),ve=n(e),d(H.$$.fragment,e),Pe=n(e),a=r(e,"DIV",{class:!0});var b=P(a);d(O.$$.fragment,b),Ie=n(b),te=r(b,"P",{"data-svelte-h":!0}),c(te)!=="svelte-1ybinb5"&&(te.textContent=pt),Ve=n(b),ie=r(b,"P",{"data-svelte-h":!0}),c(ie)!=="svelte-z59212"&&(ie.innerHTML=ct),Ne=n(b),I=r(b,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(I)!=="svelte-1o9sbyc"&&(I.innerHTML=ut),Ue=n(b),C=r(b,"DIV",{class:!0});var Se=P(C);d(V.$$.fragment,Se),je=n(Se),ne=r(Se,"P",{"data-svelte-h":!0}),c(ne)!=="svelte-dsbw8b"&&(ne.textContent=dt),Se.forEach(s),ze=n(b),M=r(b,"DIV",{class:!0});var De=P(M);d(N.$$.fragment,De),Ke=n(De),se=r(De,"P",{"data-svelte-h":!0}),c(se)!=="svelte-1vgldo9"&&(se.textContent=mt),De.forEach(s),Qe=n(b),q=r(b,"DIV",{class:!0});var Ee=P(q);d(U.$$.fragment,Ee),Fe=n(Ee),le=r(Ee,"P",{"data-svelte-h":!0}),c(le)!=="svelte-ns4rx6"&&(le.textContent=ft),Ee.forEach(s),We=n(b),T=r(b,"DIV",{class:!0});var Ae=P(T);d(j.$$.fragment,Ae),Ge=n(Ae),re=r(Ae,"P",{"data-svelte-h":!0}),c(re)!=="svelte-1yo5cz6"&&(re.textContent=gt),Ae.forEach(s),b.forEach(s),xe=n(e),d(z.$$.fragment,e),ye=n(e),k=r(e,"DIV",{class:!0});var x=P(k);d(K.$$.fragment,x),Re=n(x),oe=r(x,"P",{"data-svelte-h":!0}),c(oe)!=="svelte-h3uxr5"&&(oe.textContent=_t),Je=n(x),ae=r(x,"P",{"data-svelte-h":!0}),c(ae)!=="svelte-1gnv504"&&(ae.innerHTML=bt),Xe=n(x),Q=r(x,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(Q)!=="svelte-1o9sbyc"&&(Q.innerHTML=ht),Ye=n(x),w=r(x,"DIV",{class:!0});var He=P(w);d(F.$$.fragment,He),Ze=n(He),pe=r(He,"P",{"data-svelte-h":!0}),c(pe)!=="svelte-xcg3si"&&(pe.textContent=kt),He.forEach(s),x.forEach(s),Be=n(e),d(W.$$.fragment,e),Le=n(e),$=r(e,"DIV",{class:!0});var y=P($);d(G.$$.fragment,y),et=n(y),ce=r(y,"P",{"data-svelte-h":!0}),c(ce)!=="svelte-2g3rr3"&&(ce.textContent=$t),tt=n(y),ue=r(y,"P",{"data-svelte-h":!0}),c(ue)!=="svelte-1gnv504"&&(ue.innerHTML=vt),it=n(y),R=r(y,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(R)!=="svelte-1o9sbyc"&&(R.innerHTML=Pt),nt=n(y),S=r(y,"DIV",{class:!0});var Oe=P(S);d(J.$$.fragment,Oe),st=n(Oe),de=r(Oe,"P",{"data-svelte-h":!0}),c(de)!=="svelte-136wcu4"&&(de.textContent=xt),Oe.forEach(s),y.forEach(s),Ce=n(e),d(X.$$.fragment,e),Me=n(e),v=r(e,"DIV",{class:!0});var D=P(v);d(Y.$$.fragment,D),lt=n(D),me=r(D,"P",{"data-svelte-h":!0}),c(me)!=="svelte-59lz4"&&(me.textContent=yt),rt=n(D),fe=r(D,"P",{"data-svelte-h":!0}),c(fe)!=="svelte-1gnv504"&&(fe.innerHTML=Bt),ot=n(D),Z=r(D,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(Z)!=="svelte-1o9sbyc"&&(Z.innerHTML=Lt),D.forEach(s),qe=n(e),d(ee.$$.fragment,e),Te=n(e),_e=r(e,"P",{}),P(_e).forEach(s),this.h()},h(){h(L,"name","hf:doc:metadata"),h(L,"content",Ht),h(I,"class","warning"),h(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Q,"class","warning"),h(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(R,"class","warning"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Z,"class","warning"),h(v,"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,o){t(document.head,L),p(e,he,o),p(e,ge,o),p(e,ke,o),m(E,e,o),p(e,$e,o),m(A,e,o),p(e,ve,o),m(H,e,o),p(e,Pe,o),p(e,a,o),m(O,a,null),t(a,Ie),t(a,te),t(a,Ve),t(a,ie),t(a,Ne),t(a,I),t(a,Ue),t(a,C),m(V,C,null),t(C,je),t(C,ne),t(a,ze),t(a,M),m(N,M,null),t(M,Ke),t(M,se),t(a,Qe),t(a,q),m(U,q,null),t(q,Fe),t(q,le),t(a,We),t(a,T),m(j,T,null),t(T,Ge),t(T,re),p(e,xe,o),m(z,e,o),p(e,ye,o),p(e,k,o),m(K,k,null),t(k,Re),t(k,oe),t(k,Je),t(k,ae),t(k,Xe),t(k,Q),t(k,Ye),t(k,w),m(F,w,null),t(w,Ze),t(w,pe),p(e,Be,o),m(W,e,o),p(e,Le,o),p(e,$,o),m(G,$,null),t($,et),t($,ce),t($,tt),t($,ue),t($,it),t($,R),t($,nt),t($,S),m(J,S,null),t(S,st),t(S,de),p(e,Ce,o),m(X,e,o),p(e,Me,o),p(e,v,o),m(Y,v,null),t(v,lt),t(v,me),t(v,rt),t(v,fe),t(v,ot),t(v,Z),p(e,qe,o),m(ee,e,o),p(e,Te,o),p(e,_e,o),we=!0},p:Mt,i(e){we||(f(E.$$.fragment,e),f(A.$$.fragment,e),f(H.$$.fragment,e),f(O.$$.fragment,e),f(V.$$.fragment,e),f(N.$$.fragment,e),f(U.$$.fragment,e),f(j.$$.fragment,e),f(z.$$.fragment,e),f(K.$$.fragment,e),f(F.$$.fragment,e),f(W.$$.fragment,e),f(G.$$.fragment,e),f(J.$$.fragment,e),f(X.$$.fragment,e),f(Y.$$.fragment,e),f(ee.$$.fragment,e),we=!0)},o(e){g(E.$$.fragment,e),g(A.$$.fragment,e),g(H.$$.fragment,e),g(O.$$.fragment,e),g(V.$$.fragment,e),g(N.$$.fragment,e),g(U.$$.fragment,e),g(j.$$.fragment,e),g(z.$$.fragment,e),g(K.$$.fragment,e),g(F.$$.fragment,e),g(W.$$.fragment,e),g(G.$$.fragment,e),g(J.$$.fragment,e),g(X.$$.fragment,e),g(Y.$$.fragment,e),g(ee.$$.fragment,e),we=!1},d(e){e&&(s(he),s(ge),s(ke),s($e),s(ve),s(Pe),s(a),s(xe),s(ye),s(k),s(Be),s(Le),s($),s(Ce),s(Me),s(v),s(qe),s(Te),s(_e)),s(L),_(E,e),_(A,e),_(H,e),_(O),_(V),_(N),_(U),_(j),_(z,e),_(K),_(F),_(W,e),_(G),_(J),_(X,e),_(Y),_(ee,e)}}}const Ht='{"title":"Pipeline blocks","local":"pipeline-blocks","sections":[{"title":"ModularPipelineBlocks","local":"diffusers.ModularPipelineBlocks","sections":[],"depth":2},{"title":"SequentialPipelineBlocks","local":"diffusers.modular_pipelines.SequentialPipelineBlocks","sections":[],"depth":2},{"title":"LoopSequentialPipelineBlocks","local":"diffusers.modular_pipelines.LoopSequentialPipelineBlocks","sections":[],"depth":2},{"title":"AutoPipelineBlocks","local":"diffusers.modular_pipelines.AutoPipelineBlocks","sections":[],"depth":2}],"depth":1}';function Ot(at){return qt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zt extends Tt{constructor(L){super(),wt(this,L,Ot,At,Ct,{})}}export{zt as component};

Xet Storage Details

Size:
18.2 kB
·
Xet hash:
1f89a2219a0ed65e1df864dae05532c25d53f364120e2f0d5213c18504bb75dd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.