import{S as It,i as qt,s as At,e as n,k as d,w as L,t as r,M as zt,c as o,d as i,m as u,a,x as M,h as s,b as f,G as t,g as p,y as S,q as N,o as G,B as F,v as Ct}from"../../../chunks/vendor-hf-doc-builder.js";import{T as Ot}from"../../../chunks/Tip-hf-doc-builder.js";import{D as ke}from"../../../chunks/Docstring-hf-doc-builder.js";import{I as ft}from"../../../chunks/IconCopyLink-hf-doc-builder.js";function Lt(pe){let c,E,m,v,P,g,W,x;return{c(){c=n("p"),E=r("Make sure to check out the Schedulers "),m=n("a"),v=r("guide"),P=r(" to learn how to explore the tradeoff between scheduler speed and quality, and see the "),g=n("a"),W=r("reuse components across pipelines"),x=r(" section to learn how to efficiently load the same components into multiple pipelines."),this.h()},l($){c=o($,"P",{});var _=a(c);E=s(_,"Make sure to check out the Schedulers "),m=o(_,"A",{href:!0});var y=a(m);v=s(y,"guide"),y.forEach(i),P=s(_," to learn how to explore the tradeoff between scheduler speed and quality, and see the "),g=o(_,"A",{href:!0});var w=a(g);W=s(w,"reuse components across pipelines"),w.forEach(i),x=s(_," section to learn how to efficiently load the same components into multiple pipelines."),_.forEach(i),this.h()},h(){f(m,"href","/using-diffusers/schedulers"),f(g,"href","/using-diffusers/loading#reuse-components-across-pipelines")},m($,_){p($,c,_),t(c,E),t(c,m),t(m,v),t(c,P),t(c,g),t(g,W),t(c,x)},d($){$&&i(c)}}}function Mt(pe){let c,E,m,v,P,g,W,x,$,_,y,w,Ie,qe,me,X,Ae,he,ee,ie,ze,ge,k,Ce,B,Oe,Le,_e,I,ve,V,q,ne,R,Me,oe,Se,be,h,U,Ne,ae,Ge,Fe,H,We,te,Be,Re,Ue,A,J,He,re,Je,Ye,z,Y,Ze,b,je,se,Ke,Xe,le,et,tt,fe,it,nt,ye,Q,C,ce,Z,ot,de,at,we,T,j,rt,ue,st,De;return g=new ft({}),I=new Ot({props:{$$slots:{default:[Lt]},$$scope:{ctx:pe}}}),R=new ft({}),U=new ke({props:{name:"class diffusers.VQDiffusionPipeline",anchor:"diffusers.VQDiffusionPipeline",parameters:[{name:"vqvae",val:": VQModel"},{name:"text_encoder",val:": CLIPTextModel"},{name:"tokenizer",val:": CLIPTokenizer"},{name:"transformer",val:": Transformer2DModel"},{name:"scheduler",val:": VQDiffusionScheduler"},{name:"learned_classifier_free_sampling_embeddings",val:": LearnedClassifierFreeSamplingEmbeddings"}],parametersDescription:[{anchor:"diffusers.VQDiffusionPipeline.vqvae",description:`<strong>vqvae</strong> (<a href="/docs/diffusers/main/en/api/models/vq#diffusers.VQModel">VQModel</a>) &#x2014;
Vector Quantized Variational Auto-Encoder (VAE) model to encode and decode images to and from latent
representations.`,name:"vqvae"},{anchor:"diffusers.VQDiffusionPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIPTextModel</a>) &#x2014;
Frozen text-encoder (<a href="https://huggingface.co/openai/clip-vit-base-patch32" rel="nofollow">clip-vit-base-patch32</a>).`,name:"text_encoder"},{anchor:"diffusers.VQDiffusionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>) &#x2014;
A <code>CLIPTokenizer</code> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.VQDiffusionPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/main/en/api/models/transformer2d#diffusers.Transformer2DModel">Transformer2DModel</a>) &#x2014;
A conditional <code>Transformer2DModel</code> to denoise the encoded image latents.`,name:"transformer"},{anchor:"diffusers.VQDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/vq_diffusion#diffusers.VQDiffusionScheduler">VQDiffusionScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py#L52"}}),J=new ke({props:{name:"__call__",anchor:"diffusers.VQDiffusionPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"num_inference_steps",val:": int = 100"},{name:"guidance_scale",val:": float = 5.0"},{name:"truncation_rate",val:": float = 1.0"},{name:"num_images_per_prompt",val:": int = 1"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Union[typing.Callable[[int, int, torch.FloatTensor], NoneType], NoneType] = None"},{name:"callback_steps",val:": int = 1"}],parametersDescription:[{anchor:"diffusers.VQDiffusionPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The prompt or prompts to guide image generation.`,name:"prompt"},{anchor:"diffusers.VQDiffusionPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#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.VQDiffusionPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.5) &#x2014;
A higher guidance scale value encourages the model to generate images closely linked to the text
<code>prompt</code> at the expense of lower image quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.VQDiffusionPipeline.__call__.truncation_rate",description:`<strong>truncation_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0 (equivalent to no truncation)) &#x2014;
Used to &#x201C;truncate&#x201D; the predicted classes for x_0 such that the cumulative probability for a pixel is at
most <code>truncation_rate</code>. The lowest probabilities that would increase the cumulative probability above
<code>truncation_rate</code> are set to zero.`,name:"truncation_rate"},{anchor:"diffusers.VQDiffusionPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.VQDiffusionPipeline.__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"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.VQDiffusionPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.FloatTensor</code> of shape (batch), <em>optional</em>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Must be valid embedding indices.If not provided, a latents tensor will be generated of
completely masked latent pixels.`,name:"latents"},{anchor:"diffusers.VQDiffusionPipeline.__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 generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.VQDiffusionPipeline.__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/main/en/api/pipelines/latent_diffusion_uncond#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.VQDiffusionPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.FloatTensor)</code>.`,name:"callback"},{anchor:"diffusers.VQDiffusionPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function is called. If not specified, the callback is called at
every step.`,name:"callback_steps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py#L163",returnDescription:`
<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/latent_diffusion_uncond#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> is returned, otherwise a <code>tuple</code> is
returned where the first element is a list with the generated images.</p>
`,returnType:`
<p><a
  href="/docs/diffusers/main/en/api/pipelines/latent_diffusion_uncond#diffusers.ImagePipelineOutput"
>ImagePipelineOutput</a> or <code>tuple</code></p>
`}}),Y=new ke({props:{name:"truncate",anchor:"diffusers.VQDiffusionPipeline.truncate",parameters:[{name:"log_p_x_0",val:": FloatTensor"},{name:"truncation_rate",val:": float"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/vq_diffusion/pipeline_vq_diffusion.py#L304"}}),Z=new ft({}),j=new ke({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"}],parametersDescription:[{anchor:"diffusers.ImagePipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or NumPy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L112"}}),{c(){c=n("meta"),E=d(),m=n("h1"),v=n("a"),P=n("span"),L(g.$$.fragment),W=d(),x=n("span"),$=r("VQ Diffusion"),_=d(),y=n("p"),w=n("a"),Ie=r("Vector Quantized Diffusion Model for Text-to-Image Synthesis"),qe=r(" is by Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, Baining Guo."),me=d(),X=n("p"),Ae=r("The abstract from the paper is:"),he=d(),ee=n("p"),ie=n("em"),ze=r("We present the vector quantized diffusion (VQ-Diffusion) model for text-to-image generation. This method is based on a vector quantized variational autoencoder (VQ-VAE) whose latent space is modeled by a conditional variant of the recently developed Denoising Diffusion Probabilistic Model (DDPM). We find that this latent-space method is well-suited for text-to-image generation tasks because it not only eliminates the unidirectional bias with existing methods but also allows us to incorporate a mask-and-replace diffusion strategy to avoid the accumulation of errors, which is a serious problem with existing methods. Our experiments show that the VQ-Diffusion produces significantly better text-to-image generation results when compared with conventional autoregressive (AR) models with similar numbers of parameters. Compared with previous GAN-based text-to-image methods, our VQ-Diffusion can handle more complex scenes and improve the synthesized image quality by a large margin. Finally, we show that the image generation computation in our method can be made highly efficient by reparameterization. With traditional AR methods, the text-to-image generation time increases linearly with the output image resolution and hence is quite time consuming even for normal size images. The VQ-Diffusion allows us to achieve a better trade-off between quality and speed. Our experiments indicate that the VQ-Diffusion model with the reparameterization is fifteen times faster than traditional AR methods while achieving a better image quality."),ge=d(),k=n("p"),Ce=r("The original codebase can be found at "),B=n("a"),Oe=r("microsoft/VQ-Diffusion"),Le=r("."),_e=d(),L(I.$$.fragment),ve=d(),V=n("h2"),q=n("a"),ne=n("span"),L(R.$$.fragment),Me=d(),oe=n("span"),Se=r("VQDiffusionPipeline"),be=d(),h=n("div"),L(U.$$.fragment),Ne=d(),ae=n("p"),Ge=r("Pipeline for text-to-image generation using VQ Diffusion."),Fe=d(),H=n("p"),We=r("This model inherits from "),te=n("a"),Be=r("DiffusionPipeline"),Re=r(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),Ue=d(),A=n("div"),L(J.$$.fragment),He=d(),re=n("p"),Je=r("The call function to the pipeline for generation."),Ye=d(),z=n("div"),L(Y.$$.fragment),Ze=d(),b=n("p"),je=r("Truncates "),se=n("code"),Ke=r("log_p_x_0"),Xe=r(" such that for each column vector, the total cumulative probability is "),le=n("code"),et=r("truncation_rate"),tt=r(`
The lowest probabilities that would increase the cumulative probability above `),fe=n("code"),it=r("truncation_rate"),nt=r(` are set to
zero.`),ye=d(),Q=n("h2"),C=n("a"),ce=n("span"),L(Z.$$.fragment),ot=d(),de=n("span"),at=r("ImagePipelineOutput"),we=d(),T=n("div"),L(j.$$.fragment),rt=d(),ue=n("p"),st=r("Output class for image pipelines."),this.h()},l(e){const l=zt('[data-svelte="svelte-1phssyn"]',document.head);c=o(l,"META",{name:!0,content:!0}),l.forEach(i),E=u(e),m=o(e,"H1",{class:!0});var K=a(m);v=o(K,"A",{id:!0,class:!0,href:!0});var ct=a(v);P=o(ct,"SPAN",{});var dt=a(P);M(g.$$.fragment,dt),dt.forEach(i),ct.forEach(i),W=u(K),x=o(K,"SPAN",{});var ut=a(x);$=s(ut,"VQ Diffusion"),ut.forEach(i),K.forEach(i),_=u(e),y=o(e,"P",{});var lt=a(y);w=o(lt,"A",{href:!0,rel:!0});var pt=a(w);Ie=s(pt,"Vector Quantized Diffusion Model for Text-to-Image Synthesis"),pt.forEach(i),qe=s(lt," is by Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, Baining Guo."),lt.forEach(i),me=u(e),X=o(e,"P",{});var mt=a(X);Ae=s(mt,"The abstract from the paper is:"),mt.forEach(i),he=u(e),ee=o(e,"P",{});var ht=a(ee);ie=o(ht,"EM",{});var gt=a(ie);ze=s(gt,"We present the vector quantized diffusion (VQ-Diffusion) model for text-to-image generation. This method is based on a vector quantized variational autoencoder (VQ-VAE) whose latent space is modeled by a conditional variant of the recently developed Denoising Diffusion Probabilistic Model (DDPM). We find that this latent-space method is well-suited for text-to-image generation tasks because it not only eliminates the unidirectional bias with existing methods but also allows us to incorporate a mask-and-replace diffusion strategy to avoid the accumulation of errors, which is a serious problem with existing methods. Our experiments show that the VQ-Diffusion produces significantly better text-to-image generation results when compared with conventional autoregressive (AR) models with similar numbers of parameters. Compared with previous GAN-based text-to-image methods, our VQ-Diffusion can handle more complex scenes and improve the synthesized image quality by a large margin. Finally, we show that the image generation computation in our method can be made highly efficient by reparameterization. With traditional AR methods, the text-to-image generation time increases linearly with the output image resolution and hence is quite time consuming even for normal size images. The VQ-Diffusion allows us to achieve a better trade-off between quality and speed. Our experiments indicate that the VQ-Diffusion model with the reparameterization is fifteen times faster than traditional AR methods while achieving a better image quality."),gt.forEach(i),ht.forEach(i),ge=u(e),k=o(e,"P",{});var Pe=a(k);Ce=s(Pe,"The original codebase can be found at "),B=o(Pe,"A",{href:!0,rel:!0});var _t=a(B);Oe=s(_t,"microsoft/VQ-Diffusion"),_t.forEach(i),Le=s(Pe,"."),Pe.forEach(i),_e=u(e),M(I.$$.fragment,e),ve=u(e),V=o(e,"H2",{class:!0});var xe=a(V);q=o(xe,"A",{id:!0,class:!0,href:!0});var vt=a(q);ne=o(vt,"SPAN",{});var bt=a(ne);M(R.$$.fragment,bt),bt.forEach(i),vt.forEach(i),Me=u(xe),oe=o(xe,"SPAN",{});var yt=a(oe);Se=s(yt,"VQDiffusionPipeline"),yt.forEach(i),xe.forEach(i),be=u(e),h=o(e,"DIV",{class:!0});var D=a(h);M(U.$$.fragment,D),Ne=u(D),ae=o(D,"P",{});var wt=a(ae);Ge=s(wt,"Pipeline for text-to-image generation using VQ Diffusion."),wt.forEach(i),Fe=u(D),H=o(D,"P",{});var $e=a(H);We=s($e,"This model inherits from "),te=o($e,"A",{href:!0});var Dt=a(te);Be=s(Dt,"DiffusionPipeline"),Dt.forEach(i),Re=s($e,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),$e.forEach(i),Ue=u(D),A=o(D,"DIV",{class:!0});var Ve=a(A);M(J.$$.fragment,Ve),He=u(Ve),re=o(Ve,"P",{});var Pt=a(re);Je=s(Pt,"The call function to the pipeline for generation."),Pt.forEach(i),Ve.forEach(i),Ye=u(D),z=o(D,"DIV",{class:!0});var Qe=a(z);M(Y.$$.fragment,Qe),Ze=u(Qe),b=o(Qe,"P",{});var O=a(b);je=s(O,"Truncates "),se=o(O,"CODE",{});var xt=a(se);Ke=s(xt,"log_p_x_0"),xt.forEach(i),Xe=s(O," such that for each column vector, the total cumulative probability is "),le=o(O,"CODE",{});var $t=a(le);et=s($t,"truncation_rate"),$t.forEach(i),tt=s(O,`
The lowest probabilities that would increase the cumulative probability above `),fe=o(O,"CODE",{});var Vt=a(fe);it=s(Vt,"truncation_rate"),Vt.forEach(i),nt=s(O,` are set to
zero.`),O.forEach(i),Qe.forEach(i),D.forEach(i),ye=u(e),Q=o(e,"H2",{class:!0});var Te=a(Q);C=o(Te,"A",{id:!0,class:!0,href:!0});var Qt=a(C);ce=o(Qt,"SPAN",{});var Tt=a(ce);M(Z.$$.fragment,Tt),Tt.forEach(i),Qt.forEach(i),ot=u(Te),de=o(Te,"SPAN",{});var Et=a(de);at=s(Et,"ImagePipelineOutput"),Et.forEach(i),Te.forEach(i),we=u(e),T=o(e,"DIV",{class:!0});var Ee=a(T);M(j.$$.fragment,Ee),rt=u(Ee),ue=o(Ee,"P",{});var kt=a(ue);st=s(kt,"Output class for image pipelines."),kt.forEach(i),Ee.forEach(i),this.h()},h(){f(c,"name","hf:doc:metadata"),f(c,"content",JSON.stringify(St)),f(v,"id","vq-diffusion"),f(v,"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"),f(v,"href","#vq-diffusion"),f(m,"class","relative group"),f(w,"href","https://huggingface.co/papers/2111.14822"),f(w,"rel","nofollow"),f(B,"href","https://github.com/microsoft/VQ-Diffusion"),f(B,"rel","nofollow"),f(q,"id","diffusers.VQDiffusionPipeline"),f(q,"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"),f(q,"href","#diffusers.VQDiffusionPipeline"),f(V,"class","relative group"),f(te,"href","/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"),f(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(C,"id","diffusers.ImagePipelineOutput"),f(C,"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"),f(C,"href","#diffusers.ImagePipelineOutput"),f(Q,"class","relative group"),f(T,"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,c),p(e,E,l),p(e,m,l),t(m,v),t(v,P),S(g,P,null),t(m,W),t(m,x),t(x,$),p(e,_,l),p(e,y,l),t(y,w),t(w,Ie),t(y,qe),p(e,me,l),p(e,X,l),t(X,Ae),p(e,he,l),p(e,ee,l),t(ee,ie),t(ie,ze),p(e,ge,l),p(e,k,l),t(k,Ce),t(k,B),t(B,Oe),t(k,Le),p(e,_e,l),S(I,e,l),p(e,ve,l),p(e,V,l),t(V,q),t(q,ne),S(R,ne,null),t(V,Me),t(V,oe),t(oe,Se),p(e,be,l),p(e,h,l),S(U,h,null),t(h,Ne),t(h,ae),t(ae,Ge),t(h,Fe),t(h,H),t(H,We),t(H,te),t(te,Be),t(H,Re),t(h,Ue),t(h,A),S(J,A,null),t(A,He),t(A,re),t(re,Je),t(h,Ye),t(h,z),S(Y,z,null),t(z,Ze),t(z,b),t(b,je),t(b,se),t(se,Ke),t(b,Xe),t(b,le),t(le,et),t(b,tt),t(b,fe),t(fe,it),t(b,nt),p(e,ye,l),p(e,Q,l),t(Q,C),t(C,ce),S(Z,ce,null),t(Q,ot),t(Q,de),t(de,at),p(e,we,l),p(e,T,l),S(j,T,null),t(T,rt),t(T,ue),t(ue,st),De=!0},p(e,[l]){const K={};l&2&&(K.$$scope={dirty:l,ctx:e}),I.$set(K)},i(e){De||(N(g.$$.fragment,e),N(I.$$.fragment,e),N(R.$$.fragment,e),N(U.$$.fragment,e),N(J.$$.fragment,e),N(Y.$$.fragment,e),N(Z.$$.fragment,e),N(j.$$.fragment,e),De=!0)},o(e){G(g.$$.fragment,e),G(I.$$.fragment,e),G(R.$$.fragment,e),G(U.$$.fragment,e),G(J.$$.fragment,e),G(Y.$$.fragment,e),G(Z.$$.fragment,e),G(j.$$.fragment,e),De=!1},d(e){i(c),e&&i(E),e&&i(m),F(g),e&&i(_),e&&i(y),e&&i(me),e&&i(X),e&&i(he),e&&i(ee),e&&i(ge),e&&i(k),e&&i(_e),F(I,e),e&&i(ve),e&&i(V),F(R),e&&i(be),e&&i(h),F(U),F(J),F(Y),e&&i(ye),e&&i(Q),F(Z),e&&i(we),e&&i(T),F(j)}}}const St={local:"vq-diffusion",sections:[{local:"diffusers.VQDiffusionPipeline",title:"VQDiffusionPipeline"},{local:"diffusers.ImagePipelineOutput",title:"ImagePipelineOutput"}],title:"VQ Diffusion"};function Nt(pe){return Ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Rt extends It{constructor(c){super();qt(this,c,Nt,Mt,At,{})}}export{Rt as default,St as metadata};
