Buckets:

rtrm's picture
download
raw
25.6 kB
import{s as Vt,o as Bt,n as pt}from"../chunks/scheduler.8c3d61f6.js";import{S as Dt,i as Zt,g as r,s as n,r as b,A as Nt,h as s,f as l,c as o,j as L,u as $,x as p,k as I,y as t,a as T,v as w,d as y,t as M,w as x}from"../chunks/index.da70eac4.js";import{T as Ut}from"../chunks/Tip.1d9b8c37.js";import{D as U}from"../chunks/Docstring.c021b19a.js";import{C as Gt}from"../chunks/CodeBlock.a9c4becf.js";import{E as Xt}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as Et,E as Rt}from"../chunks/getInferenceSnippets.725ed3d4.js";function Wt(E){let i,P="This is an experimental feature and is likely to change in the future.";return{c(){i=r("p"),i.textContent=P},l(c){i=s(c,"P",{"data-svelte-h":!0}),p(i)!=="svelte-ozwf5m"&&(i.textContent=P)},m(c,_){T(c,i,_)},p:pt,d(c){c&&l(i)}}}function Ht(E){let i,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.`;return{c(){i=r("p"),i.textContent=P},l(c){i=s(c,"P",{"data-svelte-h":!0}),p(i)!=="svelte-18gkv0g"&&(i.textContent=P)},m(c,_){T(c,i,_)},p:pt,d(c){c&&l(i)}}}function At(E){let i,P="Examples:",c,_,j;return _=new Gt({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">&quot;guider&quot;</span>,
type_hint=ClassifierFreeGuidance,
config={<span class="hljs-string">&quot;guidance_scale&quot;</span>: <span class="hljs-number">5.0</span>},
default_creation_method=<span class="hljs-string">&quot;from_config&quot;</span>,
)
)`,wrap:!1}}),{c(){i=r("p"),i.textContent=P,c=n(),b(_.$$.fragment)},l(g){i=s(g,"P",{"data-svelte-h":!0}),p(i)!=="svelte-kvfsh7"&&(i.textContent=P),c=o(g),$(_.$$.fragment,g)},m(g,k){T(g,i,k),T(g,c,k),w(_,g,k),j=!0},p:pt,i(g){j||(y(_.$$.fragment,g),j=!0)},o(g){M(_.$$.fragment,g),j=!1},d(g){g&&(l(i),l(c)),x(_,g)}}}function St(E){let i,P,c,_,j,g,k,xe,a,R,Ie,K,ct="Base class for all Modular pipelines.",Je,V,Ue,B,W,Ee,ee,mt="Load a ModularPipeline from a huggingface hub repo.",Ve,te,H,Be,D,A,De,ne,ut="Load selected components from specs.",Ze,Z,S,Ne,oe,ft="Load from_pretrained components using the loading specs in the config dict.",Ge,f,F,Xe,re,gt="Register components with their corresponding specifications.",Re,se,ht="This method is responsible for:",We,ie,_t=`<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>`,He,ae,vt="This method is called when:",Ae,le,bt=`<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_default_components()</code> method: e.g.
loader.load_default_components(names=[“unet”])</li>`,Se,de,$t="Notes:",Fe,pe,wt=`<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>`,qe,N,q,ze,ce,yt="Save the pipeline to a directory. It does not save components, you need to save them separately.",Ye,C,z,Oe,me,Mt=`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>`,Qe,G,Ke,ue,xt="Here are the ways to call <code>to</code>:",et,fe,Ct=`<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>`,tt,m,Y,nt,ge,Pt="Update components and configuration values and specs after the pipeline has been instantiated.",ot,he,Tt="This method allows you to:",rt,_e,jt="<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>",st,ve,kt=`In addition to updating the components and configuration values as pipeline attributes, the method also
updates:`,it,be,Lt="<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>",at,X,lt,$e,It="Notes:",dt,we,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>`,Ce,O,Pe,ye,Te;return j=new Et({props:{title:"Pipeline",local:"pipeline",headingTag:"h1"}}),k=new Et({props:{title:"ModularPipeline",local:"diffusers.ModularPipeline",headingTag:"h2"}}),R=new U({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:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.blocks",description:"<strong>blocks</strong> &#x2014; ModularPipelineBlocks, the blocks to be used in the pipeline",name:"blocks"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1413"}}),V=new Ut({props:{warning:!0,$$slots:{default:[Wt]},$$scope:{ctx:E}}}),W=new U({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) &#x2014;
Path to a pretrained pipeline configuration. If provided, will load component specs (only for
from_pretrained components) and config values from the modular_model_index.json file.`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModularPipeline.from_pretrained.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, optional) &#x2014;
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) &#x2014;
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) &#x2014;`\nCollection name for organizing components in the ComponentsManager.",name:"collection"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1558"}}),H=new U({props:{name:"get_component_spec",anchor:"diffusers.ModularPipeline.get_component_spec",parameters:[{name:"name",val:": str"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1874",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<ul>
<li>a copy of the ComponentSpec object for the given component name</li>
</ul>
`}}),A=new U({props:{name:"load_components",anchor:"diffusers.ModularPipeline.load_components",parameters:[{name:"names",val:": typing.Union[typing.List[str], str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.load_components.names",description:"<strong>names</strong> &#x2014; List of component names to load; by default will not load any components",name:"names"},{anchor:"diffusers.ModularPipeline.load_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; 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={&#x201C;unet&#x201D;: torch.bfloat16, &#x201C;default&#x201D;: torch.float32}</li>
<li>if potentially override ComponentSpec if passed a different loading field in kwargs, e.g. <code>repo</code>,
<code>variant</code>, <code>revision</code>, etc.</li>
</ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1999"}}),S=new U({props:{name:"load_default_components",anchor:"diffusers.ModularPipeline.load_default_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.load_default_components.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional arguments passed to <code>from_pretrained</code> method, e.g. torch_dtype, cache_dir, etc.",name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1544"}}),F=new U({props:{name:"register_components",anchor:"diffusers.ModularPipeline.register_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.register_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; 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_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1669"}}),q=new U({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>) &#x2014;
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) &#x2014;
Whether to push the pipeline to the huggingface hub.`,name:"push_to_hub"},{anchor:"diffusers.ModularPipeline.save_pretrained.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional arguments passed to <code>save_config()</code> method",name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1625"}}),z=new U({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>) &#x2014;
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>) &#x2014;
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>) &#x2014;
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_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L2065",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_12229/en/api/pipelines/overview#diffusers.DiffusionPipeline"
>DiffusionPipeline</a></p>
`}}),G=new Ut({props:{$$slots:{default:[Ht]},$$scope:{ctx:E}}}),Y=new U({props:{name:"update_components",anchor:"diffusers.ModularPipeline.update_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.update_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; 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&#x2019;t nn.Modules (e.g., <code>unet=new_unet, text_encoder=new_encoder</code>)</li>
<li>ComponentSpec objects: Only supports default_creation_method == &#x201C;from_config&#x201D;, will call create()
method to create a new component (e.g., <code>guider=ComponentSpec(name=&quot;guider&quot;, type_hint=ClassifierFreeGuidance, config={...}, default_creation_method=&quot;from_config&quot;)</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_12229/src/diffusers/modular_pipelines/modular_pipeline.py#L1881",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>
`}}),X=new Xt({props:{anchor:"diffusers.ModularPipeline.update_components.example",$$slots:{default:[At]},$$scope:{ctx:E}}}),O=new Rt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline.md"}}),{c(){i=r("meta"),P=n(),c=r("p"),_=n(),b(j.$$.fragment),g=n(),b(k.$$.fragment),xe=n(),a=r("div"),b(R.$$.fragment),Ie=n(),K=r("p"),K.textContent=ct,Je=n(),b(V.$$.fragment),Ue=n(),B=r("div"),b(W.$$.fragment),Ee=n(),ee=r("p"),ee.textContent=mt,Ve=n(),te=r("div"),b(H.$$.fragment),Be=n(),D=r("div"),b(A.$$.fragment),De=n(),ne=r("p"),ne.textContent=ut,Ze=n(),Z=r("div"),b(S.$$.fragment),Ne=n(),oe=r("p"),oe.textContent=ft,Ge=n(),f=r("div"),b(F.$$.fragment),Xe=n(),re=r("p"),re.textContent=gt,Re=n(),se=r("p"),se.textContent=ht,We=n(),ie=r("ol"),ie.innerHTML=_t,He=n(),ae=r("p"),ae.textContent=vt,Ae=n(),le=r("ul"),le.innerHTML=bt,Se=n(),de=r("p"),de.textContent=$t,Fe=n(),pe=r("ul"),pe.innerHTML=wt,qe=n(),N=r("div"),b(q.$$.fragment),ze=n(),ce=r("p"),ce.textContent=yt,Ye=n(),C=r("div"),b(z.$$.fragment),Oe=n(),me=r("p"),me.innerHTML=Mt,Qe=n(),b(G.$$.fragment),Ke=n(),ue=r("p"),ue.innerHTML=xt,et=n(),fe=r("ul"),fe.innerHTML=Ct,tt=n(),m=r("div"),b(Y.$$.fragment),nt=n(),ge=r("p"),ge.textContent=Pt,ot=n(),he=r("p"),he.textContent=Tt,rt=n(),_e=r("ol"),_e.innerHTML=jt,st=n(),ve=r("p"),ve.textContent=kt,it=n(),be=r("ul"),be.innerHTML=Lt,at=n(),b(X.$$.fragment),lt=n(),$e=r("p"),$e.textContent=It,dt=n(),we=r("ul"),we.innerHTML=Jt,Ce=n(),b(O.$$.fragment),Pe=n(),ye=r("p"),this.h()},l(e){const u=Nt("svelte-u9bgzb",document.head);i=s(u,"META",{name:!0,content:!0}),u.forEach(l),P=o(e),c=s(e,"P",{}),L(c).forEach(l),_=o(e),$(j.$$.fragment,e),g=o(e),$(k.$$.fragment,e),xe=o(e),a=s(e,"DIV",{class:!0});var d=L(a);$(R.$$.fragment,d),Ie=o(d),K=s(d,"P",{"data-svelte-h":!0}),p(K)!=="svelte-gyuepy"&&(K.textContent=ct),Je=o(d),$(V.$$.fragment,d),Ue=o(d),B=s(d,"DIV",{class:!0});var Q=L(B);$(W.$$.fragment,Q),Ee=o(Q),ee=s(Q,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-1ii3iq9"&&(ee.textContent=mt),Q.forEach(l),Ve=o(d),te=s(d,"DIV",{class:!0});var Me=L(te);$(H.$$.fragment,Me),Me.forEach(l),Be=o(d),D=s(d,"DIV",{class:!0});var je=L(D);$(A.$$.fragment,je),De=o(je),ne=s(je,"P",{"data-svelte-h":!0}),p(ne)!=="svelte-1tx894b"&&(ne.textContent=ut),je.forEach(l),Ze=o(d),Z=s(d,"DIV",{class:!0});var ke=L(Z);$(S.$$.fragment,ke),Ne=o(ke),oe=s(ke,"P",{"data-svelte-h":!0}),p(oe)!=="svelte-1h5zyvw"&&(oe.textContent=ft),ke.forEach(l),Ge=o(d),f=s(d,"DIV",{class:!0});var v=L(f);$(F.$$.fragment,v),Xe=o(v),re=s(v,"P",{"data-svelte-h":!0}),p(re)!=="svelte-1ooq1qq"&&(re.textContent=gt),Re=o(v),se=s(v,"P",{"data-svelte-h":!0}),p(se)!=="svelte-cf9wby"&&(se.textContent=ht),We=o(v),ie=s(v,"OL",{"data-svelte-h":!0}),p(ie)!=="svelte-k19u0o"&&(ie.innerHTML=_t),He=o(v),ae=s(v,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-1jlcxv6"&&(ae.textContent=vt),Ae=o(v),le=s(v,"UL",{"data-svelte-h":!0}),p(le)!=="svelte-yc3ohb"&&(le.innerHTML=bt),Se=o(v),de=s(v,"P",{"data-svelte-h":!0}),p(de)!=="svelte-1biq3pv"&&(de.textContent=$t),Fe=o(v),pe=s(v,"UL",{"data-svelte-h":!0}),p(pe)!=="svelte-1n75vyc"&&(pe.innerHTML=wt),v.forEach(l),qe=o(d),N=s(d,"DIV",{class:!0});var Le=L(N);$(q.$$.fragment,Le),ze=o(Le),ce=s(Le,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-1p6ifd4"&&(ce.textContent=yt),Le.forEach(l),Ye=o(d),C=s(d,"DIV",{class:!0});var J=L(C);$(z.$$.fragment,J),Oe=o(J),me=s(J,"P",{"data-svelte-h":!0}),p(me)!=="svelte-1vbhnip"&&(me.innerHTML=Mt),Qe=o(J),$(G.$$.fragment,J),Ke=o(J),ue=s(J,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-5ul9n2"&&(ue.innerHTML=xt),et=o(J),fe=s(J,"UL",{"data-svelte-h":!0}),p(fe)!=="svelte-1icy6l9"&&(fe.innerHTML=Ct),J.forEach(l),tt=o(d),m=s(d,"DIV",{class:!0});var h=L(m);$(Y.$$.fragment,h),nt=o(h),ge=s(h,"P",{"data-svelte-h":!0}),p(ge)!=="svelte-r0j5xc"&&(ge.textContent=Pt),ot=o(h),he=s(h,"P",{"data-svelte-h":!0}),p(he)!=="svelte-1p350mx"&&(he.textContent=Tt),rt=o(h),_e=s(h,"OL",{"data-svelte-h":!0}),p(_e)!=="svelte-z06v4z"&&(_e.innerHTML=jt),st=o(h),ve=s(h,"P",{"data-svelte-h":!0}),p(ve)!=="svelte-1x075vc"&&(ve.textContent=kt),it=o(h),be=s(h,"UL",{"data-svelte-h":!0}),p(be)!=="svelte-1v9kzk0"&&(be.innerHTML=Lt),at=o(h),$(X.$$.fragment,h),lt=o(h),$e=s(h,"P",{"data-svelte-h":!0}),p($e)!=="svelte-1biq3pv"&&($e.textContent=It),dt=o(h),we=s(h,"UL",{"data-svelte-h":!0}),p(we)!=="svelte-v3x766"&&(we.innerHTML=Jt),h.forEach(l),d.forEach(l),Ce=o(e),$(O.$$.fragment,e),Pe=o(e),ye=s(e,"P",{}),L(ye).forEach(l),this.h()},h(){I(i,"name","hf:doc:metadata"),I(i,"content",Ft),I(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),I(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,u){t(document.head,i),T(e,P,u),T(e,c,u),T(e,_,u),w(j,e,u),T(e,g,u),w(k,e,u),T(e,xe,u),T(e,a,u),w(R,a,null),t(a,Ie),t(a,K),t(a,Je),w(V,a,null),t(a,Ue),t(a,B),w(W,B,null),t(B,Ee),t(B,ee),t(a,Ve),t(a,te),w(H,te,null),t(a,Be),t(a,D),w(A,D,null),t(D,De),t(D,ne),t(a,Ze),t(a,Z),w(S,Z,null),t(Z,Ne),t(Z,oe),t(a,Ge),t(a,f),w(F,f,null),t(f,Xe),t(f,re),t(f,Re),t(f,se),t(f,We),t(f,ie),t(f,He),t(f,ae),t(f,Ae),t(f,le),t(f,Se),t(f,de),t(f,Fe),t(f,pe),t(a,qe),t(a,N),w(q,N,null),t(N,ze),t(N,ce),t(a,Ye),t(a,C),w(z,C,null),t(C,Oe),t(C,me),t(C,Qe),w(G,C,null),t(C,Ke),t(C,ue),t(C,et),t(C,fe),t(a,tt),t(a,m),w(Y,m,null),t(m,nt),t(m,ge),t(m,ot),t(m,he),t(m,rt),t(m,_e),t(m,st),t(m,ve),t(m,it),t(m,be),t(m,at),w(X,m,null),t(m,lt),t(m,$e),t(m,dt),t(m,we),T(e,Ce,u),w(O,e,u),T(e,Pe,u),T(e,ye,u),Te=!0},p(e,[u]){const d={};u&2&&(d.$$scope={dirty:u,ctx:e}),V.$set(d);const Q={};u&2&&(Q.$$scope={dirty:u,ctx:e}),G.$set(Q);const Me={};u&2&&(Me.$$scope={dirty:u,ctx:e}),X.$set(Me)},i(e){Te||(y(j.$$.fragment,e),y(k.$$.fragment,e),y(R.$$.fragment,e),y(V.$$.fragment,e),y(W.$$.fragment,e),y(H.$$.fragment,e),y(A.$$.fragment,e),y(S.$$.fragment,e),y(F.$$.fragment,e),y(q.$$.fragment,e),y(z.$$.fragment,e),y(G.$$.fragment,e),y(Y.$$.fragment,e),y(X.$$.fragment,e),y(O.$$.fragment,e),Te=!0)},o(e){M(j.$$.fragment,e),M(k.$$.fragment,e),M(R.$$.fragment,e),M(V.$$.fragment,e),M(W.$$.fragment,e),M(H.$$.fragment,e),M(A.$$.fragment,e),M(S.$$.fragment,e),M(F.$$.fragment,e),M(q.$$.fragment,e),M(z.$$.fragment,e),M(G.$$.fragment,e),M(Y.$$.fragment,e),M(X.$$.fragment,e),M(O.$$.fragment,e),Te=!1},d(e){e&&(l(P),l(c),l(_),l(g),l(xe),l(a),l(Ce),l(Pe),l(ye)),l(i),x(j,e),x(k,e),x(R),x(V),x(W),x(H),x(A),x(S),x(F),x(q),x(z),x(G),x(Y),x(X),x(O,e)}}}const Ft='{"title":"Pipeline","local":"pipeline","sections":[{"title":"ModularPipeline","local":"diffusers.ModularPipeline","sections":[],"depth":2}],"depth":1}';function qt(E){return Bt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class nn extends Dt{constructor(i){super(),Zt(this,i,qt,St,Vt,{})}}export{nn as component};

Xet Storage Details

Size:
25.6 kB
·
Xet hash:
2e7fe75e14b1a255b2dcc3dad1709d67c2745138590f01dbe00853d3864cce9a

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