import{S as _a,i as wa,s as ya,e as s,k as n,w as T,t as d,M as Ta,c as r,d as a,m as p,a as o,x as M,h as f,b as i,G as t,g as c,y as D,L as Ma,q as E,o as $,B as J,v as Da}from"../../../chunks/vendor-hf-doc-builder.js";import{D as Zt}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as Ea}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as $e}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function $a(At){let u,Je,m,I,ie,Z,Qe,le,Ke,Ie,g,P,ne,A,Oe,pe,et,Pe,S,V,tt,at,xe,O,st,ke,ee,de,rt,Ge,x,ot,F,it,lt,Ne,b,k,fe,L,nt,ce,pt,Ue,G,he,v,ue,dt,ft,me,ct,ht,te,ut,mt,ge,_,be,C,gt,bt,ve,_e,vt,_t,ae,wt,je,w,N,we,H,yt,ye,Tt,Be,X,We,y,U,Te,R,Mt,Me,Dt,Ze,h,Y,Et,q,$t,se,Jt,It,Pt,j,z,xt,De,kt,Gt,B,Q,Nt,K,Ut,Ee,jt,Bt,Ae;return Z=new $e({}),A=new $e({}),L=new $e({}),H=new $e({}),X=new Ea({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpVFBpcGVsaW5lJTJDJTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlJTIwJTNEJTIwRGlUUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGRGlULVhMLTItMjU2JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUuc2NoZWR1bGVyJTIwJTNEJTIwRFBNU29sdmVyTXVsdGlzdGVwU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGUuc2NoZWR1bGVyLmNvbmZpZyklMEFwaXBlJTIwJTNEJTIwcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQSUyMyUyMHBpY2slMjB3b3JkcyUyMGZyb20lMjBJbWFnZW5ldCUyMGNsYXNzJTIwbGFiZWxzJTBBcGlwZS5sYWJlbHMlMjAlMjAlMjMlMjB0byUyMHByaW50JTIwYWxsJTIwYXZhaWxhYmxlJTIwd29yZHMlMEElMEElMjMlMjBwaWNrJTIwd29yZHMlMjB0aGF0JTIwZXhpc3QlMjBpbiUyMEltYWdlTmV0JTBBd29yZHMlMjAlM0QlMjAlNUIlMjJ3aGl0ZSUyMHNoYXJrJTIyJTJDJTIwJTIydW1icmVsbGElMjIlNUQlMEElMEFjbGFzc19pZHMlMjAlM0QlMjBwaXBlLmdldF9sYWJlbF9pZHMod29yZHMpJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2gubWFudWFsX3NlZWQoMzMpJTBBb3V0cHV0JTIwJTNEJTIwcGlwZShjbGFzc19sYWJlbHMlM0RjbGFzc19pZHMlMkMlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNEMjUlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IpJTBBJTBBaW1hZ2UlMjAlM0QlMjBvdXRwdXQuaW1hZ2VzJTVCMCU1RCUyMCUyMCUyMyUyMGxhYmVsJTIwJ3doaXRlJTIwc2hhcmsn",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiTPipeline, DPMSolverMultistepScheduler
<span class="hljs-keyword">import</span> torch

pipe = DiTPipeline.from_pretrained(<span class="hljs-string">&quot;facebook/DiT-XL-2-256&quot;</span>, torch_dtype=torch.float16)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-comment"># pick words from Imagenet class labels</span>
pipe.labels  <span class="hljs-comment"># to print all available words</span>

<span class="hljs-comment"># pick words that exist in ImageNet</span>
words = [<span class="hljs-string">&quot;white shark&quot;</span>, <span class="hljs-string">&quot;umbrella&quot;</span>]

class_ids = pipe.get_label_ids(words)

generator = torch.manual_seed(<span class="hljs-number">33</span>)
output = pipe(class_labels=class_ids, num_inference_steps=<span class="hljs-number">25</span>, generator=generator)

image = output.images[<span class="hljs-number">0</span>]  <span class="hljs-comment"># label &#x27;white shark&#x27;</span>`}}),R=new $e({}),Y=new Zt({props:{name:"class diffusers.DiTPipeline",anchor:"diffusers.DiTPipeline",parameters:[{name:"transformer",val:": Transformer2DModel"},{name:"vae",val:": AutoencoderKL"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"id2label",val:": typing.Union[typing.Dict[int, str], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.DiTPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/v0.17.1/en/api/models#diffusers.Transformer2DModel">Transformer2DModel</a>) &#x2014;
Class conditioned Transformer in Diffusion model to denoise the encoded image latents.`,name:"transformer"},{anchor:"diffusers.DiTPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/v0.17.1/en/api/models#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.DiTPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/v0.17.1/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>dit</code> to denoise the encoded image latents.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/dit/pipeline_dit.py#L31"}}),z=new Zt({props:{name:"__call__",anchor:"diffusers.DiTPipeline.__call__",parameters:[{name:"class_labels",val:": typing.List[int]"},{name:"guidance_scale",val:": float = 4.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"num_inference_steps",val:": int = 50"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.DiTPipeline.__call__.class_labels",description:`<strong>class_labels</strong> (List[int]) &#x2014;
List of imagenet class labels for the images to be generated.`,name:"class_labels"},{anchor:"diffusers.DiTPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#x2014;
Scale of the guidance signal.`,name:"guidance_scale"},{anchor:"diffusers.DiTPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator</a> to make generation
deterministic.`,name:"generator"},{anchor:"diffusers.DiTPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 250) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality image at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.DiTPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generate image. Choose between
<a href="https://pillow.readthedocs.io/en/stable/" rel="nofollow">PIL</a>: <code>PIL.Image.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.DiTPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/v0.17.1/en/api/outputs#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/dit/pipeline_dit.py#L86"}}),Q=new Zt({props:{name:"get_label_ids",anchor:"diffusers.DiTPipeline.get_label_ids",parameters:[{name:"label",val:": typing.Union[str, typing.List[str]]"}],parametersDescription:[{anchor:"diffusers.DiTPipeline.get_label_ids.label",description:"<strong>label</strong> (<code>str</code> or <code>dict</code> of <code>str</code>) &#x2014; label strings to be mapped to class ids.",name:"label"}],source:"https://github.com/huggingface/diffusers/blob/v0.17.1/src/diffusers/pipelines/dit/pipeline_dit.py#L63",returnDescription:`
<p>Class ids to be processed by pipeline.</p>
`,returnType:`
<p><code>list</code> of <code>int</code></p>
`}}),{c(){u=s("meta"),Je=n(),m=s("h1"),I=s("a"),ie=s("span"),T(Z.$$.fragment),Qe=n(),le=s("span"),Ke=d("Scalable Diffusion Models with Transformers (DiT)"),Ie=n(),g=s("h2"),P=s("a"),ne=s("span"),T(A.$$.fragment),Oe=n(),pe=s("span"),et=d("Overview"),Pe=n(),S=s("p"),V=s("a"),tt=d("Scalable Diffusion Models with Transformers"),at=d(" (DiT) by William Peebles and Saining Xie."),xe=n(),O=s("p"),st=d("The abstract of the paper is the following:"),ke=n(),ee=s("p"),de=s("em"),rt=d("We explore a new class of diffusion models based on the transformer architecture. We train latent diffusion models of images, replacing the commonly-used U-Net backbone with a transformer that operates on latent patches. We analyze the scalability of our Diffusion Transformers (DiTs) through the lens of forward pass complexity as measured by Gflops. We find that DiTs with higher Gflops \u2014 through increased transformer depth/width or increased number of input tokens \u2014 consistently have lower FID. In addition to possessing good scalability properties, our largest DiT-XL/2 models outperform all prior diffusion models on the class-conditional ImageNet 512x512 and 256x256 benchmarks, achieving a state-of-the-art FID of 2.27 on the latter."),Ge=n(),x=s("p"),ot=d("The original codebase of this paper can be found here: "),F=s("a"),it=d("facebookresearch/dit"),lt=d("."),Ne=n(),b=s("h2"),k=s("a"),fe=s("span"),T(L.$$.fragment),nt=n(),ce=s("span"),pt=d("Available Pipelines:"),Ue=n(),G=s("table"),he=s("thead"),v=s("tr"),ue=s("th"),dt=d("Pipeline"),ft=n(),me=s("th"),ct=d("Tasks"),ht=n(),te=s("th"),ut=d("Colab"),mt=n(),ge=s("tbody"),_=s("tr"),be=s("td"),C=s("a"),gt=d("pipeline_dit.py"),bt=n(),ve=s("td"),_e=s("em"),vt=d("Conditional Image Generation"),_t=n(),ae=s("td"),wt=d("-"),je=n(),w=s("h2"),N=s("a"),we=s("span"),T(H.$$.fragment),yt=n(),ye=s("span"),Tt=d("Usage example"),Be=n(),T(X.$$.fragment),We=n(),y=s("h2"),U=s("a"),Te=s("span"),T(R.$$.fragment),Mt=n(),Me=s("span"),Dt=d("DiTPipeline"),Ze=n(),h=s("div"),T(Y.$$.fragment),Et=n(),q=s("p"),$t=d("This pipeline inherits from "),se=s("a"),Jt=d("DiffusionPipeline"),It=d(`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Pt=n(),j=s("div"),T(z.$$.fragment),xt=n(),De=s("p"),kt=d("Function invoked when calling the pipeline for generation."),Gt=n(),B=s("div"),T(Q.$$.fragment),Nt=n(),K=s("p"),Ut=d("Map label strings, "),Ee=s("em"),jt=d("e.g."),Bt=d(" from ImageNet, to corresponding class ids."),this.h()},l(e){const l=Ta('[data-svelte="svelte-1phssyn"]',document.head);u=r(l,"META",{name:!0,content:!0}),l.forEach(a),Je=p(e),m=r(e,"H1",{class:!0});var Se=o(m);I=r(Se,"A",{id:!0,class:!0,href:!0});var St=o(I);ie=r(St,"SPAN",{});var Vt=o(ie);M(Z.$$.fragment,Vt),Vt.forEach(a),St.forEach(a),Qe=p(Se),le=r(Se,"SPAN",{});var Ft=o(le);Ke=f(Ft,"Scalable Diffusion Models with Transformers (DiT)"),Ft.forEach(a),Se.forEach(a),Ie=p(e),g=r(e,"H2",{class:!0});var Ve=o(g);P=r(Ve,"A",{id:!0,class:!0,href:!0});var Lt=o(P);ne=r(Lt,"SPAN",{});var Ct=o(ne);M(A.$$.fragment,Ct),Ct.forEach(a),Lt.forEach(a),Oe=p(Ve),pe=r(Ve,"SPAN",{});var Ht=o(pe);et=f(Ht,"Overview"),Ht.forEach(a),Ve.forEach(a),Pe=p(e),S=r(e,"P",{});var Wt=o(S);V=r(Wt,"A",{href:!0,rel:!0});var Xt=o(V);tt=f(Xt,"Scalable Diffusion Models with Transformers"),Xt.forEach(a),at=f(Wt," (DiT) by William Peebles and Saining Xie."),Wt.forEach(a),xe=p(e),O=r(e,"P",{});var Rt=o(O);st=f(Rt,"The abstract of the paper is the following:"),Rt.forEach(a),ke=p(e),ee=r(e,"P",{});var Yt=o(ee);de=r(Yt,"EM",{});var qt=o(de);rt=f(qt,"We explore a new class of diffusion models based on the transformer architecture. We train latent diffusion models of images, replacing the commonly-used U-Net backbone with a transformer that operates on latent patches. We analyze the scalability of our Diffusion Transformers (DiTs) through the lens of forward pass complexity as measured by Gflops. We find that DiTs with higher Gflops \u2014 through increased transformer depth/width or increased number of input tokens \u2014 consistently have lower FID. In addition to possessing good scalability properties, our largest DiT-XL/2 models outperform all prior diffusion models on the class-conditional ImageNet 512x512 and 256x256 benchmarks, achieving a state-of-the-art FID of 2.27 on the latter."),qt.forEach(a),Yt.forEach(a),Ge=p(e),x=r(e,"P",{});var Fe=o(x);ot=f(Fe,"The original codebase of this paper can be found here: "),F=r(Fe,"A",{href:!0,rel:!0});var zt=o(F);it=f(zt,"facebookresearch/dit"),zt.forEach(a),lt=f(Fe,"."),Fe.forEach(a),Ne=p(e),b=r(e,"H2",{class:!0});var Le=o(b);k=r(Le,"A",{id:!0,class:!0,href:!0});var Qt=o(k);fe=r(Qt,"SPAN",{});var Kt=o(fe);M(L.$$.fragment,Kt),Kt.forEach(a),Qt.forEach(a),nt=p(Le),ce=r(Le,"SPAN",{});var Ot=o(ce);pt=f(Ot,"Available Pipelines:"),Ot.forEach(a),Le.forEach(a),Ue=p(e),G=r(e,"TABLE",{});var Ce=o(G);he=r(Ce,"THEAD",{});var ea=o(he);v=r(ea,"TR",{});var re=o(v);ue=r(re,"TH",{});var ta=o(ue);dt=f(ta,"Pipeline"),ta.forEach(a),ft=p(re),me=r(re,"TH",{});var aa=o(me);ct=f(aa,"Tasks"),aa.forEach(a),ht=p(re),te=r(re,"TH",{align:!0});var sa=o(te);ut=f(sa,"Colab"),sa.forEach(a),re.forEach(a),ea.forEach(a),mt=p(Ce),ge=r(Ce,"TBODY",{});var ra=o(ge);_=r(ra,"TR",{});var oe=o(_);be=r(oe,"TD",{});var oa=o(be);C=r(oa,"A",{href:!0,rel:!0});var ia=o(C);gt=f(ia,"pipeline_dit.py"),ia.forEach(a),oa.forEach(a),bt=p(oe),ve=r(oe,"TD",{});var la=o(ve);_e=r(la,"EM",{});var na=o(_e);vt=f(na,"Conditional Image Generation"),na.forEach(a),la.forEach(a),_t=p(oe),ae=r(oe,"TD",{align:!0});var pa=o(ae);wt=f(pa,"-"),pa.forEach(a),oe.forEach(a),ra.forEach(a),Ce.forEach(a),je=p(e),w=r(e,"H2",{class:!0});var He=o(w);N=r(He,"A",{id:!0,class:!0,href:!0});var da=o(N);we=r(da,"SPAN",{});var fa=o(we);M(H.$$.fragment,fa),fa.forEach(a),da.forEach(a),yt=p(He),ye=r(He,"SPAN",{});var ca=o(ye);Tt=f(ca,"Usage example"),ca.forEach(a),He.forEach(a),Be=p(e),M(X.$$.fragment,e),We=p(e),y=r(e,"H2",{class:!0});var Xe=o(y);U=r(Xe,"A",{id:!0,class:!0,href:!0});var ha=o(U);Te=r(ha,"SPAN",{});var ua=o(Te);M(R.$$.fragment,ua),ua.forEach(a),ha.forEach(a),Mt=p(Xe),Me=r(Xe,"SPAN",{});var ma=o(Me);Dt=f(ma,"DiTPipeline"),ma.forEach(a),Xe.forEach(a),Ze=p(e),h=r(e,"DIV",{class:!0});var W=o(h);M(Y.$$.fragment,W),Et=p(W),q=r(W,"P",{});var Re=o(q);$t=f(Re,"This pipeline inherits from "),se=r(Re,"A",{href:!0});var ga=o(se);Jt=f(ga,"DiffusionPipeline"),ga.forEach(a),It=f(Re,`. Check the superclass documentation for the generic methods the
library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)`),Re.forEach(a),Pt=p(W),j=r(W,"DIV",{class:!0});var Ye=o(j);M(z.$$.fragment,Ye),xt=p(Ye),De=r(Ye,"P",{});var ba=o(De);kt=f(ba,"Function invoked when calling the pipeline for generation."),ba.forEach(a),Ye.forEach(a),Gt=p(W),B=r(W,"DIV",{class:!0});var qe=o(B);M(Q.$$.fragment,qe),Nt=p(qe),K=r(qe,"P",{});var ze=o(K);Ut=f(ze,"Map label strings, "),Ee=r(ze,"EM",{});var va=o(Ee);jt=f(va,"e.g."),va.forEach(a),Bt=f(ze," from ImageNet, to corresponding class ids."),ze.forEach(a),qe.forEach(a),W.forEach(a),this.h()},h(){i(u,"name","hf:doc:metadata"),i(u,"content",JSON.stringify(Ja)),i(I,"id","scalable-diffusion-models-with-transformers-dit"),i(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(I,"href","#scalable-diffusion-models-with-transformers-dit"),i(m,"class","relative group"),i(P,"id","overview"),i(P,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(P,"href","#overview"),i(g,"class","relative group"),i(V,"href","https://arxiv.org/abs/2212.09748"),i(V,"rel","nofollow"),i(F,"href","https://github.com/facebookresearch/dit"),i(F,"rel","nofollow"),i(k,"id","available-pipelines"),i(k,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(k,"href","#available-pipelines"),i(b,"class","relative group"),i(te,"align","center"),i(C,"href","https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/dit/pipeline_dit.py"),i(C,"rel","nofollow"),i(ae,"align","center"),i(N,"id","usage-example"),i(N,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(N,"href","#usage-example"),i(w,"class","relative group"),i(U,"id","diffusers.DiTPipeline"),i(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(U,"href","#diffusers.DiTPipeline"),i(y,"class","relative group"),i(se,"href","/docs/diffusers/v0.17.1/en/api/diffusion_pipeline#diffusers.DiffusionPipeline"),i(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(h,"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,l){t(document.head,u),c(e,Je,l),c(e,m,l),t(m,I),t(I,ie),D(Z,ie,null),t(m,Qe),t(m,le),t(le,Ke),c(e,Ie,l),c(e,g,l),t(g,P),t(P,ne),D(A,ne,null),t(g,Oe),t(g,pe),t(pe,et),c(e,Pe,l),c(e,S,l),t(S,V),t(V,tt),t(S,at),c(e,xe,l),c(e,O,l),t(O,st),c(e,ke,l),c(e,ee,l),t(ee,de),t(de,rt),c(e,Ge,l),c(e,x,l),t(x,ot),t(x,F),t(F,it),t(x,lt),c(e,Ne,l),c(e,b,l),t(b,k),t(k,fe),D(L,fe,null),t(b,nt),t(b,ce),t(ce,pt),c(e,Ue,l),c(e,G,l),t(G,he),t(he,v),t(v,ue),t(ue,dt),t(v,ft),t(v,me),t(me,ct),t(v,ht),t(v,te),t(te,ut),t(G,mt),t(G,ge),t(ge,_),t(_,be),t(be,C),t(C,gt),t(_,bt),t(_,ve),t(ve,_e),t(_e,vt),t(_,_t),t(_,ae),t(ae,wt),c(e,je,l),c(e,w,l),t(w,N),t(N,we),D(H,we,null),t(w,yt),t(w,ye),t(ye,Tt),c(e,Be,l),D(X,e,l),c(e,We,l),c(e,y,l),t(y,U),t(U,Te),D(R,Te,null),t(y,Mt),t(y,Me),t(Me,Dt),c(e,Ze,l),c(e,h,l),D(Y,h,null),t(h,Et),t(h,q),t(q,$t),t(q,se),t(se,Jt),t(q,It),t(h,Pt),t(h,j),D(z,j,null),t(j,xt),t(j,De),t(De,kt),t(h,Gt),t(h,B),D(Q,B,null),t(B,Nt),t(B,K),t(K,Ut),t(K,Ee),t(Ee,jt),t(K,Bt),Ae=!0},p:Ma,i(e){Ae||(E(Z.$$.fragment,e),E(A.$$.fragment,e),E(L.$$.fragment,e),E(H.$$.fragment,e),E(X.$$.fragment,e),E(R.$$.fragment,e),E(Y.$$.fragment,e),E(z.$$.fragment,e),E(Q.$$.fragment,e),Ae=!0)},o(e){$(Z.$$.fragment,e),$(A.$$.fragment,e),$(L.$$.fragment,e),$(H.$$.fragment,e),$(X.$$.fragment,e),$(R.$$.fragment,e),$(Y.$$.fragment,e),$(z.$$.fragment,e),$(Q.$$.fragment,e),Ae=!1},d(e){a(u),e&&a(Je),e&&a(m),J(Z),e&&a(Ie),e&&a(g),J(A),e&&a(Pe),e&&a(S),e&&a(xe),e&&a(O),e&&a(ke),e&&a(ee),e&&a(Ge),e&&a(x),e&&a(Ne),e&&a(b),J(L),e&&a(Ue),e&&a(G),e&&a(je),e&&a(w),J(H),e&&a(Be),J(X,e),e&&a(We),e&&a(y),J(R),e&&a(Ze),e&&a(h),J(Y),J(z),J(Q)}}}const Ja={local:"scalable-diffusion-models-with-transformers-dit",sections:[{local:"overview",title:"Overview"},{local:"available-pipelines",title:"Available Pipelines:"},{local:"usage-example",title:"Usage example"},{local:"diffusers.DiTPipeline",title:"DiTPipeline"}],title:"Scalable Diffusion Models with Transformers (DiT)"};function Ia(At){return Da(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Na extends _a{constructor(u){super();wa(this,u,Ia,$a,ya,{})}}export{Na as default,Ja as metadata};
