Buckets:
| import{s as Lt,o as It,n as Ut}from"../chunks/scheduler.53228c21.js";import{S as Jt,i as Et,e as r,s as n,c as v,h as Nt,a as i,d as l,b as o,f as I,g as b,j as s,k as T,l as t,m as j,n as y,t as w,o as M,p as x}from"../chunks/index.100fac89.js";import{C as Bt}from"../chunks/CopyLLMTxtMenu.733ee6d3.js";import{D as B}from"../chunks/Docstring.695f69dc.js";import{C as Vt}from"../chunks/CodeBlock.d30a6509.js";import{E as Dt}from"../chunks/ExampleCodeBlock.4ea4edd3.js";import{H as Pt,E as Zt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.0e2208d5.js";function Gt(be){let g,V="Examples:",P,$,C;return $=new Vt({props:{code:"JTIzJTIwVXBkYXRlJTIwbXVsdGlwbGUlMjBjb21wb25lbnRzJTIwYXQlMjBvbmNlJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHModW5ldCUzRG5ld191bmV0X21vZGVsJTJDJTIwdGV4dF9lbmNvZGVyJTNEbmV3X3RleHRfZW5jb2RlciklMEElMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwdmFsdWVzJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHMocmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSklMEElMEElMjMlMjBVcGRhdGUlMjBib3RoJTIwY29tcG9uZW50cyUyMGFuZCUyMGNvbmZpZ3MlMjB0b2dldGhlciUwQXBpcGVsaW5lLnVwZGF0ZV9jb21wb25lbnRzKHVuZXQlM0RuZXdfdW5ldF9tb2RlbCUyQyUyMHJlcXVpcmVzX3NhZmV0eV9jaGVja2VyJTNERmFsc2UpJTBBJTBBJTIzJTIwVXBkYXRlJTIwd2l0aCUyMENvbXBvbmVudFNwZWMlMjBvYmplY3RzJTIwKGZyb21fY29uZmlnJTIwb25seSklMEFwaXBlbGluZS51cGRhdGVfY29tcG9uZW50cyglMEElMjAlMjAlMjAlMjBndWlkZXIlM0RDb21wb25lbnRTcGVjKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG5hbWUlM0QlMjJndWlkZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0eXBlX2hpbnQlM0RDbGFzc2lmaWVyRnJlZUd1aWRhbmNlJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY29uZmlnJTNEJTdCJTIyZ3VpZGFuY2Vfc2NhbGUlMjIlM0ElMjA1LjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBkZWZhdWx0X2NyZWF0aW9uX21ldGhvZCUzRCUyMmZyb21fY29uZmlnJTIyJTJDJTBBJTIwJTIwJTIwJTIwKSUwQSk=",highlighted:`<span class="hljs-comment"># Update multiple components at once</span> | |
| pipeline.update_components(unet=new_unet_model, text_encoder=new_text_encoder) | |
| <span class="hljs-comment"># Update configuration values</span> | |
| pipeline.update_components(requires_safety_checker=<span class="hljs-literal">False</span>) | |
| <span class="hljs-comment"># Update both components and configs together</span> | |
| pipeline.update_components(unet=new_unet_model, requires_safety_checker=<span class="hljs-literal">False</span>) | |
| <span class="hljs-comment"># Update with ComponentSpec objects (from_config only)</span> | |
| pipeline.update_components( | |
| guider=ComponentSpec( | |
| name=<span class="hljs-string">"guider"</span>, | |
| type_hint=ClassifierFreeGuidance, | |
| config={<span class="hljs-string">"guidance_scale"</span>: <span class="hljs-number">5.0</span>}, | |
| default_creation_method=<span class="hljs-string">"from_config"</span>, | |
| ) | |
| )`,wrap:!1}}),{c(){g=r("p"),g.textContent=V,P=n(),v($.$$.fragment)},l(u){g=i(u,"P",{"data-svelte-h":!0}),s(g)!=="svelte-kvfsh7"&&(g.textContent=V),P=o(u),b($.$$.fragment,u)},m(u,k){j(u,g,k),j(u,P,k),y($,u,k),C=!0},p:Ut,i(u){C||(w($.$$.fragment,u),C=!0)},o(u){M($.$$.fragment,u),C=!1},d(u){u&&(l(g),l(P)),x($,u)}}}function Xt(be){let g,V,P,$,C,u,k,ye,D,we,a,Z,ke,O,it="Base class for all Modular pipelines.",Pe,G,at="<p>> This is an experimental feature and is likely to change in the future.</p>",Le,U,X,Ie,Y,st="Load a ModularPipeline from a huggingface hub repo.",Ue,Q,R,Je,J,H,Ee,K,lt="Load selected components from specs.",Ne,c,W,Be,ee,dt="Register components with their corresponding specifications.",Ve,te,pt="This method is responsible for:",De,ne,ct=`<li>Sets component objects as attributes on the loader (e.g., self.unet = unet)</li> <li>Updates the config dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code> (only | |
| for from_pretrained components)</li> <li>Adds components to the component manager if one is attached (only for from_pretrained components)</li>`,Ze,oe,mt="This method is called when:",Ge,re,ut=`<li>Components are first initialized in <strong>init</strong>: | |
| <ul><li>from_pretrained components not loaded during <strong>init</strong> so they are registered as None;</li> <li>non from_pretrained components are created during <strong>init</strong> and registered as the object itself</li></ul></li> <li>Components are updated with the <code>update_components()</code> method: e.g. loader.update_components(unet=unet) or | |
| loader.update_components(guider=guider_spec)</li> <li>(from_pretrained) Components are loaded with the <code>load_components()</code> method: e.g. | |
| loader.load_components(names=[“unet”]) or loader.load_components() to load all default components</li>`,Xe,ie,ft="Notes:",Re,ae,gt=`<li>When registering None for a component, it sets attribute to None but still syncs specs with the config | |
| dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li> <li>component_specs are updated to match the new component outside of this method, e.g. in | |
| <code>update_components()</code> method</li>`,He,E,S,We,se,ht="Save the pipeline to a directory. It does not save components, you need to save them separately.",Se,_,q,qe,le,_t=`Performs Pipeline dtype and/or device conversion. A torch.dtype and torch.device are inferred from the | |
| arguments of <code>self.to(*args, **kwargs).</code>`,Ae,A,vt=`<p>> If the pipeline already has the correct torch.dtype and torch.device, then it is returned as is. | |
| Otherwise, > the returned pipeline is a copy of self with the desired torch.dtype and torch.device.</p>`,Fe,de,bt="Here are the ways to call <code>to</code>:",ze,pe,yt=`<li><code>to(dtype, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified | |
| <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li> <li><code>to(device, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified | |
| <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a></li> <li><code>to(device=None, dtype=None, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the | |
| specified <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a> and | |
| <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li>`,Oe,p,F,Ye,ce,wt="Update components and configuration values and specs after the pipeline has been instantiated.",Qe,me,Mt="This method allows you to:",Ke,ue,xt="<li>Replace existing components with new ones (e.g., updating <code>self.unet</code> or <code>self.text_encoder</code>)</li> <li>Update configuration values (e.g., changing <code>self.requires_safety_checker</code> flag)</li>",et,fe,$t=`In addition to updating the components and configuration values as pipeline attributes, the method also | |
| updates:`,tt,ge,Ct="<li>the corresponding specs in <code>_component_specs</code> and <code>_config_specs</code></li> <li>the <code>config</code> dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li>",nt,N,ot,he,Tt="Notes:",rt,_e,jt=`<li>Components with trained weights must be created using ComponentSpec.load(). If the component has not been | |
| shared in huggingface hub and you don’t have loading specs, you can upload it using <code>push_to_hub()</code></li> <li>ConfigMixin objects without weights (e.g., schedulers, guiders) can be passed directly</li> <li>ComponentSpec objects with default_creation_method=“from_pretrained” are not supported in | |
| update_components()</li>`,Me,z,xe,ve,$e;return C=new Bt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),k=new Pt({props:{title:"Pipeline",local:"pipeline",headingTag:"h1"}}),D=new Pt({props:{title:"ModularPipeline",local:"diffusers.ModularPipeline",headingTag:"h2"}}),Z=new B({props:{name:"class diffusers.ModularPipeline",anchor:"diffusers.ModularPipeline",parameters:[{name:"blocks",val:": typing.Optional[diffusers.modular_pipelines.modular_pipeline.ModularPipelineBlocks] = None"},{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"},{name:"modular_config_dict",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"config_dict",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.blocks",description:"<strong>blocks</strong> — ModularPipelineBlocks, the blocks to be used in the pipeline",name:"blocks"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1429"}}),X=new B({props:{name:"from_pretrained",anchor:"diffusers.ModularPipeline.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, optional) — | |
| Path to a pretrained pipeline configuration. It will first try to load config from | |
| <code>modular_model_index.json</code>, then fallback to <code>model_index.json</code> for compatibility with standard | |
| non-modular repositories. If the pretrained_model_name_or_path does not contain any pipeline config, it | |
| will be set to None during initialization.`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModularPipeline.from_pretrained.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, optional) — | |
| Whether to trust remote code when loading the pipeline, need to be set to True if you want to create | |
| pipeline blocks based on the custom code in <code>pretrained_model_name_or_path</code>`,name:"trust_remote_code"},{anchor:"diffusers.ModularPipeline.from_pretrained.components_manager",description:`<strong>components_manager</strong> (<code>ComponentsManager</code>, optional) — | |
| ComponentsManager instance for managing multiple component cross different pipelines and apply | |
| offloading strategies.`,name:"components_manager"},{anchor:"diffusers.ModularPipeline.from_pretrained.collection",description:"<strong>collection</strong> (<code>str</code>, optional) —`\nCollection name for organizing components in the ComponentsManager.",name:"collection"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1632"}}),R=new B({props:{name:"get_component_spec",anchor:"diffusers.ModularPipeline.get_component_spec",parameters:[{name:"name",val:": str"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1966",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <ul> | |
| <li>a copy of the ComponentSpec object for the given component name</li> | |
| </ul> | |
| `}}),H=new B({props:{name:"load_components",anchor:"diffusers.ModularPipeline.load_components",parameters:[{name:"names",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.load_components.names",description:`<strong>names</strong> — List of component names to load. If None, will load all components with | |
| default_creation_method == “from_pretrained”. If provided as a list or string, will load only the | |
| specified components.`,name:"names"},{anchor:"diffusers.ModularPipeline.load_components.*kwargs",description:`*<strong>*kwargs</strong> — additional kwargs to be passed to <code>from_pretrained()</code>.Can be: | |
| <ul> | |
| <li>a single value to be applied to all components to be loaded, e.g. torch_dtype=torch.bfloat16</li> | |
| <li>a dict, e.g. torch_dtype={“unet”: torch.bfloat16, “default”: torch.float32}</li> | |
| <li>if potentially override ComponentSpec if passed a different loading field in kwargs, e.g. | |
| <code>pretrained_model_name_or_path</code>, <code>variant</code>, <code>revision</code>, etc.</li> | |
| <li>if potentially override ComponentSpec if passed a different loading field in kwargs, e.g. | |
| <code>pretrained_model_name_or_path</code>, <code>variant</code>, <code>revision</code>, etc.</li> | |
| </ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L2104"}}),W=new B({props:{name:"register_components",anchor:"diffusers.ModularPipeline.register_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.register_components.*kwargs",description:`*<strong>*kwargs</strong> — Keyword arguments where keys are component names and values are component objects. | |
| E.g., register_components(unet=unet_model, text_encoder=encoder_model)`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1761"}}),S=new B({props:{name:"save_pretrained",anchor:"diffusers.ModularPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Path to the directory where the pipeline will be saved.`,name:"save_directory"},{anchor:"diffusers.ModularPipeline.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, optional) — | |
| Whether to push the pipeline to the huggingface hub.`,name:"push_to_hub"},{anchor:"diffusers.ModularPipeline.save_pretrained.*kwargs",description:"*<strong>*kwargs</strong> — Additional arguments passed to <code>save_config()</code> method",name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1717"}}),q=new B({props:{name:"to",anchor:"diffusers.ModularPipeline.to",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.to.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) — | |
| Returns a pipeline with the specified | |
| <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a>`,name:"dtype"},{anchor:"diffusers.ModularPipeline.to.device",description:`<strong>device</strong> (<code>torch.Device</code>, <em>optional</em>) — | |
| Returns a pipeline with the specified | |
| <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a>`,name:"device"},{anchor:"diffusers.ModularPipeline.to.silence_dtype_warnings",description:`<strong>silence_dtype_warnings</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to omit warnings if the target <code>dtype</code> is not compatible with the target <code>device</code>.`,name:"silence_dtype_warnings"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L2187",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>The pipeline converted to specified <code>dtype</code> and/or <code>dtype</code>.</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/diffusers/pr_12849/en/api/pipelines/overview#diffusers.DiffusionPipeline" | |
| >DiffusionPipeline</a></p> | |
| `}}),F=new B({props:{name:"update_components",anchor:"diffusers.ModularPipeline.update_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.update_components.*kwargs",description:`*<strong>*kwargs</strong> — Component objects, ComponentSpec objects, or configuration values to update: | |
| <ul> | |
| <li>Component objects: Only supports components we can extract specs using | |
| <code>ComponentSpec.from_component()</code> method i.e. components created with ComponentSpec.load() or | |
| ConfigMixin subclasses that aren’t nn.Modules (e.g., <code>unet=new_unet, text_encoder=new_encoder</code>)</li> | |
| <li>ComponentSpec objects: Only supports default_creation_method == “from_config”, will call create() | |
| method to create a new component (e.g., <code>guider=ComponentSpec(name="guider", type_hint=ClassifierFreeGuidance, config={...}, default_creation_method="from_config")</code>)</li> | |
| <li>Configuration values: Simple values to update configuration settings (e.g., | |
| <code>requires_safety_checker=False</code>)</li> | |
| </ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12849/src/diffusers/modular_pipelines/modular_pipeline.py#L1973",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <ul> | |
| <li><code>ValueError</code> — If a component object is not supported in ComponentSpec.from_component() method: | |
| <ul> | |
| <li>nn.Module components without a valid <code>_diffusers_load_id</code> attribute</li> | |
| <li>Non-ConfigMixin components without a valid <code>_diffusers_load_id</code> attribute</li> | |
| </ul> | |
| </li> | |
| </ul> | |
| `,raiseType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><code>ValueError</code></p> | |
| `}}),N=new Dt({props:{anchor:"diffusers.ModularPipeline.update_components.example",$$slots:{default:[Gt]},$$scope:{ctx:be}}}),z=new Zt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline.md"}}),{c(){g=r("meta"),V=n(),P=r("p"),$=n(),v(C.$$.fragment),u=n(),v(k.$$.fragment),ye=n(),v(D.$$.fragment),we=n(),a=r("div"),v(Z.$$.fragment),ke=n(),O=r("p"),O.textContent=it,Pe=n(),G=r("blockquote"),G.innerHTML=at,Le=n(),U=r("div"),v(X.$$.fragment),Ie=n(),Y=r("p"),Y.textContent=st,Ue=n(),Q=r("div"),v(R.$$.fragment),Je=n(),J=r("div"),v(H.$$.fragment),Ee=n(),K=r("p"),K.textContent=lt,Ne=n(),c=r("div"),v(W.$$.fragment),Be=n(),ee=r("p"),ee.textContent=dt,Ve=n(),te=r("p"),te.textContent=pt,De=n(),ne=r("ol"),ne.innerHTML=ct,Ze=n(),oe=r("p"),oe.textContent=mt,Ge=n(),re=r("ul"),re.innerHTML=ut,Xe=n(),ie=r("p"),ie.textContent=ft,Re=n(),ae=r("ul"),ae.innerHTML=gt,He=n(),E=r("div"),v(S.$$.fragment),We=n(),se=r("p"),se.textContent=ht,Se=n(),_=r("div"),v(q.$$.fragment),qe=n(),le=r("p"),le.innerHTML=_t,Ae=n(),A=r("blockquote"),A.innerHTML=vt,Fe=n(),de=r("p"),de.innerHTML=bt,ze=n(),pe=r("ul"),pe.innerHTML=yt,Oe=n(),p=r("div"),v(F.$$.fragment),Ye=n(),ce=r("p"),ce.textContent=wt,Qe=n(),me=r("p"),me.textContent=Mt,Ke=n(),ue=r("ol"),ue.innerHTML=xt,et=n(),fe=r("p"),fe.textContent=$t,tt=n(),ge=r("ul"),ge.innerHTML=Ct,nt=n(),v(N.$$.fragment),ot=n(),he=r("p"),he.textContent=Tt,rt=n(),_e=r("ul"),_e.innerHTML=jt,Me=n(),v(z.$$.fragment),xe=n(),ve=r("p"),this.h()},l(e){const m=Nt("svelte-u9bgzb",document.head);g=i(m,"META",{name:!0,content:!0}),m.forEach(l),V=o(e),P=i(e,"P",{}),I(P).forEach(l),$=o(e),b(C.$$.fragment,e),u=o(e),b(k.$$.fragment,e),ye=o(e),b(D.$$.fragment,e),we=o(e),a=i(e,"DIV",{class:!0});var d=I(a);b(Z.$$.fragment,d),ke=o(d),O=i(d,"P",{"data-svelte-h":!0}),s(O)!=="svelte-gyuepy"&&(O.textContent=it),Pe=o(d),G=i(d,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),s(G)!=="svelte-1o9sbyc"&&(G.innerHTML=at),Le=o(d),U=i(d,"DIV",{class:!0});var Ce=I(U);b(X.$$.fragment,Ce),Ie=o(Ce),Y=i(Ce,"P",{"data-svelte-h":!0}),s(Y)!=="svelte-1ii3iq9"&&(Y.textContent=st),Ce.forEach(l),Ue=o(d),Q=i(d,"DIV",{class:!0});var kt=I(Q);b(R.$$.fragment,kt),kt.forEach(l),Je=o(d),J=i(d,"DIV",{class:!0});var Te=I(J);b(H.$$.fragment,Te),Ee=o(Te),K=i(Te,"P",{"data-svelte-h":!0}),s(K)!=="svelte-1tx894b"&&(K.textContent=lt),Te.forEach(l),Ne=o(d),c=i(d,"DIV",{class:!0});var h=I(c);b(W.$$.fragment,h),Be=o(h),ee=i(h,"P",{"data-svelte-h":!0}),s(ee)!=="svelte-1ooq1qq"&&(ee.textContent=dt),Ve=o(h),te=i(h,"P",{"data-svelte-h":!0}),s(te)!=="svelte-cf9wby"&&(te.textContent=pt),De=o(h),ne=i(h,"OL",{"data-svelte-h":!0}),s(ne)!=="svelte-k19u0o"&&(ne.innerHTML=ct),Ze=o(h),oe=i(h,"P",{"data-svelte-h":!0}),s(oe)!=="svelte-1jlcxv6"&&(oe.textContent=mt),Ge=o(h),re=i(h,"UL",{"data-svelte-h":!0}),s(re)!=="svelte-18lippi"&&(re.innerHTML=ut),Xe=o(h),ie=i(h,"P",{"data-svelte-h":!0}),s(ie)!=="svelte-1biq3pv"&&(ie.textContent=ft),Re=o(h),ae=i(h,"UL",{"data-svelte-h":!0}),s(ae)!=="svelte-1n75vyc"&&(ae.innerHTML=gt),h.forEach(l),He=o(d),E=i(d,"DIV",{class:!0});var je=I(E);b(S.$$.fragment,je),We=o(je),se=i(je,"P",{"data-svelte-h":!0}),s(se)!=="svelte-1p6ifd4"&&(se.textContent=ht),je.forEach(l),Se=o(d),_=i(d,"DIV",{class:!0});var L=I(_);b(q.$$.fragment,L),qe=o(L),le=i(L,"P",{"data-svelte-h":!0}),s(le)!=="svelte-1vbhnip"&&(le.innerHTML=_t),Ae=o(L),A=i(L,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),s(A)!=="svelte-ja1ewp"&&(A.innerHTML=vt),Fe=o(L),de=i(L,"P",{"data-svelte-h":!0}),s(de)!=="svelte-5ul9n2"&&(de.innerHTML=bt),ze=o(L),pe=i(L,"UL",{"data-svelte-h":!0}),s(pe)!=="svelte-1icy6l9"&&(pe.innerHTML=yt),L.forEach(l),Oe=o(d),p=i(d,"DIV",{class:!0});var f=I(p);b(F.$$.fragment,f),Ye=o(f),ce=i(f,"P",{"data-svelte-h":!0}),s(ce)!=="svelte-r0j5xc"&&(ce.textContent=wt),Qe=o(f),me=i(f,"P",{"data-svelte-h":!0}),s(me)!=="svelte-1p350mx"&&(me.textContent=Mt),Ke=o(f),ue=i(f,"OL",{"data-svelte-h":!0}),s(ue)!=="svelte-z06v4z"&&(ue.innerHTML=xt),et=o(f),fe=i(f,"P",{"data-svelte-h":!0}),s(fe)!=="svelte-1x075vc"&&(fe.textContent=$t),tt=o(f),ge=i(f,"UL",{"data-svelte-h":!0}),s(ge)!=="svelte-1v9kzk0"&&(ge.innerHTML=Ct),nt=o(f),b(N.$$.fragment,f),ot=o(f),he=i(f,"P",{"data-svelte-h":!0}),s(he)!=="svelte-1biq3pv"&&(he.textContent=Tt),rt=o(f),_e=i(f,"UL",{"data-svelte-h":!0}),s(_e)!=="svelte-v3x766"&&(_e.innerHTML=jt),f.forEach(l),d.forEach(l),Me=o(e),b(z.$$.fragment,e),xe=o(e),ve=i(e,"P",{}),I(ve).forEach(l),this.h()},h(){T(g,"name","hf:doc:metadata"),T(g,"content",Rt),T(G,"class","warning"),T(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(A,"class","tip"),T(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(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){t(document.head,g),j(e,V,m),j(e,P,m),j(e,$,m),y(C,e,m),j(e,u,m),y(k,e,m),j(e,ye,m),y(D,e,m),j(e,we,m),j(e,a,m),y(Z,a,null),t(a,ke),t(a,O),t(a,Pe),t(a,G),t(a,Le),t(a,U),y(X,U,null),t(U,Ie),t(U,Y),t(a,Ue),t(a,Q),y(R,Q,null),t(a,Je),t(a,J),y(H,J,null),t(J,Ee),t(J,K),t(a,Ne),t(a,c),y(W,c,null),t(c,Be),t(c,ee),t(c,Ve),t(c,te),t(c,De),t(c,ne),t(c,Ze),t(c,oe),t(c,Ge),t(c,re),t(c,Xe),t(c,ie),t(c,Re),t(c,ae),t(a,He),t(a,E),y(S,E,null),t(E,We),t(E,se),t(a,Se),t(a,_),y(q,_,null),t(_,qe),t(_,le),t(_,Ae),t(_,A),t(_,Fe),t(_,de),t(_,ze),t(_,pe),t(a,Oe),t(a,p),y(F,p,null),t(p,Ye),t(p,ce),t(p,Qe),t(p,me),t(p,Ke),t(p,ue),t(p,et),t(p,fe),t(p,tt),t(p,ge),t(p,nt),y(N,p,null),t(p,ot),t(p,he),t(p,rt),t(p,_e),j(e,Me,m),y(z,e,m),j(e,xe,m),j(e,ve,m),$e=!0},p(e,[m]){const d={};m&2&&(d.$$scope={dirty:m,ctx:e}),N.$set(d)},i(e){$e||(w(C.$$.fragment,e),w(k.$$.fragment,e),w(D.$$.fragment,e),w(Z.$$.fragment,e),w(X.$$.fragment,e),w(R.$$.fragment,e),w(H.$$.fragment,e),w(W.$$.fragment,e),w(S.$$.fragment,e),w(q.$$.fragment,e),w(F.$$.fragment,e),w(N.$$.fragment,e),w(z.$$.fragment,e),$e=!0)},o(e){M(C.$$.fragment,e),M(k.$$.fragment,e),M(D.$$.fragment,e),M(Z.$$.fragment,e),M(X.$$.fragment,e),M(R.$$.fragment,e),M(H.$$.fragment,e),M(W.$$.fragment,e),M(S.$$.fragment,e),M(q.$$.fragment,e),M(F.$$.fragment,e),M(N.$$.fragment,e),M(z.$$.fragment,e),$e=!1},d(e){e&&(l(V),l(P),l($),l(u),l(ye),l(we),l(a),l(Me),l(xe),l(ve)),l(g),x(C,e),x(k,e),x(D,e),x(Z),x(X),x(R),x(H),x(W),x(S),x(q),x(F),x(N),x(z,e)}}}const Rt='{"title":"Pipeline","local":"pipeline","sections":[{"title":"ModularPipeline","local":"diffusers.ModularPipeline","sections":[],"depth":2}],"depth":1}';function Ht(be){return It(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yt extends Jt{constructor(g){super(),Et(this,g,Ht,Xt,Lt,{})}}export{Yt as component}; | |
Xet Storage Details
- Size:
- 25.1 kB
- Xet hash:
- e264a24bfc506dfc8d580cbf4235384e99253f05aafbb3101bda281214880bc3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.