import{s as le,o as ie,n as ne}from"../chunks/scheduler.5c93273d.js";import{S as ae,i as se,g as o,s as a,r as T,A as pe,h as r,f as l,c as s,j as ee,u as w,x,k as te,y as oe,a as i,v as b,d as C,t as H,w as B}from"../chunks/index.e43dd92b.js";import{T as re}from"../chunks/Tip.1cbfe904.js";import{H as K,E as ue}from"../chunks/getInferenceSnippets.bd93e167.js";function fe(S){let n,f="模块化Diffusers正在积极开发中，其API可能会发生变化。";return{c(){n=o("p"),n.textContent=f},l(p){n=r(p,"P",{"data-svelte-h":!0}),x(n)!=="svelte-jp91ek"&&(n.textContent=f)},m(p,L){i(p,n,L)},p:ne,d(p){p&&l(n)}}}function me(S){let n,f,p,L,m,E,u,A,$,N="模块化Diffusers是一个统一的管道系统，通过<em>管道块</em>简化您的工作流程。",U,c,Q="<li>块是可重用的，您只需要为您的管道创建独特的块。</li> <li>块可以混合搭配，以适应或为特定工作流程或多个工作流程创建管道。</li>",y,d,V="模块化Diffusers文档的组织如下所示。",D,_,j,h,W='<li>一个<a href="./quickstart">快速开始</a>演示了如何使用模块化Diffusers实现一个示例工作流程。</li>',z,P,G,M,X='<li><a href="./modular_diffusers_states">States</a>解释了数据如何在块和<code>ModularPipeline</code>之间共享和通信。</li> <li><a href="./pipeline_block">ModularPipelineBlocks</a>是<code>ModularPipeline</code>最基本的单位，本指南向您展示如何创建一个。</li> <li><a href="./sequential_pipeline_blocks">SequentialPipelineBlocks</a>是一种类型的块，它将多个块链接起来，使它们一个接一个地运行，沿着链传递数据。本指南向您展示如何创建<code>SequentialPipelineBlocks</code>以及它们如何连接和一起工作。</li> <li><a href="./loop_sequential_pipeline_blocks">LoopSequentialPipelineBlocks</a>是一种类型的块，它在循环中运行一系列块。本指南向您展示如何创建<code>LoopSequentialPipelineBlocks</code>。</li> <li><a href="./auto_pipeline_blocks">AutoPipelineBlocks</a>是一种类型的块，它根据输入自动选择要运行的块。本指南向您展示如何创建<code>AutoPipelineBlocks</code>。</li>',I,g,O,v,Y='<li><a href="./modular_pipeline">ModularPipeline</a>向您展示如何创建并将管道块转换为可执行的<code>ModularPipeline</code>。</li> <li><a href="./components_manager">ComponentsManager</a>向您展示如何跨多个管道管理和重用组件。</li> <li><a href="./guiders">Guiders</a>向您展示如何在管道中使用不同的指导方法。</li>',R,k,F,q,J;return m=new K({props:{title:"概述",local:"概述",headingTag:"h1"}}),u=new re({props:{warning:!0,$$slots:{default:[fe]},$$scope:{ctx:S}}}),_=new K({props:{title:"快速开始",local:"快速开始",headingTag:"h2"}}),P=new K({props:{title:"ModularPipelineBlocks",local:"modularpipelineblocks",headingTag:"h2"}}),g=new K({props:{title:"ModularPipeline",local:"modularpipeline",headingTag:"h2"}}),k=new ue({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/zh/modular_diffusers/overview.md"}}),{c(){n=o("meta"),f=a(),p=o("p"),L=a(),T(m.$$.fragment),E=a(),T(u.$$.fragment),A=a(),$=o("p"),$.innerHTML=N,U=a(),c=o("ul"),c.innerHTML=Q,y=a(),d=o("p"),d.textContent=V,D=a(),T(_.$$.fragment),j=a(),h=o("ul"),h.innerHTML=W,z=a(),T(P.$$.fragment),G=a(),M=o("ul"),M.innerHTML=X,I=a(),T(g.$$.fragment),O=a(),v=o("ul"),v.innerHTML=Y,R=a(),T(k.$$.fragment),F=a(),q=o("p"),this.h()},l(e){const t=pe("svelte-u9bgzb",document.head);n=r(t,"META",{name:!0,content:!0}),t.forEach(l),f=s(e),p=r(e,"P",{}),ee(p).forEach(l),L=s(e),w(m.$$.fragment,e),E=s(e),w(u.$$.fragment,e),A=s(e),$=r(e,"P",{"data-svelte-h":!0}),x($)!=="svelte-62y3xh"&&($.innerHTML=N),U=s(e),c=r(e,"UL",{"data-svelte-h":!0}),x(c)!=="svelte-tssmp1"&&(c.innerHTML=Q),y=s(e),d=r(e,"P",{"data-svelte-h":!0}),x(d)!=="svelte-dsxsc9"&&(d.textContent=V),D=s(e),w(_.$$.fragment,e),j=s(e),h=r(e,"UL",{"data-svelte-h":!0}),x(h)!=="svelte-tgwpic"&&(h.innerHTML=W),z=s(e),w(P.$$.fragment,e),G=s(e),M=r(e,"UL",{"data-svelte-h":!0}),x(M)!=="svelte-2hi4j7"&&(M.innerHTML=X),I=s(e),w(g.$$.fragment,e),O=s(e),v=r(e,"UL",{"data-svelte-h":!0}),x(v)!=="svelte-1f3lw3f"&&(v.innerHTML=Y),R=s(e),w(k.$$.fragment,e),F=s(e),q=r(e,"P",{}),ee(q).forEach(l),this.h()},h(){te(n,"name","hf:doc:metadata"),te(n,"content",$e)},m(e,t){oe(document.head,n),i(e,f,t),i(e,p,t),i(e,L,t),b(m,e,t),i(e,E,t),b(u,e,t),i(e,A,t),i(e,$,t),i(e,U,t),i(e,c,t),i(e,y,t),i(e,d,t),i(e,D,t),b(_,e,t),i(e,j,t),i(e,h,t),i(e,z,t),b(P,e,t),i(e,G,t),i(e,M,t),i(e,I,t),b(g,e,t),i(e,O,t),i(e,v,t),i(e,R,t),b(k,e,t),i(e,F,t),i(e,q,t),J=!0},p(e,[t]){const Z={};t&2&&(Z.$$scope={dirty:t,ctx:e}),u.$set(Z)},i(e){J||(C(m.$$.fragment,e),C(u.$$.fragment,e),C(_.$$.fragment,e),C(P.$$.fragment,e),C(g.$$.fragment,e),C(k.$$.fragment,e),J=!0)},o(e){H(m.$$.fragment,e),H(u.$$.fragment,e),H(_.$$.fragment,e),H(P.$$.fragment,e),H(g.$$.fragment,e),H(k.$$.fragment,e),J=!1},d(e){e&&(l(f),l(p),l(L),l(E),l(A),l($),l(U),l(c),l(y),l(d),l(D),l(j),l(h),l(z),l(G),l(M),l(I),l(O),l(v),l(R),l(F),l(q)),l(n),B(m,e),B(u,e),B(_,e),B(P,e),B(g,e),B(k,e)}}}const $e='{"title":"概述","local":"概述","sections":[{"title":"快速开始","local":"快速开始","sections":[],"depth":2},{"title":"ModularPipelineBlocks","local":"modularpipelineblocks","sections":[],"depth":2},{"title":"ModularPipeline","local":"modularpipeline","sections":[],"depth":2}],"depth":1}';function ce(S){return ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Me extends ae{constructor(n){super(),se(this,n,ce,me,le,{})}}export{Me as component};
