Buckets:
| import{s as At,o as Ut,n as _e}from"../chunks/scheduler.8c3d61f6.js";import{S as Ct,i as It,g as l,s,r as f,A as kt,h as p,f as n,c as o,j as ue,u,x as m,k as he,y as T,a as i,v as h,d as _,t as b,w}from"../chunks/index.da70eac4.js";import{T as ze}from"../chunks/Tip.1d9b8c37.js";import{D as at}from"../chunks/Docstring.6b390b9a.js";import{C as me}from"../chunks/CodeBlock.00a903b3.js";import{E as St}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as st,E as Bt}from"../chunks/EditOnGithub.1e64e623.js";function Gt(M){let a,c='Make sure to check out the Schedulers <a href="../../using-diffusers/schedulers">guide</a> to learn how to explore the tradeoff between scheduler speed and quality, and see the <a href="../../using-diffusers/loading#reuse-a-pipeline">reuse components across pipelines</a> section to learn how to efficiently load the same components into multiple pipelines.';return{c(){a=l("p"),a.innerHTML=c},l(r){a=p(r,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1qn15hi"&&(a.innerHTML=c)},m(r,d){i(r,a,d)},p:_e,d(r){r&&n(a)}}}function Zt(M){let a,c='You can further improve generation quality by passing the generated image from <a href="/docs/diffusers/pr_10312/en/api/pipelines/pixart_sigma#diffusers.PixArtSigmaPipeline">PixArtSigmaPipeline</a> to the <a href="../../using-diffusers/sdxl#base-to-refiner-model">SDXL refiner</a> model.';return{c(){a=l("p"),a.innerHTML=c},l(r){a=p(r,"P",{"data-svelte-h":!0}),m(a)!=="svelte-9u1tk3"&&(a.innerHTML=c)},m(r,d){i(r,a,d)},p:_e,d(r){r&&n(a)}}}function Wt(M){let a,c="Notice that while initializing <code>pipe</code>, you’re setting <code>text_encoder</code> to <code>None</code> so that it’s not loaded.";return{c(){a=l("p"),a.innerHTML=c},l(r){a=p(r,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1of5pjk"&&(a.innerHTML=c)},m(r,d){i(r,a,d)},p:_e,d(r){r&&n(a)}}}function Lt(M){let a,c="Text embeddings computed in 8-bit can impact the quality of the generated images because of the information loss in the representation space caused by the reduced precision. It’s recommended to compare the outputs with and without 8-bit.";return{c(){a=l("p"),a.textContent=c},l(r){a=p(r,"P",{"data-svelte-h":!0}),m(a)!=="svelte-1rutysd"&&(a.textContent=c)},m(r,d){i(r,a,d)},p:_e,d(r){r&&n(a)}}}function Ht(M){let a,c="Examples:",r,d,y;return d=new me({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwUGl4QXJ0U2lnbWFQaXBlbGluZSUwQSUwQSUyMyUyMFlvdSUyMGNhbiUyMHJlcGxhY2UlMjB0aGUlMjBjaGVja3BvaW50JTIwaWQlMjB3aXRoJTIwJTIyUGl4QXJ0LWFscGhhJTJGUGl4QXJ0LVNpZ21hLVhMLTItNTEyLU1TJTIyJTIwdG9vLiUwQXBpcGUlMjAlM0QlMjBQaXhBcnRTaWdtYVBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJQaXhBcnQtYWxwaGElMkZQaXhBcnQtU2lnbWEtWEwtMi0xMDI0LU1TJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQSUyMyUyMEVuYWJsZSUyMG1lbW9yeSUyMG9wdGltaXphdGlvbnMuJTBBJTIzJTIwcGlwZS5lbmFibGVfbW9kZWxfY3B1X29mZmxvYWQoKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkElMjBzbWFsbCUyMGNhY3R1cyUyMHdpdGglMjBhJTIwaGFwcHklMjBmYWNlJTIwaW4lMjB0aGUlMjBTYWhhcmElMjBkZXNlcnQuJTIyJTBBaW1hZ2UlMjAlM0QlMjBwaXBlKHByb21wdCkuaW1hZ2VzJTVCMCU1RA==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">import</span> torch | |
| <span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> PixArtSigmaPipeline | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># You can replace the checkpoint id with "PixArt-alpha/PixArt-Sigma-XL-2-512-MS" too.</span> | |
| <span class="hljs-meta">>>> </span>pipe = PixArtSigmaPipeline.from_pretrained( | |
| <span class="hljs-meta">... </span> <span class="hljs-string">"PixArt-alpha/PixArt-Sigma-XL-2-1024-MS"</span>, torch_dtype=torch.float16 | |
| <span class="hljs-meta">... </span>) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># Enable memory optimizations.</span> | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># pipe.enable_model_cpu_offload()</span> | |
| <span class="hljs-meta">>>> </span>prompt = <span class="hljs-string">"A small cactus with a happy face in the Sahara desert."</span> | |
| <span class="hljs-meta">>>> </span>image = pipe(prompt).images[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){a=l("p"),a.textContent=c,r=s(),f(d.$$.fragment)},l(g){a=p(g,"P",{"data-svelte-h":!0}),m(a)!=="svelte-kvfsh7"&&(a.textContent=c),r=o(g),u(d.$$.fragment,g)},m(g,v){i(g,a,v),i(g,r,v),h(d,g,v),y=!0},p:_e,i(g){y||(_(d.$$.fragment,g),y=!0)},o(g){b(d.$$.fragment,g),y=!1},d(g){g&&(n(a),n(r)),w(d,g)}}}function Vt(M){let a,c,r,d,y,g,v,ot='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/pixart/header_collage_sigma.jpg"/>',be,S,rt='<a href="https://huggingface.co/papers/2403.04692" rel="nofollow">PixArt-Σ: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation</a> is Junsong Chen, Jincheng Yu, Chongjian Ge, Lewei Yao, Enze Xie, Yue Wu, Zhongdao Wang, James Kwok, Ping Luo, Huchuan Lu, and Zhenguo Li.',we,B,lt="The abstract from the paper is:",xe,G,pt="<em>In this paper, we introduce PixArt-Σ, a Diffusion Transformer model (DiT) capable of directly generating images at 4K resolution. PixArt-Σ represents a significant advancement over its predecessor, PixArt-α, offering images of markedly higher fidelity and improved alignment with text prompts. A key feature of PixArt-Σ is its training efficiency. Leveraging the foundational pre-training of PixArt-α, it evolves from the ‘weaker’ baseline to a ‘stronger’ model via incorporating higher quality data, a process we term “weak-to-strong training”. The advancements in PixArt-Σ are twofold: (1) High-Quality Training Data: PixArt-Σ incorporates superior-quality image data, paired with more precise and detailed image captions. (2) Efficient Token Compression: we propose a novel attention module within the DiT framework that compresses both keys and values, significantly improving efficiency and facilitating ultra-high-resolution image generation. Thanks to these improvements, PixArt-Σ achieves superior image quality and user prompt adherence capabilities with significantly smaller model size (0.6B parameters) than existing text-to-image diffusion models, such as SDXL (2.6B parameters) and SD Cascade (5.1B parameters). Moreover, PixArt-Σ’s capability to generate 4K images supports the creation of high-resolution posters and wallpapers, efficiently bolstering the production of highquality visual content in industries such as film and gaming.</em>",Me,Z,mt='You can find the original codebase at <a href="https://github.com/PixArt-alpha/PixArt-sigma" rel="nofollow">PixArt-alpha/PixArt-sigma</a> and all the available checkpoints at <a href="https://huggingface.co/PixArt-alpha" rel="nofollow">PixArt-alpha</a>.',ye,W,dt="Some notes about this pipeline:",Te,L,ct='<li>It uses a Transformer backbone (instead of a UNet) for denoising. As such it has a similar architecture as <a href="https://hf.co/docs/transformers/model_doc/dit" rel="nofollow">DiT</a>.</li> <li>It was trained using text conditions computed from T5. This aspect makes the pipeline better at following complex text prompts with intricate details.</li> <li>It is good at producing high-resolution images at different aspect ratios. To get the best results, the authors recommend some size brackets which can be found <a href="https://github.com/PixArt-alpha/PixArt-sigma/blob/master/diffusion/data/datasets/utils.py" rel="nofollow">here</a>.</li> <li>It rivals the quality of state-of-the-art text-to-image generation systems (as of this writing) such as PixArt-α, Stable Diffusion XL, Playground V2.0 and DALL-E 3, while being more efficient than them.</li> <li>It shows the ability of generating super high resolution images, such as 2048px or even 4K.</li> <li>It shows that text-to-image models can grow from a weak model to a stronger one through several improvements (VAEs, datasets, and so on.)</li>',ve,j,Pe,A,$e,H,Je,V,gt='Run the <a href="/docs/diffusers/pr_10312/en/api/pipelines/pixart_sigma#diffusers.PixArtSigmaPipeline">PixArtSigmaPipeline</a> with under 8GB GPU VRAM by loading the text encoder in 8-bit precision. Let’s walk through a full-fledged example.',je,E,ft='First, install the <a href="https://github.com/TimDettmers/bitsandbytes" rel="nofollow">bitsandbytes</a> library:',Ae,X,Ue,R,ut="Then load the text encoder in 8-bit:",Ce,q,Ie,Q,ht="Now, use the <code>pipe</code> to encode a prompt:",ke,N,Se,Y,_t="Since text embeddings have been computed, remove the <code>text_encoder</code> and <code>pipe</code> from the memory, and free up some GPU VRAM:",Be,D,Ge,F,bt="Then compute the latents with the prompt embeddings as inputs:",Ze,z,We,U,Le,O,wt="Once the latents are computed, pass it off to the VAE to decode into a real image:",He,K,Ve,ee,xt='By deleting components you aren’t using and flushing the GPU VRAM, you should be able to run <a href="/docs/diffusers/pr_10312/en/api/pipelines/pixart_sigma#diffusers.PixArtSigmaPipeline">PixArtSigmaPipeline</a> with under 8GB GPU VRAM.',Ee,te,Mt='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/pixart/8bits_cat.png"/>',Xe,ne,yt='If you want a report of your memory-usage, run this <a href="https://gist.github.com/sayakpaul/3ae0f847001d342af27018a96f467e4e" rel="nofollow">script</a>.',Re,C,qe,ie,Tt="While loading the <code>text_encoder</code>, you set <code>load_in_8bit</code> to <code>True</code>. You could also specify <code>load_in_4bit</code> to bring your memory requirements down even further to under 7GB.",Qe,ae,Ne,x,se,Oe,de,vt="Pipeline for text-to-image generation using PixArt-Sigma.",Ke,$,oe,et,ce,Pt="Function invoked when calling the pipeline for generation.",tt,I,nt,k,re,it,ge,$t="Encodes the prompt into text encoder hidden states.",Ye,le,De,fe,Fe;return y=new st({props:{title:"PixArt-Σ",local:"pixart-σ",headingTag:"h1"}}),j=new ze({props:{$$slots:{default:[Gt]},$$scope:{ctx:M}}}),A=new ze({props:{$$slots:{default:[Zt]},$$scope:{ctx:M}}}),H=new st({props:{title:"Inference with under 8GB GPU VRAM",local:"inference-with-under-8gb-gpu-vram",headingTag:"h2"}}),X=new me({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1VJTIwYml0c2FuZGJ5dGVz",highlighted:"pip install -U bitsandbytes",wrap:!1}}),q=new me({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFQ1RW5jb2Rlck1vZGVsJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFBpeEFydFNpZ21hUGlwZWxpbmUlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXRleHRfZW5jb2RlciUyMCUzRCUyMFQ1RW5jb2Rlck1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJQaXhBcnQtYWxwaGElMkZQaXhBcnQtU2lnbWEtWEwtMi0xMDI0LU1TJTIyJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIydGV4dF9lbmNvZGVyJTIyJTJDJTBBJTIwJTIwJTIwJTIwbG9hZF9pbl84Yml0JTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMGRldmljZV9tYXAlM0QlMjJhdXRvJTIyJTJDJTBBKSUwQXBpcGUlMjAlM0QlMjBQaXhBcnRTaWdtYVBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJQaXhBcnQtYWxwaGElMkZQaXhBcnQtU2lnbWEtWEwtMi0xMDI0LU1TJTIyJTJDJTBBJTIwJTIwJTIwJTIwdGV4dF9lbmNvZGVyJTNEdGV4dF9lbmNvZGVyJTJDJTBBJTIwJTIwJTIwJTIwdHJhbnNmb3JtZXIlM0ROb25lJTJDJTBBJTIwJTIwJTIwJTIwZGV2aWNlX21hcCUzRCUyMmJhbGFuY2VkJTIyJTBBKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> T5EncoderModel | |
| <span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> PixArtSigmaPipeline | |
| <span class="hljs-keyword">import</span> torch | |
| text_encoder = T5EncoderModel.from_pretrained( | |
| <span class="hljs-string">"PixArt-alpha/PixArt-Sigma-XL-2-1024-MS"</span>, | |
| subfolder=<span class="hljs-string">"text_encoder"</span>, | |
| load_in_8bit=<span class="hljs-literal">True</span>, | |
| device_map=<span class="hljs-string">"auto"</span>, | |
| ) | |
| pipe = PixArtSigmaPipeline.from_pretrained( | |
| <span class="hljs-string">"PixArt-alpha/PixArt-Sigma-XL-2-1024-MS"</span>, | |
| text_encoder=text_encoder, | |
| transformer=<span class="hljs-literal">None</span>, | |
| device_map=<span class="hljs-string">"balanced"</span> | |
| )`,wrap:!1}}),N=new me({props:{code:"d2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMHByb21wdCUyMCUzRCUyMCUyMmN1dGUlMjBjYXQlMjIlMEElMjAlMjAlMjAlMjBwcm9tcHRfZW1iZWRzJTJDJTIwcHJvbXB0X2F0dGVudGlvbl9tYXNrJTJDJTIwbmVnYXRpdmVfZW1iZWRzJTJDJTIwbmVnYXRpdmVfcHJvbXB0X2F0dGVudGlvbl9tYXNrJTIwJTNEJTIwcGlwZS5lbmNvZGVfcHJvbXB0KHByb21wdCk=",highlighted:`<span class="hljs-keyword">with</span> torch.no_grad(): | |
| prompt = <span class="hljs-string">"cute cat"</span> | |
| prompt_embeds, prompt_attention_mask, negative_embeds, negative_prompt_attention_mask = pipe.encode_prompt(prompt)`,wrap:!1}}),D=new me({props:{code:"aW1wb3J0JTIwZ2MlMEElMEFkZWYlMjBmbHVzaCgpJTNBJTBBJTIwJTIwJTIwJTIwZ2MuY29sbGVjdCgpJTBBJTIwJTIwJTIwJTIwdG9yY2guY3VkYS5lbXB0eV9jYWNoZSgpJTBBJTBBZGVsJTIwdGV4dF9lbmNvZGVyJTBBZGVsJTIwcGlwZSUwQWZsdXNoKCk=",highlighted:`<span class="hljs-keyword">import</span> gc | |
| <span class="hljs-keyword">def</span> <span class="hljs-title function_">flush</span>(): | |
| gc.collect() | |
| torch.cuda.empty_cache() | |
| <span class="hljs-keyword">del</span> text_encoder | |
| <span class="hljs-keyword">del</span> pipe | |
| flush()`,wrap:!1}}),z=new me({props:{code:"cGlwZSUyMCUzRCUyMFBpeEFydFNpZ21hUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMlBpeEFydC1hbHBoYSUyRlBpeEFydC1TaWdtYS1YTC0yLTEwMjQtTVMlMjIlMkMlMEElMjAlMjAlMjAlMjB0ZXh0X2VuY29kZXIlM0ROb25lJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTBBKS50byglMjJjdWRhJTIyKSUwQSUwQWxhdGVudHMlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMG5lZ2F0aXZlX3Byb21wdCUzRE5vbmUlMkMlMEElMjAlMjAlMjAlMjBwcm9tcHRfZW1iZWRzJTNEcHJvbXB0X2VtYmVkcyUyQyUwQSUyMCUyMCUyMCUyMG5lZ2F0aXZlX3Byb21wdF9lbWJlZHMlM0RuZWdhdGl2ZV9lbWJlZHMlMkMlMEElMjAlMjAlMjAlMjBwcm9tcHRfYXR0ZW50aW9uX21hc2slM0Rwcm9tcHRfYXR0ZW50aW9uX21hc2slMkMlMEElMjAlMjAlMjAlMjBuZWdhdGl2ZV9wcm9tcHRfYXR0ZW50aW9uX21hc2slM0RuZWdhdGl2ZV9wcm9tcHRfYXR0ZW50aW9uX21hc2slMkMlMEElMjAlMjAlMjAlMjBudW1faW1hZ2VzX3Blcl9wcm9tcHQlM0QxJTJDJTBBJTIwJTIwJTIwJTIwb3V0cHV0X3R5cGUlM0QlMjJsYXRlbnQlMjIlMkMlMEEpLmltYWdlcyUwQSUwQWRlbCUyMHBpcGUudHJhbnNmb3JtZXIlMEFmbHVzaCgp",highlighted:`pipe = PixArtSigmaPipeline.from_pretrained( | |
| <span class="hljs-string">"PixArt-alpha/PixArt-Sigma-XL-2-1024-MS"</span>, | |
| text_encoder=<span class="hljs-literal">None</span>, | |
| torch_dtype=torch.float16, | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| latents = pipe( | |
| negative_prompt=<span class="hljs-literal">None</span>, | |
| prompt_embeds=prompt_embeds, | |
| negative_prompt_embeds=negative_embeds, | |
| prompt_attention_mask=prompt_attention_mask, | |
| negative_prompt_attention_mask=negative_prompt_attention_mask, | |
| num_images_per_prompt=<span class="hljs-number">1</span>, | |
| output_type=<span class="hljs-string">"latent"</span>, | |
| ).images | |
| <span class="hljs-keyword">del</span> pipe.transformer | |
| flush()`,wrap:!1}}),U=new ze({props:{$$slots:{default:[Wt]},$$scope:{ctx:M}}}),K=new me({props:{code:"d2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMGltYWdlJTIwJTNEJTIwcGlwZS52YWUuZGVjb2RlKGxhdGVudHMlMjAlMkYlMjBwaXBlLnZhZS5jb25maWcuc2NhbGluZ19mYWN0b3IlMkMlMjByZXR1cm5fZGljdCUzREZhbHNlKSU1QjAlNUQlMEFpbWFnZSUyMCUzRCUyMHBpcGUuaW1hZ2VfcHJvY2Vzc29yLnBvc3Rwcm9jZXNzKGltYWdlJTJDJTIwb3V0cHV0X3R5cGUlM0QlMjJwaWwlMjIpJTVCMCU1RCUwQWltYWdlLnNhdmUoJTIyY2F0LnBuZyUyMik=",highlighted:`<span class="hljs-keyword">with</span> torch.no_grad(): | |
| image = pipe.vae.decode(latents / pipe.vae.config.scaling_factor, return_dict=<span class="hljs-literal">False</span>)[<span class="hljs-number">0</span>] | |
| image = pipe.image_processor.postprocess(image, output_type=<span class="hljs-string">"pil"</span>)[<span class="hljs-number">0</span>] | |
| image.save(<span class="hljs-string">"cat.png"</span>)`,wrap:!1}}),C=new ze({props:{warning:!0,$$slots:{default:[Lt]},$$scope:{ctx:M}}}),ae=new st({props:{title:"PixArtSigmaPipeline",local:"diffusers.PixArtSigmaPipeline",headingTag:"h2"}}),se=new at({props:{name:"class diffusers.PixArtSigmaPipeline",anchor:"diffusers.PixArtSigmaPipeline",parameters:[{name:"tokenizer",val:": T5Tokenizer"},{name:"text_encoder",val:": T5EncoderModel"},{name:"vae",val:": AutoencoderKL"},{name:"transformer",val:": PixArtTransformer2DModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py#L176"}}),oe=new at({props:{name:"__call__",anchor:"diffusers.PixArtSigmaPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": str = ''"},{name:"num_inference_steps",val:": int = 20"},{name:"timesteps",val:": typing.List[int] = None"},{name:"sigmas",val:": typing.List[float] = None"},{name:"guidance_scale",val:": float = 4.5"},{name:"num_images_per_prompt",val:": typing.Optional[int] = 1"},{name:"height",val:": typing.Optional[int] = None"},{name:"width",val:": typing.Optional[int] = None"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": int = 1"},{name:"clean_caption",val:": bool = True"},{name:"use_resolution_binning",val:": bool = True"},{name:"max_sequence_length",val:": int = 300"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.PixArtSigmaPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt or prompts to guide the image generation. If not defined, one has to pass <code>prompt_embeds</code>. | |
| instead.`,name:"prompt"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt or prompts not to guide the image generation. If not defined, one has to pass | |
| <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is | |
| less than <code>1</code>).`,name:"negative_prompt"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 100) — | |
| 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.PixArtSigmaPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) — | |
| Custom timesteps to use for the denoising process with schedulers which support a <code>timesteps</code> argument | |
| in their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is | |
| passed will be used. Must be in descending order.`,name:"timesteps"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.sigmas",description:`<strong>sigmas</strong> (<code>List[float]</code>, <em>optional</em>) — | |
| Custom sigmas to use for the denoising process with schedulers which support a <code>sigmas</code> argument in | |
| their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is passed | |
| will be used.`,name:"sigmas"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 4.5) — | |
| Guidance scale as defined in <a href="https://arxiv.org/abs/2207.12598" rel="nofollow">Classifier-Free Diffusion Guidance</a>. | |
| <code>guidance_scale</code> is defined as <code>w</code> of equation 2. of <a href="https://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen | |
| Paper</a>. Guidance scale is enabled by setting <code>guidance_scale > 1</code>. Higher guidance scale encourages to generate images that are closely linked to the text <code>prompt</code>, | |
| usually at the expense of lower image quality.`,name:"guidance_scale"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| The number of images to generate per prompt.`,name:"num_images_per_prompt"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size) — | |
| The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, <em>optional</em>, defaults to self.unet.config.sample_size) — | |
| The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) — | |
| Corresponds to parameter eta (η) in the DDIM paper: <a href="https://arxiv.org/abs/2010.02502" rel="nofollow">https://arxiv.org/abs/2010.02502</a>. Only applies to | |
| <a href="/docs/diffusers/pr_10312/en/api/schedulers/ddim#diffusers.DDIMScheduler">schedulers.DDIMScheduler</a>, will be ignored for others.`,name:"eta"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) — | |
| One or a list of <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow">torch generator(s)</a> | |
| to make generation deterministic.`,name:"generator"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image | |
| generation. Can be used to tweak the same generation with different prompts. If not provided, a latents | |
| tensor will ge generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not | |
| provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.prompt_attention_mask",description:"<strong>prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) — Pre-generated attention mask for text embeddings.",name:"prompt_attention_mask"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated negative text embeddings. For PixArt-Sigma this negative prompt should be "". If not | |
| provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.negative_prompt_attention_mask",description:`<strong>negative_prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated attention mask for negative text embeddings.`,name:"negative_prompt_attention_mask"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"pil"</code>) — | |
| 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.PixArtSigmaPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to return a <code>~pipelines.stable_diffusion.IFPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) — | |
| A function that will be called every <code>callback_steps</code> steps during inference. The function will be | |
| called with the following arguments: <code>callback(step: int, timestep: int, latents: torch.Tensor)</code>.`,name:"callback"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| The frequency at which the <code>callback</code> function will be called. If not specified, the callback will be | |
| called at every step.`,name:"callback_steps"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.clean_caption",description:`<strong>clean_caption</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether or not to clean the caption before creating embeddings. Requires <code>beautifulsoup4</code> and <code>ftfy</code> to | |
| be installed. If the dependencies are not installed, the embeddings will be created from the raw | |
| prompt.`,name:"clean_caption"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.use_resolution_binning",description:`<strong>use_resolution_binning</strong> (<code>bool</code> defaults to <code>True</code>) — | |
| If set to <code>True</code>, the requested height and width are first mapped to the closest resolutions using | |
| <code>ASPECT_RATIO_1024_BIN</code>. After the produced latents are decoded into images, they are resized back to | |
| the requested resolution. Useful for generating non-square images.`,name:"use_resolution_binning"},{anchor:"diffusers.PixArtSigmaPipeline.__call__.max_sequence_length",description:"<strong>max_sequence_length</strong> (<code>int</code> defaults to 300) — Maximum sequence length to use with the <code>prompt</code>.",name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py#L602",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>If <code>return_dict</code> is <code>True</code>, <a | |
| href="/docs/diffusers/pr_10312/en/api/pipelines/latent_diffusion#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:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p><a | |
| href="/docs/diffusers/pr_10312/en/api/pipelines/latent_diffusion#diffusers.ImagePipelineOutput" | |
| >ImagePipelineOutput</a> or <code>tuple</code></p> | |
| `}}),I=new St({props:{anchor:"diffusers.PixArtSigmaPipeline.__call__.example",$$slots:{default:[Ht]},$$scope:{ctx:M}}}),re=new at({props:{name:"encode_prompt",anchor:"diffusers.PixArtSigmaPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"negative_prompt",val:": str = ''"},{name:"num_images_per_prompt",val:": int = 1"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"clean_caption",val:": bool = False"},{name:"max_sequence_length",val:": int = 300"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| prompt to be encoded`,name:"prompt"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) — | |
| The prompt not to guide the image generation. If not defined, one has to pass <code>negative_prompt_embeds</code> | |
| instead. Ignored when not using guidance (i.e., ignored if <code>guidance_scale</code> is less than <code>1</code>). For | |
| PixArt-Alpha, this should be "".`,name:"negative_prompt"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| whether to use classifier free guidance or not`,name:"do_classifier_free_guidance"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.num_images_per_prompt",description:`<strong>num_images_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) — | |
| number of images that should be generated per prompt`,name:"num_images_per_prompt"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.device",description:`<strong>device</strong> — (<code>torch.device</code>, <em>optional</em>): | |
| torch device to place the resulting embeddings on`,name:"device"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt weighting. If not | |
| provided, text embeddings will be generated from <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) — | |
| Pre-generated negative text embeddings. For PixArt-Alpha, it’s should be the embeddings of the "" | |
| string.`,name:"negative_prompt_embeds"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.clean_caption",description:`<strong>clean_caption</strong> (<code>bool</code>, defaults to <code>False</code>) — | |
| If <code>True</code>, the function will preprocess and clean the provided caption before encoding.`,name:"clean_caption"},{anchor:"diffusers.PixArtSigmaPipeline.encode_prompt.max_sequence_length",description:"<strong>max_sequence_length</strong> (<code>int</code>, defaults to 300) — Maximum sequence length to use for the prompt.",name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py#L218"}}),le=new Bt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/pixart_sigma.md"}}),{c(){a=l("meta"),c=s(),r=l("p"),d=s(),f(y.$$.fragment),g=s(),v=l("p"),v.innerHTML=ot,be=s(),S=l("p"),S.innerHTML=rt,we=s(),B=l("p"),B.textContent=lt,xe=s(),G=l("p"),G.innerHTML=pt,Me=s(),Z=l("p"),Z.innerHTML=mt,ye=s(),W=l("p"),W.textContent=dt,Te=s(),L=l("ul"),L.innerHTML=ct,ve=s(),f(j.$$.fragment),Pe=s(),f(A.$$.fragment),$e=s(),f(H.$$.fragment),Je=s(),V=l("p"),V.innerHTML=gt,je=s(),E=l("p"),E.innerHTML=ft,Ae=s(),f(X.$$.fragment),Ue=s(),R=l("p"),R.textContent=ut,Ce=s(),f(q.$$.fragment),Ie=s(),Q=l("p"),Q.innerHTML=ht,ke=s(),f(N.$$.fragment),Se=s(),Y=l("p"),Y.innerHTML=_t,Be=s(),f(D.$$.fragment),Ge=s(),F=l("p"),F.textContent=bt,Ze=s(),f(z.$$.fragment),We=s(),f(U.$$.fragment),Le=s(),O=l("p"),O.textContent=wt,He=s(),f(K.$$.fragment),Ve=s(),ee=l("p"),ee.innerHTML=xt,Ee=s(),te=l("p"),te.innerHTML=Mt,Xe=s(),ne=l("p"),ne.innerHTML=yt,Re=s(),f(C.$$.fragment),qe=s(),ie=l("p"),ie.innerHTML=Tt,Qe=s(),f(ae.$$.fragment),Ne=s(),x=l("div"),f(se.$$.fragment),Oe=s(),de=l("p"),de.textContent=vt,Ke=s(),$=l("div"),f(oe.$$.fragment),et=s(),ce=l("p"),ce.textContent=Pt,tt=s(),f(I.$$.fragment),nt=s(),k=l("div"),f(re.$$.fragment),it=s(),ge=l("p"),ge.textContent=$t,Ye=s(),f(le.$$.fragment),De=s(),fe=l("p"),this.h()},l(e){const t=kt("svelte-u9bgzb",document.head);a=p(t,"META",{name:!0,content:!0}),t.forEach(n),c=o(e),r=p(e,"P",{}),ue(r).forEach(n),d=o(e),u(y.$$.fragment,e),g=o(e),v=p(e,"P",{"data-svelte-h":!0}),m(v)!=="svelte-1h02zzr"&&(v.innerHTML=ot),be=o(e),S=p(e,"P",{"data-svelte-h":!0}),m(S)!=="svelte-1i25npg"&&(S.innerHTML=rt),we=o(e),B=p(e,"P",{"data-svelte-h":!0}),m(B)!=="svelte-1cwsb16"&&(B.textContent=lt),xe=o(e),G=p(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-12smxu3"&&(G.innerHTML=pt),Me=o(e),Z=p(e,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-8e6u65"&&(Z.innerHTML=mt),ye=o(e),W=p(e,"P",{"data-svelte-h":!0}),m(W)!=="svelte-v1sn1g"&&(W.textContent=dt),Te=o(e),L=p(e,"UL",{"data-svelte-h":!0}),m(L)!=="svelte-8ca6jo"&&(L.innerHTML=ct),ve=o(e),u(j.$$.fragment,e),Pe=o(e),u(A.$$.fragment,e),$e=o(e),u(H.$$.fragment,e),Je=o(e),V=p(e,"P",{"data-svelte-h":!0}),m(V)!=="svelte-1p7qkii"&&(V.innerHTML=gt),je=o(e),E=p(e,"P",{"data-svelte-h":!0}),m(E)!=="svelte-c2h3fb"&&(E.innerHTML=ft),Ae=o(e),u(X.$$.fragment,e),Ue=o(e),R=p(e,"P",{"data-svelte-h":!0}),m(R)!=="svelte-5r7318"&&(R.textContent=ut),Ce=o(e),u(q.$$.fragment,e),Ie=o(e),Q=p(e,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-rj1jgt"&&(Q.innerHTML=ht),ke=o(e),u(N.$$.fragment,e),Se=o(e),Y=p(e,"P",{"data-svelte-h":!0}),m(Y)!=="svelte-1ux3xow"&&(Y.innerHTML=_t),Be=o(e),u(D.$$.fragment,e),Ge=o(e),F=p(e,"P",{"data-svelte-h":!0}),m(F)!=="svelte-w3d4de"&&(F.textContent=bt),Ze=o(e),u(z.$$.fragment,e),We=o(e),u(U.$$.fragment,e),Le=o(e),O=p(e,"P",{"data-svelte-h":!0}),m(O)!=="svelte-1yf7wfg"&&(O.textContent=wt),He=o(e),u(K.$$.fragment,e),Ve=o(e),ee=p(e,"P",{"data-svelte-h":!0}),m(ee)!=="svelte-tmbku1"&&(ee.innerHTML=xt),Ee=o(e),te=p(e,"P",{"data-svelte-h":!0}),m(te)!=="svelte-1g55ccf"&&(te.innerHTML=Mt),Xe=o(e),ne=p(e,"P",{"data-svelte-h":!0}),m(ne)!=="svelte-11lvu0m"&&(ne.innerHTML=yt),Re=o(e),u(C.$$.fragment,e),qe=o(e),ie=p(e,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-1i82z60"&&(ie.innerHTML=Tt),Qe=o(e),u(ae.$$.fragment,e),Ne=o(e),x=p(e,"DIV",{class:!0});var P=ue(x);u(se.$$.fragment,P),Oe=o(P),de=p(P,"P",{"data-svelte-h":!0}),m(de)!=="svelte-bjkp5a"&&(de.textContent=vt),Ke=o(P),$=p(P,"DIV",{class:!0});var J=ue($);u(oe.$$.fragment,J),et=o(J),ce=p(J,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-v78lg8"&&(ce.textContent=Pt),tt=o(J),u(I.$$.fragment,J),J.forEach(n),nt=o(P),k=p(P,"DIV",{class:!0});var pe=ue(k);u(re.$$.fragment,pe),it=o(pe),ge=p(pe,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-16q0ax1"&&(ge.textContent=$t),pe.forEach(n),P.forEach(n),Ye=o(e),u(le.$$.fragment,e),De=o(e),fe=p(e,"P",{}),ue(fe).forEach(n),this.h()},h(){he(a,"name","hf:doc:metadata"),he(a,"content",Et),he($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),he(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),he(x,"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,t){T(document.head,a),i(e,c,t),i(e,r,t),i(e,d,t),h(y,e,t),i(e,g,t),i(e,v,t),i(e,be,t),i(e,S,t),i(e,we,t),i(e,B,t),i(e,xe,t),i(e,G,t),i(e,Me,t),i(e,Z,t),i(e,ye,t),i(e,W,t),i(e,Te,t),i(e,L,t),i(e,ve,t),h(j,e,t),i(e,Pe,t),h(A,e,t),i(e,$e,t),h(H,e,t),i(e,Je,t),i(e,V,t),i(e,je,t),i(e,E,t),i(e,Ae,t),h(X,e,t),i(e,Ue,t),i(e,R,t),i(e,Ce,t),h(q,e,t),i(e,Ie,t),i(e,Q,t),i(e,ke,t),h(N,e,t),i(e,Se,t),i(e,Y,t),i(e,Be,t),h(D,e,t),i(e,Ge,t),i(e,F,t),i(e,Ze,t),h(z,e,t),i(e,We,t),h(U,e,t),i(e,Le,t),i(e,O,t),i(e,He,t),h(K,e,t),i(e,Ve,t),i(e,ee,t),i(e,Ee,t),i(e,te,t),i(e,Xe,t),i(e,ne,t),i(e,Re,t),h(C,e,t),i(e,qe,t),i(e,ie,t),i(e,Qe,t),h(ae,e,t),i(e,Ne,t),i(e,x,t),h(se,x,null),T(x,Oe),T(x,de),T(x,Ke),T(x,$),h(oe,$,null),T($,et),T($,ce),T($,tt),h(I,$,null),T(x,nt),T(x,k),h(re,k,null),T(k,it),T(k,ge),i(e,Ye,t),h(le,e,t),i(e,De,t),i(e,fe,t),Fe=!0},p(e,[t]){const P={};t&2&&(P.$$scope={dirty:t,ctx:e}),j.$set(P);const J={};t&2&&(J.$$scope={dirty:t,ctx:e}),A.$set(J);const pe={};t&2&&(pe.$$scope={dirty:t,ctx:e}),U.$set(pe);const Jt={};t&2&&(Jt.$$scope={dirty:t,ctx:e}),C.$set(Jt);const jt={};t&2&&(jt.$$scope={dirty:t,ctx:e}),I.$set(jt)},i(e){Fe||(_(y.$$.fragment,e),_(j.$$.fragment,e),_(A.$$.fragment,e),_(H.$$.fragment,e),_(X.$$.fragment,e),_(q.$$.fragment,e),_(N.$$.fragment,e),_(D.$$.fragment,e),_(z.$$.fragment,e),_(U.$$.fragment,e),_(K.$$.fragment,e),_(C.$$.fragment,e),_(ae.$$.fragment,e),_(se.$$.fragment,e),_(oe.$$.fragment,e),_(I.$$.fragment,e),_(re.$$.fragment,e),_(le.$$.fragment,e),Fe=!0)},o(e){b(y.$$.fragment,e),b(j.$$.fragment,e),b(A.$$.fragment,e),b(H.$$.fragment,e),b(X.$$.fragment,e),b(q.$$.fragment,e),b(N.$$.fragment,e),b(D.$$.fragment,e),b(z.$$.fragment,e),b(U.$$.fragment,e),b(K.$$.fragment,e),b(C.$$.fragment,e),b(ae.$$.fragment,e),b(se.$$.fragment,e),b(oe.$$.fragment,e),b(I.$$.fragment,e),b(re.$$.fragment,e),b(le.$$.fragment,e),Fe=!1},d(e){e&&(n(c),n(r),n(d),n(g),n(v),n(be),n(S),n(we),n(B),n(xe),n(G),n(Me),n(Z),n(ye),n(W),n(Te),n(L),n(ve),n(Pe),n($e),n(Je),n(V),n(je),n(E),n(Ae),n(Ue),n(R),n(Ce),n(Ie),n(Q),n(ke),n(Se),n(Y),n(Be),n(Ge),n(F),n(Ze),n(We),n(Le),n(O),n(He),n(Ve),n(ee),n(Ee),n(te),n(Xe),n(ne),n(Re),n(qe),n(ie),n(Qe),n(Ne),n(x),n(Ye),n(De),n(fe)),n(a),w(y,e),w(j,e),w(A,e),w(H,e),w(X,e),w(q,e),w(N,e),w(D,e),w(z,e),w(U,e),w(K,e),w(C,e),w(ae,e),w(se),w(oe),w(I),w(re),w(le,e)}}}const Et='{"title":"PixArt-Σ","local":"pixart-σ","sections":[{"title":"Inference with under 8GB GPU VRAM","local":"inference-with-under-8gb-gpu-vram","sections":[],"depth":2},{"title":"PixArtSigmaPipeline","local":"diffusers.PixArtSigmaPipeline","sections":[],"depth":2}],"depth":1}';function Xt(M){return Ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zt extends Ct{constructor(a){super(),It(this,a,Xt,Vt,At,{})}}export{zt as component}; | |
Xet Storage Details
- Size:
- 38.3 kB
- Xet hash:
- 5094d36b68bd0101c43895d546a160d96719d441ca0aa565b5d06eb8feebff5f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.