import{s as le,n as ie,o as ne}from"../chunks/scheduler.5c93273d.js";import{S as ae,i as se,g as s,s as n,r as g,A as oe,h as o,f as l,c as a,j as te,u as b,x as L,k as F,y as pe,a as i,v as x,d as w,t as H,w as C}from"../chunks/index.e43dd92b.js";import{H as R,E as ue}from"../chunks/getInferenceSnippets.7a494bf3.js";function re(J){let p,q,k,B,r,S,u,N="<p>模块化Diffusers正在积极开发中，其API可能会发生变化。</p>",E,f,V="模块化Diffusers是一个统一的管道系统，通过<em>管道块</em>简化您的工作流程。",U,m,W="<li>块是可重用的，您只需要为您的管道创建独特的块。</li> <li>块可以混合搭配，以适应或为特定工作流程或多个工作流程创建管道。</li>",y,c,X="模块化Diffusers文档的组织如下所示。",A,d,D,$,Y='<li>一个<a href="./quickstart">快速开始</a>演示了如何使用模块化Diffusers实现一个示例工作流程。</li>',O,_,j,h,Z='<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>',z,M,G,P,ee='<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>',I,v,K,T,Q;return r=new R({props:{title:"概述",local:"概述",headingTag:"h1"}}),d=new R({props:{title:"快速开始",local:"快速开始",headingTag:"h2"}}),_=new R({props:{title:"ModularPipelineBlocks",local:"modularpipelineblocks",headingTag:"h2"}}),M=new R({props:{title:"ModularPipeline",local:"modularpipeline",headingTag:"h2"}}),v=new ue({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/zh/modular_diffusers/overview.md"}}),{c(){p=s("meta"),q=n(),k=s("p"),B=n(),g(r.$$.fragment),S=n(),u=s("blockquote"),u.innerHTML=N,E=n(),f=s("p"),f.innerHTML=V,U=n(),m=s("ul"),m.innerHTML=W,y=n(),c=s("p"),c.textContent=X,A=n(),g(d.$$.fragment),D=n(),$=s("ul"),$.innerHTML=Y,O=n(),g(_.$$.fragment),j=n(),h=s("ul"),h.innerHTML=Z,z=n(),g(M.$$.fragment),G=n(),P=s("ul"),P.innerHTML=ee,I=n(),g(v.$$.fragment),K=n(),T=s("p"),this.h()},l(e){const t=oe("svelte-u9bgzb",document.head);p=o(t,"META",{name:!0,content:!0}),t.forEach(l),q=a(e),k=o(e,"P",{}),te(k).forEach(l),B=a(e),b(r.$$.fragment,e),S=a(e),u=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),L(u)!=="svelte-lal14m"&&(u.innerHTML=N),E=a(e),f=o(e,"P",{"data-svelte-h":!0}),L(f)!=="svelte-62y3xh"&&(f.innerHTML=V),U=a(e),m=o(e,"UL",{"data-svelte-h":!0}),L(m)!=="svelte-tssmp1"&&(m.innerHTML=W),y=a(e),c=o(e,"P",{"data-svelte-h":!0}),L(c)!=="svelte-dsxsc9"&&(c.textContent=X),A=a(e),b(d.$$.fragment,e),D=a(e),$=o(e,"UL",{"data-svelte-h":!0}),L($)!=="svelte-tgwpic"&&($.innerHTML=Y),O=a(e),b(_.$$.fragment,e),j=a(e),h=o(e,"UL",{"data-svelte-h":!0}),L(h)!=="svelte-2hi4j7"&&(h.innerHTML=Z),z=a(e),b(M.$$.fragment,e),G=a(e),P=o(e,"UL",{"data-svelte-h":!0}),L(P)!=="svelte-1f3lw3f"&&(P.innerHTML=ee),I=a(e),b(v.$$.fragment,e),K=a(e),T=o(e,"P",{}),te(T).forEach(l),this.h()},h(){F(p,"name","hf:doc:metadata"),F(p,"content",fe),F(u,"class","warning")},m(e,t){pe(document.head,p),i(e,q,t),i(e,k,t),i(e,B,t),x(r,e,t),i(e,S,t),i(e,u,t),i(e,E,t),i(e,f,t),i(e,U,t),i(e,m,t),i(e,y,t),i(e,c,t),i(e,A,t),x(d,e,t),i(e,D,t),i(e,$,t),i(e,O,t),x(_,e,t),i(e,j,t),i(e,h,t),i(e,z,t),x(M,e,t),i(e,G,t),i(e,P,t),i(e,I,t),x(v,e,t),i(e,K,t),i(e,T,t),Q=!0},p:ie,i(e){Q||(w(r.$$.fragment,e),w(d.$$.fragment,e),w(_.$$.fragment,e),w(M.$$.fragment,e),w(v.$$.fragment,e),Q=!0)},o(e){H(r.$$.fragment,e),H(d.$$.fragment,e),H(_.$$.fragment,e),H(M.$$.fragment,e),H(v.$$.fragment,e),Q=!1},d(e){e&&(l(q),l(k),l(B),l(S),l(u),l(E),l(f),l(U),l(m),l(y),l(c),l(A),l(D),l($),l(O),l(j),l(h),l(z),l(G),l(P),l(I),l(K),l(T)),l(p),C(r,e),C(d,e),C(_,e),C(M,e),C(v,e)}}}const fe='{"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 me(J){return ne(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _e extends ae{constructor(p){super(),se(this,p,me,re,le,{})}}export{_e as component};
