Buckets:

rtrm's picture
download
raw
198 kB
import{s as ja,o as va,n as Mn}from"../chunks/scheduler.53228c21.js";import{S as Za,i as Ia,e as o,s as n,c as h,h as Ga,a,d as l,b as s,f as w,j as p,g,k as J,w as Xa,l as t,m as u,n as M,t as f,o as _,p as y}from"../chunks/index.100fac89.js";import{D as j}from"../chunks/Docstring.ba933fb0.js";import{C as E}from"../chunks/CodeBlock.d30a6509.js";import{E as os}from"../chunks/ExampleCodeBlock.c00328ba.js";import{H as fe,E as Ba}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.88d816fc.js";import{H as Va,a as Ua}from"../chunks/HfOption.fad27e59.js";function xa(V){let r,U='Refer to the <a href="../../optimization/memory">Reduce memory usage</a> guide for more details about the various memory saving techniques.',T,c,m="The LTX-Video model below requires ~10GB of VRAM.",i,b,k;return b=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYUGlwZWxpbmUlMkMlMjBBdXRvTW9kZWwlMEFmcm9tJTIwZGlmZnVzZXJzLmhvb2tzJTIwaW1wb3J0JTIwYXBwbHlfZ3JvdXBfb2ZmbG9hZGluZyUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBleHBvcnRfdG9fdmlkZW8lMEElMEElMjMlMjBmcDglMjBsYXllcndpc2UlMjB3ZWlnaHQtY2FzdGluZyUwQXRyYW5zZm9ybWVyJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJMaWdodHJpY2tzJTJGTFRYLVZpZGVvJTIyJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIydHJhbnNmb3JtZXIlMjIlMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2JTBBKSUwQXRyYW5zZm9ybWVyLmVuYWJsZV9sYXllcndpc2VfY2FzdGluZyglM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JDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEbmVnYXRpdmVfcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwd2lkdGglM0Q3NjglMkMlMEElMjAlMjAlMjAlMjBoZWlnaHQlM0Q1MTIlMkMlMEElMjAlMjAlMjAlMjBudW1fZnJhbWVzJTNEMTYxJTJDJTBBJTIwJTIwJTIwJTIwZGVjb2RlX3RpbWVzdGVwJTNEMC4wMyUyQyUwQSUyMCUyMCUyMCUyMGRlY29kZV9ub2lzZV9zY2FsZSUzRDAuMDI1JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDUwJTJDJTBBKS5mcmFtZXMlNUIwJTVEJTBBZXhwb3J0X3RvX3ZpZGVvKHZpZGVvJTJDJTIwJTIyb3V0cHV0Lm1wNCUyMiUyQyUyMGZwcyUzRDI0KQ==",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXPipeline, AutoModel
<span class="hljs-keyword">from</span> diffusers.hooks <span class="hljs-keyword">import</span> apply_group_offloading
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video
<span class="hljs-comment"># fp8 layerwise weight-casting</span>
transformer = AutoModel.from_pretrained(
<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>,
subfolder=<span class="hljs-string">&quot;transformer&quot;</span>,
torch_dtype=torch.bfloat16
)
transformer.enable_layerwise_casting(
storage_dtype=torch.float8_e4m3fn, compute_dtype=torch.bfloat16
)
pipeline = LTXPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>, transformer=transformer, torch_dtype=torch.bfloat16)
<span class="hljs-comment"># group-offloading</span>
onload_device = torch.device(<span class="hljs-string">&quot;cuda&quot;</span>)
offload_device = torch.device(<span class="hljs-string">&quot;cpu&quot;</span>)
pipeline.transformer.enable_group_offload(onload_device=onload_device, offload_device=offload_device, offload_type=<span class="hljs-string">&quot;leaf_level&quot;</span>, use_stream=<span class="hljs-literal">True</span>)
apply_group_offloading(pipeline.text_encoder, onload_device=onload_device, offload_type=<span class="hljs-string">&quot;block_level&quot;</span>, num_blocks_per_group=<span class="hljs-number">2</span>)
apply_group_offloading(pipeline.vae, onload_device=onload_device, offload_type=<span class="hljs-string">&quot;leaf_level&quot;</span>)
prompt = <span class="hljs-string">&quot;&quot;&quot;
A woman with long brown hair and light skin smiles at another woman with long blonde hair.
The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek.
The camera angle is a close-up, focused on the woman with brown hair&#x27;s face. The lighting is warm and
natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage
&quot;&quot;&quot;</span>
negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
video = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=<span class="hljs-number">768</span>,
height=<span class="hljs-number">512</span>,
num_frames=<span class="hljs-number">161</span>,
decode_timestep=<span class="hljs-number">0.03</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
num_inference_steps=<span class="hljs-number">50</span>,
).frames[<span class="hljs-number">0</span>]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),{c(){r=o("p"),r.innerHTML=U,T=n(),c=o("p"),c.textContent=m,i=n(),h(b.$$.fragment)},l(v){r=a(v,"P",{"data-svelte-h":!0}),p(r)!=="svelte-iowzkr"&&(r.innerHTML=U),T=s(v),c=a(v,"P",{"data-svelte-h":!0}),p(c)!=="svelte-7p0ppy"&&(c.textContent=m),i=s(v),g(b.$$.fragment,v)},m(v,F){u(v,r,F),u(v,T,F),u(v,c,F),u(v,i,F),M(b,v,F),k=!0},p:Mn,i(v){k||(f(b.$$.fragment,v),k=!0)},o(v){_(b.$$.fragment,v),k=!1},d(v){v&&(l(r),l(T),l(c),l(i)),y(b,v)}}}function Wa(V){let r,U='<a href="../../optimization/fp16#torchcompile">Compilation</a> is slow the first time but subsequent calls to the pipeline are faster. <a href="../../optimization/cache">Caching</a> may also speed up inference by storing and reusing intermediate outputs.',T,c,m;return c=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBMVFhQaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyTGlnaHRyaWNrcyUyRkxUWC1WaWRlbyUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYlMEEpJTBBJTBBJTIzJTIwdG9yY2guY29tcGlsZSUwQXBpcGVsaW5lLnRyYW5zZm9ybWVyLnRvKG1lbW9yeV9mb3JtYXQlM0R0b3JjaC5jaGFubmVsc19sYXN0KSUwQXBpcGVsaW5lLnRyYW5zZm9ybWVyJTIwJTNEJTIwdG9yY2guY29tcGlsZSglMEElMjAlMjAlMjAlMjBwaXBlbGluZS50cmFuc2Zvcm1lciUyQyUyMG1vZGUlM0QlMjJtYXgtYXV0b3R1bmUlMjIlMkMlMjBmdWxsZ3JhcGglM0RUcnVlJTBBKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMiUyMiUyMiUwQUElMjB3b21hbiUyMHdpdGglMjBsb25nJTIwYnJvd24lMjBoYWlyJTIwYW5kJTIwbGlnaHQlMjBza2luJTIwc21pbGVzJTIwYXQlMjBhbm90aGVyJTIwd29tYW4lMjB3aXRoJTIwbG9uZyUyMGJsb25kZSUyMGhhaXIuJTBBVGhlJTIwd29tYW4lMjB3aXRoJTIwYnJvd24lMjBoYWlyJTIwd2VhcnMlMjBhJTIwYmxhY2slMjBqYWNrZXQlMjBhbmQlMjBoYX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YWxlJTNEMC4wMjUlMkMlMEElMjAlMjAlMjAlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTAlMkMlMEEpLmZyYW1lcyU1QjAlNUQlMEFleHBvcnRfdG9fdmlkZW8odmlkZW8lMkMlMjAlMjJvdXRwdXQubXA0JTIyJTJDJTIwZnBzJTNEMjQp",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video
pipeline = LTXPipeline.from_pretrained(
<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>, torch_dtype=torch.bfloat16
)
<span class="hljs-comment"># torch.compile</span>
pipeline.transformer.to(memory_format=torch.channels_last)
pipeline.transformer = torch.<span class="hljs-built_in">compile</span>(
pipeline.transformer, mode=<span class="hljs-string">&quot;max-autotune&quot;</span>, fullgraph=<span class="hljs-literal">True</span>
)
prompt = <span class="hljs-string">&quot;&quot;&quot;
A woman with long brown hair and light skin smiles at another woman with long blonde hair.
The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek.
The camera angle is a close-up, focused on the woman with brown hair&#x27;s face. The lighting is warm and
natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage
&quot;&quot;&quot;</span>
negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
video = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=<span class="hljs-number">768</span>,
height=<span class="hljs-number">512</span>,
num_frames=<span class="hljs-number">161</span>,
decode_timestep=<span class="hljs-number">0.03</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
num_inference_steps=<span class="hljs-number">50</span>,
).frames[<span class="hljs-number">0</span>]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),{c(){r=o("p"),r.innerHTML=U,T=n(),h(c.$$.fragment)},l(i){r=a(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-e4r7sz"&&(r.innerHTML=U),T=s(i),g(c.$$.fragment,i)},m(i,b){u(i,r,b),u(i,T,b),M(c,i,b),m=!0},p:Mn,i(i){m||(f(c.$$.fragment,i),m=!0)},o(i){_(c.$$.fragment,i),m=!1},d(i){i&&(l(r),l(T)),y(c,i)}}}function ka(V){let r,U,T,c;return r=new Ua({props:{id:"usage",option:"memory",$$slots:{default:[xa]},$$scope:{ctx:V}}}),T=new Ua({props:{id:"usage",option:"inference speed",$$slots:{default:[Wa]},$$scope:{ctx:V}}}),{c(){h(r.$$.fragment),U=n(),h(T.$$.fragment)},l(m){g(r.$$.fragment,m),U=s(m),g(T.$$.fragment,m)},m(m,i){M(r,m,i),u(m,U,i),M(T,m,i),c=!0},p(m,i){const b={};i&2&&(b.$$scope={dirty:i,ctx:m}),r.$set(b);const k={};i&2&&(k.$$scope={dirty:i,ctx:m}),T.$set(k)},i(m){c||(f(r.$$.fragment,m),f(T.$$.fragment,m),c=!0)},o(m){_(r.$$.fragment,m),_(T.$$.fragment,m),c=!1},d(m){m&&l(U),y(r,m),y(T,m)}}}function Ca(V){let r,U="Examples:",T,c,m;return c=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYRXVsZXJBbmNlc3RyYWxSRlNjaGVkdWxlciUyQyUyMExUWEkyVkxvbmdNdWx0aVByb21wdFBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMExUWEkyVkxvbmdNdWx0aVByb21wdFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJMVFgtVmlkZW8tMC45LjgtMTNCLWRpc3RpbGxlZCUyMiklMEElMjMlMjBGb3IlMjBDb21meVVJJTIwcGFyaXR5JTJDJTIwc3dhcCUyMGluJTIwdGhlJTIwUkYlMjBzY2hlZHVsZXIlMjAoa2VlcHMlMjB0aGUlMjBvcmlnaW5hbCU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tcHQlM0QlMjJhJTIwY2hpbXBhbnplZSUyMHdhbGtpbmclMjIlMkMlMjBvdXRwdXRfdHlwZSUzRCUyMmxhdGVudCUyMiUyQyUyMHJldHVybl9kaWN0JTNEVHJ1ZSkuZnJhbWVzJTBBZnJhbWVzJTIwJTNEJTIwcGlwZS52YWVfZGVjb2RlX3RpbGVkKG91dF9sYXRlbnQlMkMlMjBvdXRwdXRfdHlwZSUzRCUyMnBpbCUyMiklNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXEulerAncestralRFScheduler, LTXI2VLongMultiPromptPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = LTXI2VLongMultiPromptPipeline.from_pretrained(<span class="hljs-string">&quot;LTX-Video-0.9.8-13B-distilled&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># For ComfyUI parity, swap in the RF scheduler (keeps the original config).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.scheduler = LTXEulerAncestralRFScheduler.from_config(pipe.scheduler.config)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>).to(dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Example A: get decoded frames (PIL)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>out = pipe(
<span class="hljs-meta">... </span> prompt=<span class="hljs-string">&quot;a chimpanzee walks | a chimpanzee eats&quot;</span>,
<span class="hljs-meta">... </span> num_frames=<span class="hljs-number">161</span>,
<span class="hljs-meta">... </span> height=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span> width=<span class="hljs-number">704</span>,
<span class="hljs-meta">... </span> temporal_tile_size=<span class="hljs-number">80</span>,
<span class="hljs-meta">... </span> temporal_overlap=<span class="hljs-number">24</span>,
<span class="hljs-meta">... </span> output_type=<span class="hljs-string">&quot;pil&quot;</span>,
<span class="hljs-meta">... </span> return_dict=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>frames = out.frames[<span class="hljs-number">0</span>] <span class="hljs-comment"># list of PIL.Image.Image</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Example B: get latent video and decode later (saves VRAM during sampling)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>out_latent = pipe(prompt=<span class="hljs-string">&quot;a chimpanzee walking&quot;</span>, output_type=<span class="hljs-string">&quot;latent&quot;</span>, return_dict=<span class="hljs-literal">True</span>).frames
<span class="hljs-meta">&gt;&gt;&gt; </span>frames = pipe.vae_decode_tiled(out_latent, output_type=<span class="hljs-string">&quot;pil&quot;</span>)[<span class="hljs-number">0</span>]`,wrap:!1}}),{c(){r=o("p"),r.textContent=U,T=n(),h(c.$$.fragment)},l(i){r=a(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=U),T=s(i),g(c.$$.fragment,i)},m(i,b){u(i,r,b),u(i,T,b),M(c,i,b),m=!0},p:Mn,i(i){m||(f(c.$$.fragment,i),m=!0)},o(i){_(c.$$.fragment,i),m=!1},d(i){i&&(l(r),l(T)),y(c,i)}}}function La(V){let r,U="Examples:",T,c,m;return c=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTBBJTBBcGlwZSUyMCUzRCUyMExUWFBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJMaWdodHJpY2tzJTJGTFRYLVZpZGVvJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiklMEFw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wbmVnYXRpdmVfcHJvbXB0JTNEbmVnYXRpdmVfcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwd2lkdGglM0Q3MDQlMkMlMEElMjAlMjAlMjAlMjBoZWlnaHQlM0Q0ODAlMkMlMEElMjAlMjAlMjAlMjBudW1fZnJhbWVzJTNEMTYxJTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDUwJTJDJTBBKS5mcmFtZXMlNUIwJTVEJTBBZXhwb3J0X3RvX3ZpZGVvKHZpZGVvJTJDJTIwJTIyb3V0cHV0Lm1wNCUyMiUyQyUyMGZwcyUzRDI0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = LTXPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair&#x27;s face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>video = pipe(
<span class="hljs-meta">... </span> prompt=prompt,
<span class="hljs-meta">... </span> negative_prompt=negative_prompt,
<span class="hljs-meta">... </span> width=<span class="hljs-number">704</span>,
<span class="hljs-meta">... </span> height=<span class="hljs-number">480</span>,
<span class="hljs-meta">... </span> num_frames=<span class="hljs-number">161</span>,
<span class="hljs-meta">... </span> num_inference_steps=<span class="hljs-number">50</span>,
<span class="hljs-meta">... </span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),{c(){r=o("p"),r.textContent=U,T=n(),h(c.$$.fragment)},l(i){r=a(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=U),T=s(i),g(c.$$.fragment,i)},m(i,b){u(i,r,b),u(i,T,b),M(c,i,b),m=!0},p:Mn,i(i){m||(f(c.$$.fragment,i),m=!0)},o(i){_(c.$$.fragment,i),m=!1},d(i){i&&(l(r),l(T)),y(c,i)}}}function Ra(V){let r,U="Examples:",T,c,m;return c=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYSW1hZ2VUb1ZpZGVvUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTJDJTIwbG9hZF9pbWFnZSUwQSUwQXBpcGUlMjAlM0QlMjBMVFhJbWFnZVRvVmlkZW9QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyTGlnaHRyaWNrcyUyRkxUWC1WaWRlbyUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYpJTBBcGlwZS50byglMjJjdWRhJTIyKSUwQSUwQWltYWdlJTIwJTNEJTIwbG9hZF9pbWFnZSglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlM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jBwaXBlKCUwQSUyMCUyMCUyMCUyMGltYWdlJTNEaW1hZ2UlMkMlMEElMjAlMjAlMjAlMjBwcm9tcHQlM0Rwcm9tcHQlMkMlMEElMjAlMjAlMjAlMjBuZWdhdGl2ZV9wcm9tcHQlM0RuZWdhdGl2ZV9wcm9tcHQlMkMlMEElMjAlMjAlMjAlMjB3aWR0aCUzRDcwNCUyQyUwQSUyMCUyMCUyMCUyMGhlaWdodCUzRDQ4MCUyQyUwQSUyMCUyMCUyMCUyMG51bV9mcmFtZXMlM0QxNjElMkMlMEElMjAlMjAlMjAlMjBudW1faW5mZXJlbmNlX3N0ZXBzJTNENTAlMkMlMEEpLmZyYW1lcyU1QjAlNUQlMEFleHBvcnRfdG9fdmlkZW8odmlkZW8lMkMlMjAlMjJvdXRwdXQubXA0JTIyJTJDJTIwZnBzJTNEMjQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXImageToVideoPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_image
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = LTXImageToVideoPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = load_image(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;https://huggingface.co/datasets/a-r-r-o-w/tiny-meme-dataset-captioned/resolve/main/images/8.png&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;A young girl stands calmly in the foreground, looking directly at the camera, as a house fire rages in the background. Flames engulf the structure, with smoke billowing into the air. Firefighters in protective gear rush to the scene, a fire truck labeled &#x27;38&#x27; visible behind them. The girl&#x27;s neutral expression contrasts sharply with the chaos of the fire, creating a poignant and emotionally charged scene.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>video = pipe(
<span class="hljs-meta">... </span> image=image,
<span class="hljs-meta">... </span> prompt=prompt,
<span class="hljs-meta">... </span> negative_prompt=negative_prompt,
<span class="hljs-meta">... </span> width=<span class="hljs-number">704</span>,
<span class="hljs-meta">... </span> height=<span class="hljs-number">480</span>,
<span class="hljs-meta">... </span> num_frames=<span class="hljs-number">161</span>,
<span class="hljs-meta">... </span> num_inference_steps=<span class="hljs-number">50</span>,
<span class="hljs-meta">... </span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),{c(){r=o("p"),r.textContent=U,T=n(),h(c.$$.fragment)},l(i){r=a(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=U),T=s(i),g(c.$$.fragment,i)},m(i,b){u(i,r,b),u(i,T,b),M(c,i,b),m=!0},p:Mn,i(i){m||(f(c.$$.fragment,i),m=!0)},o(i){_(c.$$.fragment,i),m=!1},d(i){i&&(l(r),l(T)),y(c,i)}}}function Na(V){let r,U="Examples:",T,c,m;return c=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzLnBpcGVsaW5lcy5sdHgucGlwZWxpbmVfbHR4X2NvbmRpdGlvbiUyMGltcG9ydCUyMExUWENvbmRpdGlvblBpcGVsaW5lJTJDJTIwTFRYVmlkZW9Db25kaXRpb24lMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J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UyMCUyMG5lZ2F0aXZlX3Byb21wdCUzRG5lZ2F0aXZlX3Byb21wdCUyQyUwQSUyMCUyMCUyMCUyMHdpZHRoJTNENzY4JTJDJTBBJTIwJTIwJTIwJTIwaGVpZ2h0JTNENTEyJTJDJTBBJTIwJTIwJTIwJTIwbnVtX2ZyYW1lcyUzRDE2MSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0Q0MCUyQyUwQSUyMCUyMCUyMCUyMGdlbmVyYXRvciUzRGdlbmVyYXRvciUyQyUwQSkuZnJhbWVzJTVCMCU1RCUwQSUwQWV4cG9ydF90b192aWRlbyh2aWRlbyUyQyUyMCUyMm91dHB1dC5tcDQlMjIlMkMlMjBmcHMlM0QyNCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.pipelines.ltx.pipeline_ltx_condition <span class="hljs-keyword">import</span> LTXConditionPipeline, LTXVideoCondition
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_video, load_image
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = LTXConditionPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video-0.9.5&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Load input image and video</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>video = load_video(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cosmos/cosmos-video2world-input-vid.mp4&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = load_image(
<span class="hljs-meta">... </span> <span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cosmos/cosmos-video2world-input.jpg&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Create conditioning objects</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>condition1 = LTXVideoCondition(
<span class="hljs-meta">... </span> image=image,
<span class="hljs-meta">... </span> frame_index=<span class="hljs-number">0</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>condition2 = LTXVideoCondition(
<span class="hljs-meta">... </span> video=video,
<span class="hljs-meta">... </span> frame_index=<span class="hljs-number">80</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;The video depicts a long, straight highway stretching into the distance, flanked by metal guardrails. The road is divided into multiple lanes, with a few vehicles visible in the far distance. The surrounding landscape features dry, grassy fields on one side and rolling hills on the other. The sky is mostly clear with a few scattered clouds, suggesting a bright, sunny day. And then the camera switch to a winding mountain road covered in snow, with a single vehicle traveling along it. The road is flanked by steep, rocky cliffs and sparse vegetation. The landscape is characterized by rugged terrain and a river visible in the distance. The scene captures the solitude and beauty of a winter drive through a mountainous region.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Generate video</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator = torch.Generator(<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Text-only conditioning is also supported without the need to pass \`conditions\`</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>video = pipe(
<span class="hljs-meta">... </span> conditions=[condition1, condition2],
<span class="hljs-meta">... </span> prompt=prompt,
<span class="hljs-meta">... </span> negative_prompt=negative_prompt,
<span class="hljs-meta">... </span> width=<span class="hljs-number">768</span>,
<span class="hljs-meta">... </span> height=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span> num_frames=<span class="hljs-number">161</span>,
<span class="hljs-meta">... </span> num_inference_steps=<span class="hljs-number">40</span>,
<span class="hljs-meta">... </span> generator=generator,
<span class="hljs-meta">... </span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),{c(){r=o("p"),r.textContent=U,T=n(),h(c.$$.fragment)},l(i){r=a(i,"P",{"data-svelte-h":!0}),p(r)!=="svelte-kvfsh7"&&(r.textContent=U),T=s(i),g(c.$$.fragment,i)},m(i,b){u(i,r,b),u(i,T,b),M(c,i,b),m=!0},p:Mn,i(i){m||(f(c.$$.fragment,i),m=!0)},o(i){_(c.$$.fragment,i),m=!1},d(i){i&&(l(r),l(T)),y(c,i)}}}function Ya(V){let r,U,T,c,m,i='<div class="flex flex-wrap space-x-1"><a href="https://huggingface.co/docs/diffusers/main/en/tutorials/using_peft_for_inference" target="_blank" rel="noopener"><img alt="LoRA" src="https://img.shields.io/badge/LoRA-d8b4fe?style=flat"/></a> <img alt="MPS" src="https://img.shields.io/badge/MPS-000000?style=flat&amp;logo=apple&amp;logoColor=white%22"/></div>',b,k,v,F,vo='<a href="https://huggingface.co/Lightricks/LTX-Video" rel="nofollow">LTX-Video</a> is a diffusion transformer designed for fast and real-time generation of high-resolution videos from text and images. The main feature of LTX-Video is the Video-VAE. The Video-VAE has a higher pixel to latent compression ratio (1:192) which enables more efficient video data processing and faster generation speed. To support and prevent finer details from being lost during generation, the Video-VAE decoder performs the latent to pixel conversion <em>and</em> the last denoising step.',_n,_e,Zo='You can find all the original LTX-Video checkpoints under the <a href="https://huggingface.co/Lightricks" rel="nofollow">Lightricks</a> organization.',yn,K,Io="<p>Click on the LTX-Video models in the right sidebar for more examples of other video generation tasks.</p>",Tn,ye,Go="The example below demonstrates how to generate a video optimized for memory or inference speed.",wn,ee,bn,Te,Jn,x,Mt,Xo='<p>Refer to the following recommended settings for generation from the <a href="https://github.com/Lightricks/LTX-Video" rel="nofollow">LTX-Video</a> repository.</p> <ul><li>The recommended dtype for the transformer, VAE, and text encoder is <code>torch.bfloat16</code>. The VAE and text encoder can also be <code>torch.float32</code> or <code>torch.float16</code>.</li> <li>For guidance-distilled variants of LTX-Video, set <code>guidance_scale</code> to <code>1.0</code>. The <code>guidance_scale</code> for any other model should be set higher, like <code>5.0</code>, for good generation quality.</li> <li>For timestep-aware VAE variants (LTX-Video 0.9.1 and above), set <code>decode_timestep</code> to <code>0.05</code> and <code>image_cond_noise_scale</code> to <code>0.025</code>.</li> <li>For variants that support interpolation between multiple conditioning images and videos (LTX-Video 0.9.5 and above), use similar images and videos for the best results. Divergence from the conditioning inputs may lead to abrupt transitions in the generated video.</li></ul>',as,we,ft,Bo="LTX-Video 0.9.7 includes a spatial latent upscaler and a 13B parameter transformer. During inference, a low resolution video is quickly generated first and then upscaled and refined.",ls,be,_t,Vo="Show example code",is,Je,rs,D,yt,xo="LTX-Video 0.9.7 distilled model is guidance and timestep-distilled to speedup generation. It requires <code>guidance_scale</code> to be set to <code>1.0</code> and <code>num_inference_steps</code> should be set between <code>4</code> and <code>10</code> for good generation quality. You should also use the following custom timesteps for the best results.",ds,Tt,Wo="<li>Base model inference to prepare for upscaling: <code>[1000, 993, 987, 981, 975, 909, 725, 0.03]</code>.</li> <li>Upscaling: <code>[1000, 909, 725, 421, 0]</code>.</li>",ps,Ue,wt,ko="Show example code",cs,je,ms,ve,bt,Co="LTX-Video 0.9.8 distilled model is similar to the 0.9.7 variant. It is guidance and timestep-distilled, and similar inference code can be used as above. An improvement of this version is that it supports generating very long videos. Additionally, it supports using tone mapping to improve the quality of the generated video using the <code>tone_map_compression_ratio</code> parameter. The default value of <code>0.6</code> is recommended.",us,Ze,Jt,Lo="Show example code",hs,Ie,gs,Ge,Ut,Ro='LTX-Video supports LoRAs with <a href="/docs/diffusers/pr_12625/en/api/loaders/lora#diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.',Ms,Xe,jt,No="Show example code",fs,Be,_s,Ve,vt,Yo='LTX-Video supports loading from single files, such as <a href="../../quantization/gguf">GGUF checkpoints</a>, with <a href="/docs/diffusers/pr_12625/en/api/loaders/single_file#diffusers.loaders.FromOriginalModelMixin.from_single_file">loaders.FromOriginalModelMixin.from_single_file()</a> or <a href="/docs/diffusers/pr_12625/en/api/loaders/single_file#diffusers.loaders.FromSingleFileMixin.from_single_file">loaders.FromSingleFileMixin.from_single_file()</a>.',ys,xe,Zt,Fo="Show example code",Ts,We,Un,ke,jn,Z,Ce,ws,It,Eo="Long-duration I2V (image-to-video) multi-prompt pipeline with ComfyUI parity.",bs,Gt,Ho="Key features:",Js,Xt,Qo="<li>Temporal sliding-window sampling only (no spatial H/W sharding); autoregressive fusion across windows.</li> <li>Multi-prompt segmentation per window with smooth transitions at window heads.</li> <li>First-frame hard conditioning via per-token mask for I2V.</li> <li>VRAM control via temporal windowing and VAE tiled decoding.</li>",Us,Bt,zo='Reference: <a href="https://github.com/Lightricks/LTX-Video" rel="nofollow">https://github.com/Lightricks/LTX-Video</a>',js,X,Le,vs,Vt,Po="Generate an image-to-video sequence via temporal sliding windows and multi-prompt scheduling.",Zs,te,Is,xt,So=`Shapes:
Latent sizes (when auto-generated):`,Gs,Wt,$o="<li>F_lat = (num_frames - 1) // vae_temporal_compression_ratio + 1</li> <li>H_lat = height // vae_spatial_compression_ratio</li> <li>W_lat = width // vae_spatial_compression_ratio</li>",Xs,kt,Ao="Notes:",Bs,Ct,Do=`<li>Seeding: when <code>seed</code> is provided, each temporal window uses a local generator seeded with <code>seed + w_start</code>, while the shared generator is seeded once for global latents if no generator is passed;
otherwise the passed-in generator is reused.</li> <li>CFG: unified <code>noise_pred = uncond + w * (text - uncond)</code> with optional <code>guidance_rescale</code>.</li> <li>Memory: denoising performs full-frame predictions (no spatial tiling); decoding can be tiled to avoid
OOM.</li>`,Vs,ne,Re,xs,Lt,qo="Encodes the prompt into text encoder hidden states.",Ws,se,Ne,ks,Rt,Oo="Prepare base latents and optionally inject first-frame conditioning latents.",Cs,H,Ye,Ls,Nt,Ko="VAE-based spatial tiled decoding (ComfyUI parity) implemented in Diffusers style.",Rs,Yt,ea=`<li>Linearly feather and blend overlapping tiles to avoid seams.</li> <li>Optional last_frame_fix: duplicate the last latent frame before decoding, then drop time_scale_factor frames
at the end.</li> <li>Supports timestep_conditioning and decode_noise_scale injection.</li> <li>By default, “normalized latents” (the denoising output) are de-normalized internally (auto_denormalize=True).</li> <li>Tile fusion is computed in compute_dtype (float32 by default) to reduce blur and color shifts.</li>`,vn,Fe,Zn,C,Ee,Ns,Ft,ta="Pipeline for text-to-video generation.",Ys,Et,na='Reference: <a href="https://github.com/Lightricks/LTX-Video" rel="nofollow">https://github.com/Lightricks/LTX-Video</a>',Fs,Q,He,Es,Ht,sa="Function invoked when calling the pipeline for generation.",Hs,oe,Qs,ae,Qe,zs,Qt,oa="Encodes the prompt into text encoder hidden states.",In,ze,Gn,L,Pe,Ps,zt,aa="Pipeline for image-to-video generation.",Ss,Pt,la='Reference: <a href="https://github.com/Lightricks/LTX-Video" rel="nofollow">https://github.com/Lightricks/LTX-Video</a>',$s,z,Se,As,St,ia="Function invoked when calling the pipeline for generation.",Ds,le,qs,ie,$e,Os,$t,ra="Encodes the prompt into text encoder hidden states.",Xn,Ae,Bn,G,De,Ks,At,da="Pipeline for text/image/video-to-video generation.",eo,Dt,pa='Reference: <a href="https://github.com/Lightricks/LTX-Video" rel="nofollow">https://github.com/Lightricks/LTX-Video</a>',to,P,qe,no,qt,ca="Function invoked when calling the pipeline for generation.",so,re,oo,de,Oe,ao,Ot,ma=`Add timestep-dependent noise to the hard-conditioning latents. This helps with motion continuity, especially
when conditioned on a single frame.`,lo,pe,Ke,io,Kt,ua="Encodes the prompt into text encoder hidden states.",ro,ce,et,po,en,ha="Trim a conditioning sequence to the allowed number of frames.",Vn,tt,xn,I,nt,co,tn,st,mo,me,ot,uo,nn,ga=`Applies Adaptive Instance Normalization (AdaIN) to a latent tensor based on statistics from a reference latent
tensor.`,ho,ue,at,go,sn,Ma=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Mo,he,lt,fo,on,fa=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,_o,ge,it,yo,an,_a=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,To,Me,rt,wo,ln,ya=`Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to
compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow
processing larger images.`,bo,S,dt,Jo,rn,Ta=`Applies a non-linear tone-mapping function to latent values to reduce their dynamic range in a perceptually
smooth way using a sigmoid-based compression.`,Uo,dn,wa=`This is useful for regularizing high-variance latents or for conditioning outputs during generation, especially
when controlling dynamic behavior with a <code>compression</code> factor.`,Wn,pt,kn,q,ct,jo,pn,ba="Output class for LTX pipelines.",Cn,mt,Ln,fn,Rn;return k=new fe({props:{title:"LTX-Video",local:"ltx-video",headingTag:"h1"}}),ee=new Va({props:{id:"usage",options:["memory","inference speed"],$$slots:{default:[ka]},$$scope:{ctx:V}}}),Te=new fe({props:{title:"Notes",local:"notes",headingTag:"h2"}}),Je=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUlMkMlMjBMVFhMYXRlbnRVcHNhbXBsZVBpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy5waXBlbGluZXMubHR4LnBpcGVsaW5lX2x0eF9jb25kaXRpb24lMj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UyMGluZmVyZW5jZSUyMHN0ZXBzJTIwb3V0JTIwb2YlMjAxMCUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QxMCUyQyUwQSUyMCUyMCUyMCUyMGxhdGVudHMlM0R1cHNjYWxlZF9sYXRlbnRzJTJDJTBBJTIwJTIwJTIwJTIwZGVjb2RlX3RpbWVzdGVwJTNEMC4wNSUyQyUwQSUyMCUyMCUyMCUyMGRlY29kZV9ub2lzZV9zY2FsZSUzRDAuMDI1JTJDJTBBJTIwJTIwJTIwJTIwaW1hZ2VfY29uZF9ub2lzZV9zY2FsZSUzRDAuMCUyQyUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3NjYWxlJTNENS4wJTJDJTBBJTIwJTIwJTIwJTIwZ3VpZGFuY2VfcmVzY2FsZSUzRDAuNyUyQyUwQSUyMCUyMCUyMCUyMGdlbmVyYXRvciUzRHRvcmNoLkdlbmVyYXRvcigpLm1hbnVhbF9zZWVkKDApJTJDJTBBJTIwJTIwJTIwJTIwb3V0cHV0X3R5cGUlM0QlMjJwaWwlMjIlMkMlMEEpLmZyYW1lcyU1QjAlNUQlMEElMEElMjMlMjA0LiUyMERvd25zY2FsZSUyMHRoZSUyMHZpZGVvJTIwdG8lMjB0aGUlMjBleHBlY3RlZCUyMHJlc29sdXRpb24lMEF2aWRlbyUyMCUzRCUyMCU1QmZyYW1lLnJlc2l6ZSgoZXhwZWN0ZWRfd2lkdGglMkMlMjBleHBlY3RlZF9oZWlnaHQpKSUyMGZvciUyMGZyYW1lJTIwaW4lMjB2aWRlbyU1RCUwQSUwQWV4cG9ydF90b192aWRlbyh2aWRlbyUyQyUyMCUyMm91dHB1dC5tcDQlMjIlMkMlMjBmcHMlM0QyNCk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXConditionPipeline, LTXLatentUpsamplePipeline
<span class="hljs-keyword">from</span> diffusers.pipelines.ltx.pipeline_ltx_condition <span class="hljs-keyword">import</span> LTXVideoCondition
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_video
pipeline = LTXConditionPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video-0.9.7-dev&quot;</span>, torch_dtype=torch.bfloat16)
pipeline_upsample = LTXLatentUpsamplePipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/ltxv-spatial-upscaler-0.9.7&quot;</span>, vae=pipeline.vae, torch_dtype=torch.bfloat16)
pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe_upsample.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.vae.enable_tiling()
<span class="hljs-keyword">def</span> <span class="hljs-title function_">round_to_nearest_resolution_acceptable_by_vae</span>(<span class="hljs-params">height, width</span>):
height = height - (height % pipeline.vae_temporal_compression_ratio)
width = width - (width % pipeline.vae_temporal_compression_ratio)
<span class="hljs-keyword">return</span> height, width
video = load_video(
<span class="hljs-string">&quot;https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cosmos/cosmos-video2world-input-vid.mp4&quot;</span>
)[:<span class="hljs-number">21</span>] <span class="hljs-comment"># only use the first 21 frames as conditioning</span>
condition1 = LTXVideoCondition(video=video, frame_index=<span class="hljs-number">0</span>)
prompt = <span class="hljs-string">&quot;&quot;&quot;
The video depicts a winding mountain road covered in snow, with a single vehicle
traveling along it. The road is flanked by steep, rocky cliffs and sparse vegetation.
The landscape is characterized by rugged terrain and a river visible in the distance.
The scene captures the solitude and beauty of a winter drive through a mountainous region.
&quot;&quot;&quot;</span>
negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
expected_height, expected_width = <span class="hljs-number">768</span>, <span class="hljs-number">1152</span>
downscale_factor = <span class="hljs-number">2</span> / <span class="hljs-number">3</span>
num_frames = <span class="hljs-number">161</span>
<span class="hljs-comment"># 1. Generate video at smaller resolution</span>
<span class="hljs-comment"># Text-only conditioning is also supported without the need to pass \`conditions\`</span>
downscaled_height, downscaled_width = <span class="hljs-built_in">int</span>(expected_height * downscale_factor), <span class="hljs-built_in">int</span>(expected_width * downscale_factor)
downscaled_height, downscaled_width = round_to_nearest_resolution_acceptable_by_vae(downscaled_height, downscaled_width)
latents = pipeline(
conditions=[condition1],
prompt=prompt,
negative_prompt=negative_prompt,
width=downscaled_width,
height=downscaled_height,
num_frames=num_frames,
num_inference_steps=<span class="hljs-number">30</span>,
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">5.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;latent&quot;</span>,
).frames
<span class="hljs-comment"># 2. Upscale generated video using latent upsampler with fewer inference steps</span>
<span class="hljs-comment"># The available latent upsampler upscales the height/width by 2x</span>
upscaled_height, upscaled_width = downscaled_height * <span class="hljs-number">2</span>, downscaled_width * <span class="hljs-number">2</span>
upscaled_latents = pipe_upsample(
latents=latents,
output_type=<span class="hljs-string">&quot;latent&quot;</span>
).frames
<span class="hljs-comment"># 3. Denoise the upscaled video with few steps to improve texture (optional, but recommended)</span>
video = pipeline(
conditions=[condition1],
prompt=prompt,
negative_prompt=negative_prompt,
width=upscaled_width,
height=upscaled_height,
num_frames=num_frames,
denoise_strength=<span class="hljs-number">0.4</span>, <span class="hljs-comment"># Effectively, 4 inference steps out of 10</span>
num_inference_steps=<span class="hljs-number">10</span>,
latents=upscaled_latents,
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">5.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;pil&quot;</span>,
).frames[<span class="hljs-number">0</span>]
<span class="hljs-comment"># 4. Downscale the video to the expected resolution</span>
video = [frame.resize((expected_width, expected_height)) <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> video]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),je=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUlMkMlMjBMVFhMYXRlbnRVcHNhbXBsZVBpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy5waXBlbGluZXMubHR4LnBpcGVsaW5lX2x0eF9jb25kaXRpb24lMjBpbXBvcnQlMjBMVFhWaWRlb0NvbmRpdGlvbiUwQWZyb20lMjBkaWZmdXNlcnMudXRpbHMlMjBpbXBvcnQlMjBleHBvcnRfdG9fdmlkZW8lMkMlMjBsb2FkX3ZpZGVvJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBMVFhDb25kaXRpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIyTGlnaHRyaWNrcyUyRkxUWC1WaWRlby0wLjkuNy1kaXN0aWxsZWQlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2KSUwQXBpcGVfdXBzYW1wbGUlMjAlM0QlMjBMVFhMYXRlbnRVcHNhbXBsZVBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMjJMaWdodHJpY2tzJTJGbHR4di1zcGF0aWFsLXVwc2NhbGVyLTAuOS43JTIyJTJDJTIwdmFlJTNEcGlwZWxpbmUudmFlJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiklMEFwaXBlbGluZS50byglMjJjdWRhJTIyKSUwQXBpcGVfdXBzYW1wbGUudG8oJTIyY3VkYSUyMiklMEFwaXBlbGluZS52YWUu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NEJTVCMTAwMCUyQyUyMDkwOSUyQyUyMDcyNSUyQyUyMDQyMSUyQyUyMDAlNUQlMkMlMEElMjAlMjAlMjAlMjBsYXRlbnRzJTNEdXBzY2FsZWRfbGF0ZW50cyUyQyUwQSUyMCUyMCUyMCUyMGRlY29kZV90aW1lc3RlcCUzRDAuMDUlMkMlMEElMjAlMjAlMjAlMjBkZWNvZGVfbm9pc2Vfc2NhbGUlM0QwLjAyNSUyQyUwQSUyMCUyMCUyMCUyMGltYWdlX2NvbmRfbm9pc2Vfc2NhbGUlM0QwLjAlMkMlMEElMjAlMjAlMjAlMjBndWlkYW5jZV9zY2FsZSUzRDEuMCUyQyUwQSUyMCUyMCUyMCUyMGd1aWRhbmNlX3Jlc2NhbGUlM0QwLjclMkMlMEElMjAlMjAlMjAlMjBnZW5lcmF0b3IlM0R0b3JjaC5HZW5lcmF0b3IoKS5tYW51YWxfc2VlZCgwKSUyQyUwQSUyMCUyMCUyMCUyMG91dHB1dF90eXBlJTNEJTIycGlsJTIyJTJDJTBBKS5mcmFtZXMlNUIwJTVEJTBBJTBBJTIzJTIwNC4lMjBEb3duc2NhbGUlMjB0aGUlMjB2aWRlbyUyMHRvJTIwdGhlJTIwZXhwZWN0ZWQlMjByZXNvbHV0aW9uJTBBdmlkZW8lMjAlM0QlMjAlNUJmcmFtZS5yZXNpemUoKGV4cGVjdGVkX3dpZHRoJTJDJTIwZXhwZWN0ZWRfaGVpZ2h0KSklMjBmb3IlMjBmcmFtZSUyMGluJTIwdmlkZW8lNUQlMEElMEFleHBvcnRfdG9fdmlkZW8odmlkZW8lMkMlMjAlMjJvdXRwdXQubXA0JTIyJTJDJTIwZnBzJTNEMjQp",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXConditionPipeline, LTXLatentUpsamplePipeline
<span class="hljs-keyword">from</span> diffusers.pipelines.ltx.pipeline_ltx_condition <span class="hljs-keyword">import</span> LTXVideoCondition
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_video
pipeline = LTXConditionPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video-0.9.7-distilled&quot;</span>, torch_dtype=torch.bfloat16)
pipe_upsample = LTXLatentUpsamplePipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/ltxv-spatial-upscaler-0.9.7&quot;</span>, vae=pipeline.vae, torch_dtype=torch.bfloat16)
pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe_upsample.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.vae.enable_tiling()
<span class="hljs-keyword">def</span> <span class="hljs-title function_">round_to_nearest_resolution_acceptable_by_vae</span>(<span class="hljs-params">height, width</span>):
height = height - (height % pipeline.vae_spatial_compression_ratio)
width = width - (width % pipeline.vae_spatial_compression_ratio)
<span class="hljs-keyword">return</span> height, width
prompt = <span class="hljs-string">&quot;&quot;&quot;
artistic anatomical 3d render, utlra quality, human half full male body with transparent
skin revealing structure instead of organs, muscular, intricate creative patterns,
monochromatic with backlighting, lightning mesh, scientific concept art, blending biology
with botany, surreal and ethereal quality, unreal engine 5, ray tracing, ultra realistic,
16K UHD, rich details. camera zooms out in a rotating fashion
&quot;&quot;&quot;</span>
negative_prompt = <span class="hljs-string">&quot;worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
expected_height, expected_width = <span class="hljs-number">768</span>, <span class="hljs-number">1152</span>
downscale_factor = <span class="hljs-number">2</span> / <span class="hljs-number">3</span>
num_frames = <span class="hljs-number">161</span>
<span class="hljs-comment"># 1. Generate video at smaller resolution</span>
downscaled_height, downscaled_width = <span class="hljs-built_in">int</span>(expected_height * downscale_factor), <span class="hljs-built_in">int</span>(expected_width * downscale_factor)
downscaled_height, downscaled_width = round_to_nearest_resolution_acceptable_by_vae(downscaled_height, downscaled_width)
latents = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=downscaled_width,
height=downscaled_height,
num_frames=num_frames,
timesteps=[<span class="hljs-number">1000</span>, <span class="hljs-number">993</span>, <span class="hljs-number">987</span>, <span class="hljs-number">981</span>, <span class="hljs-number">975</span>, <span class="hljs-number">909</span>, <span class="hljs-number">725</span>, <span class="hljs-number">0.03</span>],
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">1.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;latent&quot;</span>,
).frames
<span class="hljs-comment"># 2. Upscale generated video using latent upsampler with fewer inference steps</span>
<span class="hljs-comment"># The available latent upsampler upscales the height/width by 2x</span>
upscaled_height, upscaled_width = downscaled_height * <span class="hljs-number">2</span>, downscaled_width * <span class="hljs-number">2</span>
upscaled_latents = pipe_upsample(
latents=latents,
adain_factor=<span class="hljs-number">1.0</span>,
output_type=<span class="hljs-string">&quot;latent&quot;</span>
).frames
<span class="hljs-comment"># 3. Denoise the upscaled video with few steps to improve texture (optional, but recommended)</span>
video = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=upscaled_width,
height=upscaled_height,
num_frames=num_frames,
denoise_strength=<span class="hljs-number">0.999</span>, <span class="hljs-comment"># Effectively, 4 inference steps out of 5</span>
timesteps=[<span class="hljs-number">1000</span>, <span class="hljs-number">909</span>, <span class="hljs-number">725</span>, <span class="hljs-number">421</span>, <span class="hljs-number">0</span>],
latents=upscaled_latents,
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">1.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;pil&quot;</span>,
).frames[<span class="hljs-number">0</span>]
<span class="hljs-comment"># 4. Downscale the video to the expected resolution</span>
video = [frame.resize((expected_width, expected_height)) <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> video]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),Ie=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUlMkMlMjBMVFhMYXRlbnRVcHNhbXBsZVBpcGVsaW5lJTBBZnJvbSUyMGRpZmZ1c2Vycy5waXBlbGluZXMubHR4LnBpcGVsaW5lX2x0eF9jb25kaXRpb24lMjBpbXBvcnQlMjBMVFhWaWRlb0NvbmRpdGlvbiUwQWZyb20lMjBkaWZmdXNlcnMucGlwZWxpbmVzLmx0eC5tb2RlbGluZ19sYXRlbnRfdXBzYW1wbGVyJTIwaW1wb3J0JTIwTFRYTGF0ZW50VXBzYW1wbGVyTW9kZWwlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTJDJTIwbG9hZF92aWRlbyUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUyMkxpZ2h0cmlja3MlMkZMVFgtVmlkZW8tMC45LjgtMTNCLWRpc3RpbGxlZCUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guYmZsb2F0MTYpJTBBJTIzJTIwVE9ETyUzQSUyMFVwZGF0ZSUyMHRoZSUyMGNoZWNrcG9pbnQlMjBoZXJlJTIwb25jZSUyMHVwZGF0ZWQlMjBpbiUyMExUWCUyMG9yZyUwQXVwc2FtcGxlciUyMCUzRCUyMExUWExhdGVudFVwc2FtcGxlck1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJhLXItci1vLXclMkZMVFgtMC45LjgtTGF0ZW50LVV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G9yJTNEdG9yY2guR2VuZXJhdG9yKCkubWFudWFsX3NlZWQoMCklMkMlMEElMjAlMjAlMjAlMjBvdXRwdXRfdHlwZSUzRCUyMnBpbCUyMiUyQyUwQSkuZnJhbWVzJTVCMCU1RCUwQSUwQSUyMyUyMDQuJTIwRG93bnNjYWxlJTIwdGhlJTIwdmlkZW8lMjB0byUyMHRoZSUyMGV4cGVjdGVkJTIwcmVzb2x1dGlvbiUwQXZpZGVvJTIwJTNEJTIwJTVCZnJhbWUucmVzaXplKChleHBlY3RlZF93aWR0aCUyQyUyMGV4cGVjdGVkX2hlaWdodCkpJTIwZm9yJTIwZnJhbWUlMjBpbiUyMHZpZGVvJTVEJTBBJTBBZXhwb3J0X3RvX3ZpZGVvKHZpZGVvJTJDJTIwJTIyb3V0cHV0Lm1wNCUyMiUyQyUyMGZwcyUzRDI0KQ==",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXConditionPipeline, LTXLatentUpsamplePipeline
<span class="hljs-keyword">from</span> diffusers.pipelines.ltx.pipeline_ltx_condition <span class="hljs-keyword">import</span> LTXVideoCondition
<span class="hljs-keyword">from</span> diffusers.pipelines.ltx.modeling_latent_upsampler <span class="hljs-keyword">import</span> LTXLatentUpsamplerModel
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_video
pipeline = LTXConditionPipeline.from_pretrained(<span class="hljs-string">&quot;Lightricks/LTX-Video-0.9.8-13B-distilled&quot;</span>, torch_dtype=torch.bfloat16)
<span class="hljs-comment"># <span class="hljs-doctag">TODO:</span> Update the checkpoint here once updated in LTX org</span>
upsampler = LTXLatentUpsamplerModel.from_pretrained(<span class="hljs-string">&quot;a-r-r-o-w/LTX-0.9.8-Latent-Upsampler&quot;</span>, torch_dtype=torch.bfloat16)
pipe_upsample = LTXLatentUpsamplePipeline(vae=pipeline.vae, latent_upsampler=upsampler).to(torch.bfloat16)
pipeline.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipe_upsample.to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.vae.enable_tiling()
<span class="hljs-keyword">def</span> <span class="hljs-title function_">round_to_nearest_resolution_acceptable_by_vae</span>(<span class="hljs-params">height, width</span>):
height = height - (height % pipeline.vae_spatial_compression_ratio)
width = width - (width % pipeline.vae_spatial_compression_ratio)
<span class="hljs-keyword">return</span> height, width
prompt = <span class="hljs-string">&quot;&quot;&quot;The camera pans over a snow-covered mountain range, revealing a vast expanse of snow-capped peaks and valleys.The mountains are covered in a thick layer of snow, with some areas appearing almost white while others have a slightly darker, almost grayish hue. The peaks are jagged and irregular, with some rising sharply into the sky while others are more rounded. The valleys are deep and narrow, with steep slopes that are also covered in snow. The trees in the foreground are mostly bare, with only a few leaves remaining on their branches. The sky is overcast, with thick clouds obscuring the sun. The overall impression is one of peace and tranquility, with the snow-covered mountains standing as a testament to the power and beauty of nature.&quot;&quot;&quot;</span>
<span class="hljs-comment"># prompt = &quot;&quot;&quot;A woman walks away from a white Jeep parked on a city street at night, then ascends a staircase and knocks on a door. The woman, wearing a dark jacket and jeans, walks away from the Jeep parked on the left side of the street, her back to the camera; she walks at a steady pace, her arms swinging slightly by her sides; the street is dimly lit, with streetlights casting pools of light on the wet pavement; a man in a dark jacket and jeans walks past the Jeep in the opposite direction; the camera follows the woman from behind as she walks up a set of stairs towards a building with a green door; she reaches the top of the stairs and turns left, continuing to walk towards the building; she reaches the door and knocks on it with her right hand; the camera remains stationary, focused on the doorway; the scene is captured in real-life footage.&quot;&quot;&quot;</span>
negative_prompt = <span class="hljs-string">&quot;bright colors, symbols, graffiti, watermarks, worst quality, inconsistent motion, blurry, jittery, distorted&quot;</span>
expected_height, expected_width = <span class="hljs-number">480</span>, <span class="hljs-number">832</span>
downscale_factor = <span class="hljs-number">2</span> / <span class="hljs-number">3</span>
<span class="hljs-comment"># num_frames = 161</span>
num_frames = <span class="hljs-number">361</span>
<span class="hljs-comment"># 1. Generate video at smaller resolution</span>
downscaled_height, downscaled_width = <span class="hljs-built_in">int</span>(expected_height * downscale_factor), <span class="hljs-built_in">int</span>(expected_width * downscale_factor)
downscaled_height, downscaled_width = round_to_nearest_resolution_acceptable_by_vae(downscaled_height, downscaled_width)
latents = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=downscaled_width,
height=downscaled_height,
num_frames=num_frames,
timesteps=[<span class="hljs-number">1000</span>, <span class="hljs-number">993</span>, <span class="hljs-number">987</span>, <span class="hljs-number">981</span>, <span class="hljs-number">975</span>, <span class="hljs-number">909</span>, <span class="hljs-number">725</span>, <span class="hljs-number">0.03</span>],
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">1.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;latent&quot;</span>,
).frames
<span class="hljs-comment"># 2. Upscale generated video using latent upsampler with fewer inference steps</span>
<span class="hljs-comment"># The available latent upsampler upscales the height/width by 2x</span>
upscaled_height, upscaled_width = downscaled_height * <span class="hljs-number">2</span>, downscaled_width * <span class="hljs-number">2</span>
upscaled_latents = pipe_upsample(
latents=latents,
adain_factor=<span class="hljs-number">1.0</span>,
tone_map_compression_ratio=<span class="hljs-number">0.6</span>,
output_type=<span class="hljs-string">&quot;latent&quot;</span>
).frames
<span class="hljs-comment"># 3. Denoise the upscaled video with few steps to improve texture (optional, but recommended)</span>
video = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
width=upscaled_width,
height=upscaled_height,
num_frames=num_frames,
denoise_strength=<span class="hljs-number">0.999</span>, <span class="hljs-comment"># Effectively, 4 inference steps out of 5</span>
timesteps=[<span class="hljs-number">1000</span>, <span class="hljs-number">909</span>, <span class="hljs-number">725</span>, <span class="hljs-number">421</span>, <span class="hljs-number">0</span>],
latents=upscaled_latents,
decode_timestep=<span class="hljs-number">0.05</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
image_cond_noise_scale=<span class="hljs-number">0.0</span>,
guidance_scale=<span class="hljs-number">1.0</span>,
guidance_rescale=<span class="hljs-number">0.7</span>,
generator=torch.Generator().manual_seed(<span class="hljs-number">0</span>),
output_type=<span class="hljs-string">&quot;pil&quot;</span>,
).frames[<span class="hljs-number">0</span>]
<span class="hljs-comment"># 4. Downscale the video to the expected resolution</span>
video = [frame.resize((expected_width, expected_height)) <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> video]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">24</span>)`,wrap:!1}}),Be=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTJDJTIwbG9hZF9pbWFnZSUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwTFRYQ29uZGl0aW9uUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkxpZ2h0cmlja3MlMkZMVFgtVmlkZW8tMC45LjUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2JTBBKSUwQSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUyMkxpZ2h0cmlja3MlMkZMVFgtVmlkZW8tQ2FrZWlmeS1Mb1JBJTIyJTJDJTIwYWRhcHRlcl9uYW1lJTNEJTIyY2FrZWlmeSUyMiklMEFwaXBlbGluZS5zZXRfYWRhcHRlcnMoJTIyY2FrZWlmeSUyMiklMEElMEElMjMlMjB1c2UlMjAlMjJDQUtFSUZZJTIyJTIwdG8lMjB0cmlnZ2VyJTIwdGhlJTIwTG9SQSUwQXByb21wdCUyMCUzRCUyMCUyMkNBS0VJRlklMjBhJTIwcGVyc29uJTIwdXNpbmclMjBhJTIwa25pZmUlMjB0byUyMGN1dCUyMGElMjBjYWtlJTIwc2hhcGVkJTIwbGlrZSUyMGElMjBQaWthY2h1JTIwcGx1c2hpZSUyMiUwQWltYWdlJTIwJTNEJTIwbG9hZF9pbWFnZSglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGTGlnaHRyaWNrcyUyRkxUWC1WaWRlby1DYWtlaWZ5LUxvUkElMkZyZXNvbHZlJTJGbWFpbiUyRmFzc2V0cyUyRmltYWdlcyUyRnBpa2FjaHUucG5nJTIyKSUwQSUwQXZpZGVvJTIwJTNEJTIwcGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTNEcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwaW1hZ2UlM0RpbWFnZSUyQyUwQSUyMCUyMCUyMCUyMHdpZHRoJTNENTc2JTJDJTBBJTIwJTIwJTIwJTIwaGVpZ2h0JTNENTc2JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2ZyYW1lcyUzRDE2MSUyQyUwQSUyMCUyMCUyMCUyMGRlY29kZV90aW1lc3RlcCUzRDAuMDMlMkMlMEElMjAlMjAlMjAlMjBkZWNvZGVfbm9pc2Vfc2NhbGUlM0QwLjAyNSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0Q1MCUyQyUwQSkuZnJhbWVzJTVCMCU1RCUwQWV4cG9ydF90b192aWRlbyh2aWRlbyUyQyUyMCUyMm91dHB1dC5tcDQlMjIlMkMlMjBmcHMlM0QyNik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXConditionPipeline
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video, load_image
pipeline = LTXConditionPipeline.from_pretrained(
<span class="hljs-string">&quot;Lightricks/LTX-Video-0.9.5&quot;</span>, torch_dtype=torch.bfloat16
)
pipeline.load_lora_weights(<span class="hljs-string">&quot;Lightricks/LTX-Video-Cakeify-LoRA&quot;</span>, adapter_name=<span class="hljs-string">&quot;cakeify&quot;</span>)
pipeline.set_adapters(<span class="hljs-string">&quot;cakeify&quot;</span>)
<span class="hljs-comment"># use &quot;CAKEIFY&quot; to trigger the LoRA</span>
prompt = <span class="hljs-string">&quot;CAKEIFY a person using a knife to cut a cake shaped like a Pikachu plushie&quot;</span>
image = load_image(<span class="hljs-string">&quot;https://huggingface.co/Lightricks/LTX-Video-Cakeify-LoRA/resolve/main/assets/images/pikachu.png&quot;</span>)
video = pipeline(
prompt=prompt,
image=image,
width=<span class="hljs-number">576</span>,
height=<span class="hljs-number">576</span>,
num_frames=<span class="hljs-number">161</span>,
decode_timestep=<span class="hljs-number">0.03</span>,
decode_noise_scale=<span class="hljs-number">0.025</span>,
num_inference_steps=<span class="hljs-number">50</span>,
).frames[<span class="hljs-number">0</span>]
export_to_video(video, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">26</span>)`,wrap:!1}}),We=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTBBZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMExUWFBpcGVsaW5lJTJDJTIwQXV0b01vZGVsJTJDJTIwR0dVRlF1YW50aXphdGlvbkNvbmZpZyUwQSUwQXRyYW5zZm9ybWVyJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fc2luZ2xlX2ZpbGUoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmNpdHk5NiUyRkxUWC1WaWRlby1nZ3VmJTJGYmxvYiUyRm1haW4lMkZsdHgtdmlkZW8tMmItdjAuOS1RM19LX1MuZ2d1ZiUyMiUwQSUyMCUyMCUyMCUyMHF1YW50aXphdGlvbl9jb25maWclM0RHR1VGUXVhbnRpemF0aW9uQ29uZmlnKGNvbXB1dGVfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiklMkMlMEElMjAlMjAlMjAlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2JTBBKSUwQXBpcGVsaW5lJTIwJTNEJTIwTFRYUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMkxpZ2h0cmlja3MlMkZMVFgtVmlkZW8lMjIlMkMlMEElMjAlMjAlMjAlMjB0cmFuc2Zvcm1lciUzRHRyYW5zZm9ybWVyJTJDJTBBJTIwJTIwJTIwJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiUwQSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers.utils <span class="hljs-keyword">import</span> export_to_video
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LTXPipeline, AutoModel, GGUFQuantizationConfig
transformer = AutoModel.from_single_file(
<span class="hljs-string">&quot;https://huggingface.co/city96/LTX-Video-gguf/blob/main/ltx-video-2b-v0.9-Q3_K_S.gguf&quot;</span>
quantization_config=GGUFQuantizationConfig(compute_dtype=torch.bfloat16),
torch_dtype=torch.bfloat16
)
pipeline = LTXPipeline.from_pretrained(
<span class="hljs-string">&quot;Lightricks/LTX-Video&quot;</span>,
transformer=transformer,
torch_dtype=torch.bfloat16
)`,wrap:!1}}),ke=new fe({props:{title:"LTXI2VLongMultiPromptPipeline",local:"diffusers.LTXI2VLongMultiPromptPipeline",headingTag:"h2"}}),Ce=new j({props:{name:"class diffusers.LTXI2VLongMultiPromptPipeline",anchor:"diffusers.LTXI2VLongMultiPromptPipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKLLTXVideo"},{name:"text_encoder",val:": T5EncoderModel"},{name:"tokenizer",val:": T5TokenizerFast"},{name:"transformer",val:": LTXVideoTransformer3DModel"}],parametersDescription:[{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>) &#x2014;
Conditional Transformer architecture to denoise the encoded video latents.`,name:"transformer"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12625/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a> or <code>LTXEulerAncestralRFScheduler</code>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/autoencoderkl_ltx_video#diffusers.AutoencoderKLLTXVideo">AutoencoderKLLTXVideo</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>T5EncoderModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically
the <a href="https://huggingface.co/google/t5-v1_1-xxl" rel="nofollow">google/t5-v1_1-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5TokenizerFast</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5TokenizerFast" rel="nofollow">T5TokenizerFast</a>.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py#L387"}}),Le=new j({props:{name:"__call__",anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"prompt_segments",val:": typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None"},{name:"height",val:": int = 512"},{name:"width",val:": int = 704"},{name:"num_frames",val:": int = 161"},{name:"frame_rate",val:": float = 25"},{name:"guidance_scale",val:": float = 1.0"},{name:"guidance_rescale",val:": float = 0.0"},{name:"num_inference_steps",val:": typing.Optional[int] = 8"},{name:"sigmas",val:": typing.Union[typing.List[float], torch.Tensor, NoneType] = None"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"seed",val:": typing.Optional[int] = 0"},{name:"cond_image",val:": typing.Union[ForwardRef('PIL.Image.Image'), torch.Tensor, NoneType] = None"},{name:"cond_strength",val:": float = 0.5"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"temporal_tile_size",val:": int = 80"},{name:"temporal_overlap",val:": int = 24"},{name:"temporal_overlap_cond_strength",val:": float = 0.5"},{name:"adain_factor",val:": float = 0.25"},{name:"guidance_latents",val:": typing.Optional[torch.Tensor] = None"},{name:"guiding_strength",val:": float = 1.0"},{name:"negative_index_latents",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_index_strength",val:": float = 1.0"},{name:"skip_steps_sigma_threshold",val:": typing.Optional[float] = 1"},{name:"decode_timestep",val:": typing.Optional[float] = 0.05"},{name:"decode_noise_scale",val:": typing.Optional[float] = 0.025"},{name:"decode_horizontal_tiles",val:": int = 4"},{name:"decode_vertical_tiles",val:": int = 4"},{name:"decode_overlap",val:": int = 3"},{name:"output_type",val:": typing.Optional[str] = 'latent'"},{name:"return_dict",val:": bool = True"},{name:"attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 128"}],parametersDescription:[{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Positive text prompt(s) per window. If a single string contains &#x2019;|&#x2019;, parts are split by bars.`,name:"prompt"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
Negative prompt(s) to suppress undesired content.`,name:"negative_prompt"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.prompt_segments",description:`<strong>prompt_segments</strong> (<code>List[dict]</code>, <em>optional</em>) &#x2014;
Segment mapping with {&#x201C;start_window&#x201D;, &#x201C;end_window&#x201D;, &#x201C;text&#x201D;} to override prompts per window.`,name:"prompt_segments"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>512</code>) &#x2014;
Output image height in pixels; must be divisible by 32.`,name:"height"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>704</code>) &#x2014;
Output image width in pixels; must be divisible by 32.`,name:"width"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>161</code>) &#x2014;
Number of output frames (in decoded pixel space).`,name:"num_frames"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.frame_rate",description:`<strong>frame_rate</strong> (<code>float</code>, defaults to <code>25</code>) &#x2014;
Frames-per-second; used to normalize temporal coordinates in <code>video_coords</code>.`,name:"frame_rate"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
CFG scale; values &gt; 1 enable classifier-free guidance.`,name:"guidance_scale"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
Optional rescale to mitigate overexposure under CFG (see <code>rescale_noise_cfg</code>).`,name:"guidance_rescale"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to <code>8</code>) &#x2014;
Denoising steps per window. Ignored if <code>sigmas</code> is provided.`,name:"num_inference_steps"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.sigmas",description:`<strong>sigmas</strong> (<code>List[float]</code> or <code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Explicit sigma schedule per window; if set, overrides <code>num_inference_steps</code>.`,name:"sigmas"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
Controls stochasticity; list accepted but first element is used (batch=1).`,name:"generator"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to <code>0</code>) &#x2014;
If provided, seeds the shared generator for global latents and derives a window-local generator with
<code>seed + w_start</code> per temporal window.`,name:"seed"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.cond_image",description:`<strong>cond_image</strong> (<code>PIL.Image.Image</code> or <code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Conditioning image; fixes frame 0 via per-token mask when <code>cond_strength &gt; 0</code>.`,name:"cond_image"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.cond_strength",description:`<strong>cond_strength</strong> (<code>float</code>, defaults to <code>0.5</code>) &#x2014;
Strength of first-frame hard conditioning (smaller cond_mask &#x21D2; stronger preservation).`,name:"cond_strength"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Initial latents [B, C_lat, F_lat, H_lat, W_lat]; if None, sampled with <code>randn_tensor</code>.`,name:"latents"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.temporal_tile_size",description:`<strong>temporal_tile_size</strong> (<code>int</code>, defaults to <code>80</code>) &#x2014;
Temporal window size (in decoded frames); internally scaled by VAE temporal compression.`,name:"temporal_tile_size"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.temporal_overlap",description:`<strong>temporal_overlap</strong> (<code>int</code>, defaults to <code>24</code>) &#x2014;
Overlap between consecutive windows (in decoded frames); internally scaled by compression.`,name:"temporal_overlap"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.temporal_overlap_cond_strength",description:`<strong>temporal_overlap_cond_strength</strong> (<code>float</code>, defaults to <code>0.5</code>) &#x2014;
Strength for injecting previous window tail latents at new window head.`,name:"temporal_overlap_cond_strength"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.adain_factor",description:`<strong>adain_factor</strong> (<code>float</code>, defaults to <code>0.25</code>) &#x2014;
AdaIN normalization strength for cross-window consistency (0 disables).`,name:"adain_factor"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.guidance_latents",description:`<strong>guidance_latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Reference latents injected at window head; length trimmed by overlap for subsequent windows.`,name:"guidance_latents"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.guiding_strength",description:`<strong>guiding_strength</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
Injection strength for <code>guidance_latents</code>.`,name:"guiding_strength"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.negative_index_latents",description:`<strong>negative_index_latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
A single-frame latent appended at window head for &#x201C;negative index&#x201D; semantics.`,name:"negative_index_latents"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.negative_index_strength",description:`<strong>negative_index_strength</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
Injection strength for <code>negative_index_latents</code>.`,name:"negative_index_strength"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.skip_steps_sigma_threshold",description:`<strong>skip_steps_sigma_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
Skip steps whose sigma exceeds this threshold.`,name:"skip_steps_sigma_threshold"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.decode_timestep",description:`<strong>decode_timestep</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.05</code>) &#x2014;
Decode-time timestep (if VAE supports timestep_conditioning).`,name:"decode_timestep"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.decode_noise_scale",description:`<strong>decode_noise_scale</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.025</code>) &#x2014;
Decode-time noise mix scale (if VAE supports timestep_conditioning).`,name:"decode_noise_scale"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.decode_horizontal_tiles",description:`<strong>decode_horizontal_tiles</strong> (<code>int</code>, defaults to <code>4</code>) &#x2014;
Number of horizontal tiles during VAE decoding.`,name:"decode_horizontal_tiles"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.decode_vertical_tiles",description:`<strong>decode_vertical_tiles</strong> (<code>int</code>, defaults to <code>4</code>) &#x2014;
Number of vertical tiles during VAE decoding.`,name:"decode_vertical_tiles"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.decode_overlap",description:`<strong>decode_overlap</strong> (<code>int</code>, defaults to <code>3</code>) &#x2014;
Overlap (in latent pixels) between tiles during VAE decoding.`,name:"decode_overlap"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;latent&quot;</code>) &#x2014;
The output format of the generated video. Choose between &#x201C;latent&#x201D;, &#x201C;pt&#x201D;, &#x201C;np&#x201D;, or &#x201C;pil&#x201D;. If &#x201C;latent&#x201D;,
returns latents without decoding.`,name:"output_type"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__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 <code>~pipelines.ltx.LTXPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.attention_kwargs",description:`<strong>attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Extra attention parameters forwarded to the transformer.`,name:"attention_kwargs"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>PipelineCallback</code> or <code>MultiPipelineCallbacks</code>, <em>optional</em>) &#x2014;
Per-step callback hook.`,name:"callback_on_step_end"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List[str]</code>, defaults to <code>[&quot;latents&quot;]</code>) &#x2014;
Keys from locals() to pass into the callback.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code>, defaults to <code>128</code>) &#x2014;
Tokenizer max length for prompt encoding.`,name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py#L933",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If <code>return_dict</code> is <code>True</code>, <code>~pipelines.ltx.LTXPipelineOutput</code> is returned, otherwise a <code>tuple</code> is
returned where the first element is a list with the generated frames. The output format depends on
<code>output_type</code>:</p>
<ul>
<li>“latent”/“pt”: <code>torch.Tensor</code> [B, C, F, H, W]; “latent” is in normalized latent space, “pt” is VAE
output space.</li>
<li>“np”: <code>np.ndarray</code> post-processed.</li>
<li>“pil”: <code>List[PIL.Image.Image]</code> list of PIL images.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>~pipelines.ltx.LTXPipelineOutput</code> or <code>tuple</code></p>
`}}),te=new os({props:{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.__call__.example",$$slots:{default:[Ca]},$$scope:{ctx:V}}}),Re=new j({props:{name:"encode_prompt",anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{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:"max_sequence_length",val:": int = 128"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"dtype",val:": typing.Optional[torch.dtype] = None"}],parametersDescription:[{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXI2VLongMultiPromptPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use classifier free guidance or not.`,name:"do_classifier_free_guidance"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of videos that should be generated per prompt. torch device to place the resulting embeddings on`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXI2VLongMultiPromptPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device`,name:"device"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.encode_prompt.dtype",description:`<strong>dtype</strong> &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py#L550"}}),Ne=new j({props:{name:"prepare_latents",anchor:"diffusers.LTXI2VLongMultiPromptPipeline.prepare_latents",parameters:[{name:"batch_size",val:": int"},{name:"num_channels_latents",val:": int"},{name:"height",val:": int"},{name:"width",val:": int"},{name:"num_frames",val:": int"},{name:"device",val:": device"},{name:"generator",val:": typing.Optional[torch._C.Generator]"},{name:"dtype",val:": dtype = torch.float32"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"cond_latents",val:": typing.Optional[torch.Tensor] = None"},{name:"cond_strength",val:": float = 0.0"},{name:"negative_index_latents",val:": typing.Optional[torch.Tensor] = None"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py#L692",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>latents, negative_index_latents, latent_num_frames, latent_height, latent_width</p>
`}}),Ye=new j({props:{name:"vae_decode_tiled",anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled",parameters:[{name:"latents",val:": Tensor"},{name:"decode_timestep",val:": typing.Optional[float] = None"},{name:"decode_noise_scale",val:": typing.Optional[float] = None"},{name:"horizontal_tiles",val:": int = 4"},{name:"vertical_tiles",val:": int = 4"},{name:"overlap",val:": int = 3"},{name:"last_frame_fix",val:": bool = True"},{name:"generator",val:": typing.Optional[torch._C.Generator] = None"},{name:"output_type",val:": str = 'pt'"},{name:"auto_denormalize",val:": bool = True"},{name:"compute_dtype",val:": dtype = torch.float32"},{name:"enable_vae_tiling",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.latents",description:"<strong>latents</strong> &#x2014; [B, C_latent, F_latent, H_latent, W_latent]",name:"latents"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.decode_timestep",description:"<strong>decode_timestep</strong> &#x2014; Optional decode timestep (effective only if VAE supports timestep_conditioning)",name:"decode_timestep"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.decode_noise_scale",description:`<strong>decode_noise_scale</strong> &#x2014;
Optional decode noise interpolation (effective only if VAE supports timestep_conditioning)`,name:"decode_noise_scale"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.horizontal_tiles,",description:"<strong>horizontal_tiles,</strong> vertical_tiles &#x2014; Number of tiles horizontally/vertically (&gt;= 1)",name:"horizontal_tiles,"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.overlap",description:"<strong>overlap</strong> &#x2014; Overlap in latent space (in latent pixels, &gt;= 0)",name:"overlap"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.last_frame_fix",description:"<strong>last_frame_fix</strong> &#x2014; Whether to enable the &#x201C;repeat last frame&#x201D; fix",name:"last_frame_fix"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.generator",description:"<strong>generator</strong> &#x2014; Random generator (used for decode_noise_scale noise)",name:"generator"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.output_type",description:`<strong>output_type</strong> &#x2014; &#x201C;latent&#x201D; | &#x201C;pt&#x201D; | &#x201C;np&#x201D; | &#x201C;pil&#x201D;
<ul>
<li>&#x201C;latent&#x201D;: return latents unchanged (useful for downstream processing)</li>
<li>&#x201C;pt&#x201D;: return tensor in VAE output space</li>
<li>&#x201C;np&#x201D;/&#x201C;pil&#x201D;: post-processed outputs via VideoProcessor.postprocess_video</li>
</ul>`,name:"output_type"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.auto_denormalize",description:"<strong>auto_denormalize</strong> &#x2014; If True, apply LTX de-normalization to <code>latents</code> internally (recommended)",name:"auto_denormalize"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.compute_dtype",description:"<strong>compute_dtype</strong> &#x2014; Precision used during tile fusion (float32 default; significantly reduces seam blur)",name:"compute_dtype"},{anchor:"diffusers.LTXI2VLongMultiPromptPipeline.vae_decode_tiled.enable_vae_tiling",description:"<strong>enable_vae_tiling</strong> &#x2014; If True, delegate tiling to VAE&#x2019;s built-in <code>tiled_decode</code> (sets <code>vae.use_tiling</code>).",name:"enable_vae_tiling"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py#L736",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>returns input <code>latents</code> unchanged</p>
<ul>
<li>If output_type=“pt”: returns [B, C, F, H, W] (values roughly in [-1, 1])</li>
<li>If output_type=“np”/“pil”: returns post-processed outputs via postprocess_video</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<ul>
<li>If output_type=“latent”</li>
</ul>
`}}),Fe=new fe({props:{title:"LTXPipeline",local:"diffusers.LTXPipeline",headingTag:"h2"}}),Ee=new j({props:{name:"class diffusers.LTXPipeline",anchor:"diffusers.LTXPipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKLLTXVideo"},{name:"text_encoder",val:": T5EncoderModel"},{name:"tokenizer",val:": T5TokenizerFast"},{name:"transformer",val:": LTXVideoTransformer3DModel"}],parametersDescription:[{anchor:"diffusers.LTXPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>) &#x2014;
Conditional Transformer architecture to denoise the encoded video latents.`,name:"transformer"},{anchor:"diffusers.LTXPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12625/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.LTXPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/autoencoderkl_ltx_video#diffusers.AutoencoderKLLTXVideo">AutoencoderKLLTXVideo</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.LTXPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>T5EncoderModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically
the <a href="https://huggingface.co/google/t5-v1_1-xxl" rel="nofollow">google/t5-v1_1-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.LTXPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.LTXPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5TokenizerFast</code>) &#x2014;
Second Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5TokenizerFast" rel="nofollow">T5TokenizerFast</a>.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx.py#L170"}}),He=new j({props:{name:"__call__",anchor:"diffusers.LTXPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"height",val:": int = 512"},{name:"width",val:": int = 704"},{name:"num_frames",val:": int = 161"},{name:"frame_rate",val:": int = 25"},{name:"num_inference_steps",val:": int = 50"},{name:"timesteps",val:": typing.List[int] = None"},{name:"guidance_scale",val:": float = 3"},{name:"guidance_rescale",val:": float = 0.0"},{name:"num_videos_per_prompt",val:": typing.Optional[int] = 1"},{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:"decode_timestep",val:": typing.Union[float, typing.List[float]] = 0.0"},{name:"decode_noise_scale",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 128"}],parametersDescription:[{anchor:"diffusers.LTXPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>512</code>) &#x2014;
The height in pixels of the generated image. This is set to 480 by default for the best results.`,name:"height"},{anchor:"diffusers.LTXPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>704</code>) &#x2014;
The width in pixels of the generated image. This is set to 848 by default for the best results.`,name:"width"},{anchor:"diffusers.LTXPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>161</code>) &#x2014;
The number of video frames to generate`,name:"num_frames"},{anchor:"diffusers.LTXPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#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.LTXPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>3 </code>) &#x2014;
Guidance scale as defined in <a href="https://huggingface.co/papers/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://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting
<code>guidance_scale &gt; 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.LTXPipeline.__call__.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Guidance rescale factor proposed by <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a> <code>guidance_scale</code> is defined as <code>&#x3C6;</code> in equation 16. of
<a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>. Guidance rescale factor should fix overexposure when
using zero terminal SNR.`,name:"guidance_rescale"},{anchor:"diffusers.LTXPipeline.__call__.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of videos to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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 be generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.LTXPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.__call__.prompt_attention_mask",description:`<strong>prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for text embeddings.`,name:"prompt_attention_mask"},{anchor:"diffusers.LTXPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. For PixArt-Sigma this negative prompt should be &quot;&quot;. If not
provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXPipeline.__call__.negative_prompt_attention_mask",description:`<strong>negative_prompt_attention_mask</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for negative text embeddings.`,name:"negative_prompt_attention_mask"},{anchor:"diffusers.LTXPipeline.__call__.decode_timestep",description:`<strong>decode_timestep</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The timestep at which generated video is decoded.`,name:"decode_timestep"},{anchor:"diffusers.LTXPipeline.__call__.decode_noise_scale",description:`<strong>decode_noise_scale</strong> (<code>float</code>, defaults to <code>None</code>) &#x2014;
The interpolation factor between random noise and denoised latents at the decode timestep.`,name:"decode_noise_scale"},{anchor:"diffusers.LTXPipeline.__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.LTXPipeline.__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 <code>~pipelines.ltx.LTXPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.LTXPipeline.__call__.attention_kwargs",description:`<strong>attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"attention_kwargs"},{anchor:"diffusers.LTXPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LTXPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.LTXPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code> defaults to <code>128 </code>) &#x2014;
Maximum sequence length to use with the <code>prompt</code>.`,name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx.py#L535",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If <code>return_dict</code> is <code>True</code>, <code>~pipelines.ltx.LTXPipelineOutput</code> 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><code>~pipelines.ltx.LTXPipelineOutput</code> or <code>tuple</code></p>
`}}),oe=new os({props:{anchor:"diffusers.LTXPipeline.__call__.example",$$slots:{default:[La]},$$scope:{ctx:V}}}),Qe=new j({props:{name:"encode_prompt",anchor:"diffusers.LTXPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{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:"max_sequence_length",val:": int = 128"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"dtype",val:": typing.Optional[torch.dtype] = None"}],parametersDescription:[{anchor:"diffusers.LTXPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LTXPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use classifier free guidance or not.`,name:"do_classifier_free_guidance"},{anchor:"diffusers.LTXPipeline.encode_prompt.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of videos that should be generated per prompt. torch device to place the resulting embeddings on`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device`,name:"device"},{anchor:"diffusers.LTXPipeline.encode_prompt.dtype",description:`<strong>dtype</strong> &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx.py#L283"}}),ze=new fe({props:{title:"LTXImageToVideoPipeline",local:"diffusers.LTXImageToVideoPipeline",headingTag:"h2"}}),Pe=new j({props:{name:"class diffusers.LTXImageToVideoPipeline",anchor:"diffusers.LTXImageToVideoPipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKLLTXVideo"},{name:"text_encoder",val:": T5EncoderModel"},{name:"tokenizer",val:": T5TokenizerFast"},{name:"transformer",val:": LTXVideoTransformer3DModel"}],parametersDescription:[{anchor:"diffusers.LTXImageToVideoPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>) &#x2014;
Conditional Transformer architecture to denoise the encoded video latents.`,name:"transformer"},{anchor:"diffusers.LTXImageToVideoPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12625/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.LTXImageToVideoPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/autoencoderkl_ltx_video#diffusers.AutoencoderKLLTXVideo">AutoencoderKLLTXVideo</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.LTXImageToVideoPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>T5EncoderModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically
the <a href="https://huggingface.co/google/t5-v1_1-xxl" rel="nofollow">google/t5-v1_1-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.LTXImageToVideoPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.LTXImageToVideoPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5TokenizerFast</code>) &#x2014;
Second Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5TokenizerFast" rel="nofollow">T5TokenizerFast</a>.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py#L189"}}),Se=new j({props:{name:"__call__",anchor:"diffusers.LTXImageToVideoPipeline.__call__",parameters:[{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]] = None"},{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"height",val:": int = 512"},{name:"width",val:": int = 704"},{name:"num_frames",val:": int = 161"},{name:"frame_rate",val:": int = 25"},{name:"num_inference_steps",val:": int = 50"},{name:"timesteps",val:": typing.List[int] = None"},{name:"guidance_scale",val:": float = 3"},{name:"guidance_rescale",val:": float = 0.0"},{name:"num_videos_per_prompt",val:": typing.Optional[int] = 1"},{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:"decode_timestep",val:": typing.Union[float, typing.List[float]] = 0.0"},{name:"decode_noise_scale",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 128"}],parametersDescription:[{anchor:"diffusers.LTXImageToVideoPipeline.__call__.image",description:`<strong>image</strong> (<code>PipelineImageInput</code>) &#x2014;
The input image to condition the generation on. Must be an image, a list of images or a <code>torch.Tensor</code>.`,name:"image"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>512</code>) &#x2014;
The height in pixels of the generated image. This is set to 480 by default for the best results.`,name:"height"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>704</code>) &#x2014;
The width in pixels of the generated image. This is set to 848 by default for the best results.`,name:"width"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>161</code>) &#x2014;
The number of video frames to generate`,name:"num_frames"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#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.LTXImageToVideoPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>3 </code>) &#x2014;
Guidance scale as defined in <a href="https://huggingface.co/papers/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://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting
<code>guidance_scale &gt; 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.LTXImageToVideoPipeline.__call__.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Guidance rescale factor proposed by <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a> <code>guidance_scale</code> is defined as <code>&#x3C6;</code> in equation 16. of
<a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>. Guidance rescale factor should fix overexposure when
using zero terminal SNR.`,name:"guidance_rescale"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of videos to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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 be generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.__call__.prompt_attention_mask",description:`<strong>prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for text embeddings.`,name:"prompt_attention_mask"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. For PixArt-Sigma this negative prompt should be &quot;&quot;. If not
provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.negative_prompt_attention_mask",description:`<strong>negative_prompt_attention_mask</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for negative text embeddings.`,name:"negative_prompt_attention_mask"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.decode_timestep",description:`<strong>decode_timestep</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The timestep at which generated video is decoded.`,name:"decode_timestep"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.decode_noise_scale",description:`<strong>decode_noise_scale</strong> (<code>float</code>, defaults to <code>None</code>) &#x2014;
The interpolation factor between random noise and denoised latents at the decode timestep.`,name:"decode_noise_scale"},{anchor:"diffusers.LTXImageToVideoPipeline.__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.LTXImageToVideoPipeline.__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 <code>~pipelines.ltx.LTXPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.attention_kwargs",description:`<strong>attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"attention_kwargs"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.LTXImageToVideoPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code> defaults to <code>128 </code>) &#x2014;
Maximum sequence length to use with the <code>prompt</code>.`,name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py#L596",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If <code>return_dict</code> is <code>True</code>, <code>~pipelines.ltx.LTXPipelineOutput</code> 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><code>~pipelines.ltx.LTXPipelineOutput</code> or <code>tuple</code></p>
`}}),le=new os({props:{anchor:"diffusers.LTXImageToVideoPipeline.__call__.example",$$slots:{default:[Ra]},$$scope:{ctx:V}}}),$e=new j({props:{name:"encode_prompt",anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{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:"max_sequence_length",val:": int = 128"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"dtype",val:": typing.Optional[torch.dtype] = None"}],parametersDescription:[{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use classifier free guidance or not.`,name:"do_classifier_free_guidance"},{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of videos that should be generated per prompt. torch device to place the resulting embeddings on`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXImageToVideoPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device`,name:"device"},{anchor:"diffusers.LTXImageToVideoPipeline.encode_prompt.dtype",description:`<strong>dtype</strong> &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py#L306"}}),Ae=new fe({props:{title:"LTXConditionPipeline",local:"diffusers.LTXConditionPipeline",headingTag:"h2"}}),De=new j({props:{name:"class diffusers.LTXConditionPipeline",anchor:"diffusers.LTXConditionPipeline",parameters:[{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"vae",val:": AutoencoderKLLTXVideo"},{name:"text_encoder",val:": T5EncoderModel"},{name:"tokenizer",val:": T5TokenizerFast"},{name:"transformer",val:": LTXVideoTransformer3DModel"}],parametersDescription:[{anchor:"diffusers.LTXConditionPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>) &#x2014;
Conditional Transformer architecture to denoise the encoded video latents.`,name:"transformer"},{anchor:"diffusers.LTXConditionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_12625/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler">FlowMatchEulerDiscreteScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded image latents.`,name:"scheduler"},{anchor:"diffusers.LTXConditionPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_12625/en/api/models/autoencoderkl_ltx_video#diffusers.AutoencoderKLLTXVideo">AutoencoderKLLTXVideo</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.LTXConditionPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>T5EncoderModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically
the <a href="https://huggingface.co/google/t5-v1_1-xxl" rel="nofollow">google/t5-v1_1-xxl</a> variant.`,name:"text_encoder"},{anchor:"diffusers.LTXConditionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>CLIPTokenizer</code>) &#x2014;
Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/clip#transformers.CLIPTokenizer" rel="nofollow">CLIPTokenizer</a>.`,name:"tokenizer"},{anchor:"diffusers.LTXConditionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>T5TokenizerFast</code>) &#x2014;
Second Tokenizer of class
<a href="https://huggingface.co/docs/transformers/en/model_doc/t5#transformers.T5TokenizerFast" rel="nofollow">T5TokenizerFast</a>.`,name:"tokenizer"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_condition.py#L252"}}),qe=new j({props:{name:"__call__",anchor:"diffusers.LTXConditionPipeline.__call__",parameters:[{name:"conditions",val:": typing.Union[diffusers.pipelines.ltx.pipeline_ltx_condition.LTXVideoCondition, typing.List[diffusers.pipelines.ltx.pipeline_ltx_condition.LTXVideoCondition]] = None"},{name:"image",val:": typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor], typing.List[typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]]]] = None"},{name:"video",val:": typing.List[typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]]] = None"},{name:"frame_index",val:": typing.Union[int, typing.List[int]] = 0"},{name:"strength",val:": typing.Union[float, typing.List[float]] = 1.0"},{name:"denoise_strength",val:": float = 1.0"},{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"height",val:": int = 512"},{name:"width",val:": int = 704"},{name:"num_frames",val:": int = 161"},{name:"frame_rate",val:": int = 25"},{name:"num_inference_steps",val:": int = 50"},{name:"timesteps",val:": typing.List[int] = None"},{name:"guidance_scale",val:": float = 3"},{name:"guidance_rescale",val:": float = 0.0"},{name:"image_cond_noise_scale",val:": float = 0.15"},{name:"num_videos_per_prompt",val:": typing.Optional[int] = 1"},{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:"decode_timestep",val:": typing.Union[float, typing.List[float]] = 0.0"},{name:"decode_noise_scale",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"callback_on_step_end",val:": typing.Optional[typing.Callable[[int, int, typing.Dict], NoneType]] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"max_sequence_length",val:": int = 256"}],parametersDescription:[{anchor:"diffusers.LTXConditionPipeline.__call__.conditions",description:`<strong>conditions</strong> (<code>List[LTXVideoCondition], *optional*</code>) &#x2014;
The list of frame-conditioning items for the video generation.If not provided, conditions will be
created using <code>image</code>, <code>video</code>, <code>frame_index</code> and <code>strength</code>.`,name:"conditions"},{anchor:"diffusers.LTXConditionPipeline.__call__.image",description:`<strong>image</strong> (<code>PipelineImageInput</code> or <code>List[PipelineImageInput]</code>, <em>optional</em>) &#x2014;
The image or images to condition the video generation. If not provided, one has to pass <code>video</code> or
<code>conditions</code>.`,name:"image"},{anchor:"diffusers.LTXConditionPipeline.__call__.video",description:`<strong>video</strong> (<code>List[PipelineImageInput]</code>, <em>optional</em>) &#x2014;
The video to condition the video generation. If not provided, one has to pass <code>image</code> or <code>conditions</code>.`,name:"video"},{anchor:"diffusers.LTXConditionPipeline.__call__.frame_index",description:`<strong>frame_index</strong> (<code>int</code> or <code>List[int]</code>, <em>optional</em>) &#x2014;
The frame index or frame indices at which the image or video will conditionally effect the video
generation. If not provided, one has to pass <code>conditions</code>.`,name:"frame_index"},{anchor:"diffusers.LTXConditionPipeline.__call__.strength",description:`<strong>strength</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>) &#x2014;
The strength or strengths of the conditioning effect. If not provided, one has to pass <code>conditions</code>.`,name:"strength"},{anchor:"diffusers.LTXConditionPipeline.__call__.denoise_strength",description:`<strong>denoise_strength</strong> (<code>float</code>, defaults to <code>1.0</code>) &#x2014;
The strength of the noise added to the latents for editing. Higher strength leads to more noise added
to the latents, therefore leading to more differences between original video and generated video. This
is useful for video-to-video editing.`,name:"denoise_strength"},{anchor:"diffusers.LTXConditionPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>512</code>) &#x2014;
The height in pixels of the generated image. This is set to 480 by default for the best results.`,name:"height"},{anchor:"diffusers.LTXConditionPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>704</code>) &#x2014;
The width in pixels of the generated image. This is set to 848 by default for the best results.`,name:"width"},{anchor:"diffusers.LTXConditionPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>161</code>) &#x2014;
The number of video frames to generate`,name:"num_frames"},{anchor:"diffusers.LTXConditionPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 50) &#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.LTXConditionPipeline.__call__.timesteps",description:`<strong>timesteps</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>3 </code>) &#x2014;
Guidance scale as defined in <a href="https://huggingface.co/papers/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://huggingface.co/papers/2205.11487" rel="nofollow">Imagen Paper</a>. Guidance scale is enabled by setting
<code>guidance_scale &gt; 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.LTXConditionPipeline.__call__.guidance_rescale",description:`<strong>guidance_rescale</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Guidance rescale factor proposed by <a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a> <code>guidance_scale</code> is defined as <code>&#x3C6;</code> in equation 16. of
<a href="https://huggingface.co/papers/2305.08891" rel="nofollow">Common Diffusion Noise Schedules and Sample Steps are
Flawed</a>. Guidance rescale factor should fix overexposure when
using zero terminal SNR.`,name:"guidance_rescale"},{anchor:"diffusers.LTXConditionPipeline.__call__.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of videos to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXConditionPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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 be generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.LTXConditionPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.__call__.prompt_attention_mask",description:`<strong>prompt_attention_mask</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for text embeddings.`,name:"prompt_attention_mask"},{anchor:"diffusers.LTXConditionPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. For PixArt-Sigma this negative prompt should be &quot;&quot;. If not
provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXConditionPipeline.__call__.negative_prompt_attention_mask",description:`<strong>negative_prompt_attention_mask</strong> (<code>torch.FloatTensor</code>, <em>optional</em>) &#x2014;
Pre-generated attention mask for negative text embeddings.`,name:"negative_prompt_attention_mask"},{anchor:"diffusers.LTXConditionPipeline.__call__.decode_timestep",description:`<strong>decode_timestep</strong> (<code>float</code>, defaults to <code>0.0</code>) &#x2014;
The timestep at which generated video is decoded.`,name:"decode_timestep"},{anchor:"diffusers.LTXConditionPipeline.__call__.decode_noise_scale",description:`<strong>decode_noise_scale</strong> (<code>float</code>, defaults to <code>None</code>) &#x2014;
The interpolation factor between random noise and denoised latents at the decode timestep.`,name:"decode_noise_scale"},{anchor:"diffusers.LTXConditionPipeline.__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.LTXConditionPipeline.__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 <code>~pipelines.ltx.LTXPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.LTXConditionPipeline.__call__.attention_kwargs",description:`<strong>attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined under
<code>self.processor</code> in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow">diffusers.models.attention_processor</a>.`,name:"attention_kwargs"},{anchor:"diffusers.LTXConditionPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls at the end of each denoising steps during the inference. The function is called
with the following arguments: <code>callback_on_step_end(self: DiffusionPipeline, step: int, timestep: int, callback_kwargs: Dict)</code>. <code>callback_kwargs</code> will include a list of all tensors as specified by
<code>callback_on_step_end_tensor_inputs</code>.`,name:"callback_on_step_end"},{anchor:"diffusers.LTXConditionPipeline.__call__.callback_on_step_end_tensor_inputs",description:`<strong>callback_on_step_end_tensor_inputs</strong> (<code>List</code>, <em>optional</em>) &#x2014;
The list of tensor inputs for the <code>callback_on_step_end</code> function. The tensors specified in the list
will be passed as <code>callback_kwargs</code> argument. You will only be able to include variables listed in the
<code>._callback_tensor_inputs</code> attribute of your pipeline class.`,name:"callback_on_step_end_tensor_inputs"},{anchor:"diffusers.LTXConditionPipeline.__call__.max_sequence_length",description:`<strong>max_sequence_length</strong> (<code>int</code> defaults to <code>128 </code>) &#x2014;
Maximum sequence length to use with the <code>prompt</code>.`,name:"max_sequence_length"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_condition.py#L848",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>If <code>return_dict</code> is <code>True</code>, <code>~pipelines.ltx.LTXPipelineOutput</code> 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><code>~pipelines.ltx.LTXPipelineOutput</code> or <code>tuple</code></p>
`}}),re=new os({props:{anchor:"diffusers.LTXConditionPipeline.__call__.example",$$slots:{default:[Na]},$$scope:{ctx:V}}}),Oe=new j({props:{name:"add_noise_to_image_conditioning_latents",anchor:"diffusers.LTXConditionPipeline.add_noise_to_image_conditioning_latents",parameters:[{name:"t",val:": float"},{name:"init_latents",val:": Tensor"},{name:"latents",val:": Tensor"},{name:"noise_scale",val:": float"},{name:"conditioning_mask",val:": Tensor"},{name:"generator",val:""},{name:"eps",val:" = 1e-06"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_condition.py#L646"}}),Ke=new j({props:{name:"encode_prompt",anchor:"diffusers.LTXConditionPipeline.encode_prompt",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]]"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"do_classifier_free_guidance",val:": bool = True"},{name:"num_videos_per_prompt",val:": int = 1"},{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:"max_sequence_length",val:": int = 256"},{name:"device",val:": typing.Optional[torch.device] = None"},{name:"dtype",val:": typing.Optional[torch.dtype] = None"}],parametersDescription:[{anchor:"diffusers.LTXConditionPipeline.encode_prompt.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
prompt to be encoded`,name:"prompt"},{anchor:"diffusers.LTXConditionPipeline.encode_prompt.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.encode_prompt.do_classifier_free_guidance",description:`<strong>do_classifier_free_guidance</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use classifier free guidance or not.`,name:"do_classifier_free_guidance"},{anchor:"diffusers.LTXConditionPipeline.encode_prompt.num_videos_per_prompt",description:`<strong>num_videos_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of videos that should be generated per prompt. torch device to place the resulting embeddings on`,name:"num_videos_per_prompt"},{anchor:"diffusers.LTXConditionPipeline.encode_prompt.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
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.LTXConditionPipeline.encode_prompt.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs, <em>e.g.</em> prompt
weighting. If not provided, negative_prompt_embeds will be generated from <code>negative_prompt</code> input
argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.LTXConditionPipeline.encode_prompt.device",description:`<strong>device</strong> &#x2014; (<code>torch.device</code>, <em>optional</em>):
torch device`,name:"device"},{anchor:"diffusers.LTXConditionPipeline.encode_prompt.dtype",description:`<strong>dtype</strong> &#x2014; (<code>torch.dtype</code>, <em>optional</em>):
torch dtype`,name:"dtype"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_condition.py#L369"}}),et=new j({props:{name:"trim_conditioning_sequence",anchor:"diffusers.LTXConditionPipeline.trim_conditioning_sequence",parameters:[{name:"start_frame",val:": int"},{name:"sequence_num_frames",val:": int"},{name:"target_num_frames",val:": int"}],parametersDescription:[{anchor:"diffusers.LTXConditionPipeline.trim_conditioning_sequence.start_frame",description:"<strong>start_frame</strong> (int) &#x2014; The target frame number of the first frame in the sequence.",name:"start_frame"},{anchor:"diffusers.LTXConditionPipeline.trim_conditioning_sequence.sequence_num_frames",description:"<strong>sequence_num_frames</strong> (int) &#x2014; The number of frames in the sequence.",name:"sequence_num_frames"},{anchor:"diffusers.LTXConditionPipeline.trim_conditioning_sequence.target_num_frames",description:"<strong>target_num_frames</strong> (int) &#x2014; The target number of frames in the generated video.",name:"target_num_frames"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_condition.py#L629",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>updated sequence length</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>int</p>
`}}),tt=new fe({props:{title:"LTXLatentUpsamplePipeline",local:"diffusers.LTXLatentUpsamplePipeline",headingTag:"h2"}}),nt=new j({props:{name:"class diffusers.LTXLatentUpsamplePipeline",anchor:"diffusers.LTXLatentUpsamplePipeline",parameters:[{name:"vae",val:": AutoencoderKLLTXVideo"},{name:"latent_upsampler",val:": LTXLatentUpsamplerModel"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L46"}}),st=new j({props:{name:"__call__",anchor:"diffusers.LTXLatentUpsamplePipeline.__call__",parameters:[{name:"video",val:": typing.Optional[typing.List[typing.Union[PIL.Image.Image, numpy.ndarray, torch.Tensor, typing.List[PIL.Image.Image], typing.List[numpy.ndarray], typing.List[torch.Tensor]]]] = None"},{name:"height",val:": int = 512"},{name:"width",val:": int = 704"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"decode_timestep",val:": typing.Union[float, typing.List[float]] = 0.0"},{name:"decode_noise_scale",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"adain_factor",val:": float = 0.0"},{name:"tone_map_compression_ratio",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L243"}}),ot=new j({props:{name:"adain_filter_latent",anchor:"diffusers.LTXLatentUpsamplePipeline.adain_filter_latent",parameters:[{name:"latents",val:": Tensor"},{name:"reference_latents",val:": Tensor"},{name:"factor",val:": float = 1.0"}],parametersDescription:[{anchor:"diffusers.LTXLatentUpsamplePipeline.adain_filter_latent.latent",description:`<strong>latent</strong> (<code>torch.Tensor</code>) &#x2014;
Input latents to normalize`,name:"latent"},{anchor:"diffusers.LTXLatentUpsamplePipeline.adain_filter_latent.reference_latents",description:`<strong>reference_latents</strong> (<code>torch.Tensor</code>) &#x2014;
The reference latents providing style statistics.`,name:"reference_latents"},{anchor:"diffusers.LTXLatentUpsamplePipeline.adain_filter_latent.factor",description:`<strong>factor</strong> (<code>float</code>) &#x2014;
Blending factor between original and transformed latent. Range: -10.0 to 10.0, Default: 1.0`,name:"factor"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L96",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The transformed latent tensor</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>torch.Tensor</p>
`}}),at=new j({props:{name:"disable_vae_slicing",anchor:"diffusers.LTXLatentUpsamplePipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L191"}}),lt=new j({props:{name:"disable_vae_tiling",anchor:"diffusers.LTXLatentUpsamplePipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L218"}}),it=new j({props:{name:"enable_vae_slicing",anchor:"diffusers.LTXLatentUpsamplePipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L178"}}),rt=new j({props:{name:"enable_vae_tiling",anchor:"diffusers.LTXLatentUpsamplePipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L204"}}),dt=new j({props:{name:"tone_map_latents",anchor:"diffusers.LTXLatentUpsamplePipeline.tone_map_latents",parameters:[{name:"latents",val:": Tensor"},{name:"compression",val:": float"}],parametersDescription:[{anchor:"diffusers.LTXLatentUpsamplePipeline.tone_map_latents.latents",description:`<strong>latents</strong> &#x2014; torch.Tensor
Input latent tensor with arbitrary shape. Expected to be roughly in [-1, 1] or [0, 1] range.`,name:"latents"},{anchor:"diffusers.LTXLatentUpsamplePipeline.tone_map_latents.compression",description:`<strong>compression</strong> &#x2014; float
Compression strength in the range [0, 1].
<ul>
<li>0.0: No tone-mapping (identity transform)</li>
<li>1.0: Full compression effect</li>
</ul>`,name:"compression"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py#L124",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>torch.Tensor
The tone-mapped latent tensor of the same shape as input.</p>
`}}),pt=new fe({props:{title:"LTXPipelineOutput",local:"diffusers.pipelines.ltx.pipeline_output.LTXPipelineOutput",headingTag:"h2"}}),ct=new j({props:{name:"class diffusers.pipelines.ltx.pipeline_output.LTXPipelineOutput",anchor:"diffusers.pipelines.ltx.pipeline_output.LTXPipelineOutput",parameters:[{name:"frames",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.pipelines.ltx.pipeline_output.LTXPipelineOutput.frames",description:`<strong>frames</strong> (<code>torch.Tensor</code>, <code>np.ndarray</code>, or List[List[PIL.Image.Image]]) &#x2014;
List of video outputs - It can be a nested list of length <code>batch_size,</code> with each sub-list containing
denoised PIL image sequences of length <code>num_frames.</code> It can also be a NumPy array or Torch tensor of shape
<code>(batch_size, num_frames, channels, height, width)</code>.`,name:"frames"}],source:"https://github.com/huggingface/diffusers/blob/vr_12625/src/diffusers/pipelines/ltx/pipeline_output.py#L9"}}),mt=new Ba({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/ltx_video.md"}}),{c(){r=o("meta"),U=n(),T=o("p"),c=n(),m=o("div"),m.innerHTML=i,b=n(),h(k.$$.fragment),v=n(),F=o("p"),F.innerHTML=vo,_n=n(),_e=o("p"),_e.innerHTML=Zo,yn=n(),K=o("blockquote"),K.innerHTML=Io,Tn=n(),ye=o("p"),ye.textContent=Go,wn=n(),h(ee.$$.fragment),bn=n(),h(Te.$$.fragment),Jn=n(),x=o("ul"),Mt=o("li"),Mt.innerHTML=Xo,as=n(),we=o("li"),ft=o("p"),ft.textContent=Bo,ls=n(),be=o("details"),_t=o("summary"),_t.textContent=Vo,is=n(),h(Je.$$.fragment),rs=n(),D=o("li"),yt=o("p"),yt.innerHTML=xo,ds=n(),Tt=o("ul"),Tt.innerHTML=Wo,ps=n(),Ue=o("details"),wt=o("summary"),wt.textContent=ko,cs=n(),h(je.$$.fragment),ms=n(),ve=o("li"),bt=o("p"),bt.innerHTML=Co,us=n(),Ze=o("details"),Jt=o("summary"),Jt.textContent=Lo,hs=n(),h(Ie.$$.fragment),gs=n(),Ge=o("li"),Ut=o("p"),Ut.innerHTML=Ro,Ms=n(),Xe=o("details"),jt=o("summary"),jt.textContent=No,fs=n(),h(Be.$$.fragment),_s=n(),Ve=o("li"),vt=o("p"),vt.innerHTML=Yo,ys=n(),xe=o("details"),Zt=o("summary"),Zt.textContent=Fo,Ts=n(),h(We.$$.fragment),Un=n(),h(ke.$$.fragment),jn=n(),Z=o("div"),h(Ce.$$.fragment),ws=n(),It=o("p"),It.textContent=Eo,bs=n(),Gt=o("p"),Gt.textContent=Ho,Js=n(),Xt=o("ul"),Xt.innerHTML=Qo,Us=n(),Bt=o("p"),Bt.innerHTML=zo,js=n(),X=o("div"),h(Le.$$.fragment),vs=n(),Vt=o("p"),Vt.textContent=Po,Zs=n(),h(te.$$.fragment),Is=n(),xt=o("p"),xt.textContent=So,Gs=n(),Wt=o("ul"),Wt.innerHTML=$o,Xs=n(),kt=o("p"),kt.textContent=Ao,Bs=n(),Ct=o("ul"),Ct.innerHTML=Do,Vs=n(),ne=o("div"),h(Re.$$.fragment),xs=n(),Lt=o("p"),Lt.textContent=qo,Ws=n(),se=o("div"),h(Ne.$$.fragment),ks=n(),Rt=o("p"),Rt.textContent=Oo,Cs=n(),H=o("div"),h(Ye.$$.fragment),Ls=n(),Nt=o("p"),Nt.textContent=Ko,Rs=n(),Yt=o("ul"),Yt.innerHTML=ea,vn=n(),h(Fe.$$.fragment),Zn=n(),C=o("div"),h(Ee.$$.fragment),Ns=n(),Ft=o("p"),Ft.textContent=ta,Ys=n(),Et=o("p"),Et.innerHTML=na,Fs=n(),Q=o("div"),h(He.$$.fragment),Es=n(),Ht=o("p"),Ht.textContent=sa,Hs=n(),h(oe.$$.fragment),Qs=n(),ae=o("div"),h(Qe.$$.fragment),zs=n(),Qt=o("p"),Qt.textContent=oa,In=n(),h(ze.$$.fragment),Gn=n(),L=o("div"),h(Pe.$$.fragment),Ps=n(),zt=o("p"),zt.textContent=aa,Ss=n(),Pt=o("p"),Pt.innerHTML=la,$s=n(),z=o("div"),h(Se.$$.fragment),As=n(),St=o("p"),St.textContent=ia,Ds=n(),h(le.$$.fragment),qs=n(),ie=o("div"),h($e.$$.fragment),Os=n(),$t=o("p"),$t.textContent=ra,Xn=n(),h(Ae.$$.fragment),Bn=n(),G=o("div"),h(De.$$.fragment),Ks=n(),At=o("p"),At.textContent=da,eo=n(),Dt=o("p"),Dt.innerHTML=pa,to=n(),P=o("div"),h(qe.$$.fragment),no=n(),qt=o("p"),qt.textContent=ca,so=n(),h(re.$$.fragment),oo=n(),de=o("div"),h(Oe.$$.fragment),ao=n(),Ot=o("p"),Ot.textContent=ma,lo=n(),pe=o("div"),h(Ke.$$.fragment),io=n(),Kt=o("p"),Kt.textContent=ua,ro=n(),ce=o("div"),h(et.$$.fragment),po=n(),en=o("p"),en.textContent=ha,Vn=n(),h(tt.$$.fragment),xn=n(),I=o("div"),h(nt.$$.fragment),co=n(),tn=o("div"),h(st.$$.fragment),mo=n(),me=o("div"),h(ot.$$.fragment),uo=n(),nn=o("p"),nn.textContent=ga,ho=n(),ue=o("div"),h(at.$$.fragment),go=n(),sn=o("p"),sn.innerHTML=Ma,Mo=n(),he=o("div"),h(lt.$$.fragment),fo=n(),on=o("p"),on.innerHTML=fa,_o=n(),ge=o("div"),h(it.$$.fragment),yo=n(),an=o("p"),an.textContent=_a,To=n(),Me=o("div"),h(rt.$$.fragment),wo=n(),ln=o("p"),ln.textContent=ya,bo=n(),S=o("div"),h(dt.$$.fragment),Jo=n(),rn=o("p"),rn.textContent=Ta,Uo=n(),dn=o("p"),dn.innerHTML=wa,Wn=n(),h(pt.$$.fragment),kn=n(),q=o("div"),h(ct.$$.fragment),jo=n(),pn=o("p"),pn.textContent=ba,Cn=n(),h(mt.$$.fragment),Ln=n(),fn=o("p"),this.h()},l(e){const d=Ga("svelte-u9bgzb",document.head);r=a(d,"META",{name:!0,content:!0}),d.forEach(l),U=s(e),T=a(e,"P",{}),w(T).forEach(l),c=s(e),m=a(e,"DIV",{style:!0,"data-svelte-h":!0}),p(m)!=="svelte-py9lmv"&&(m.innerHTML=i),b=s(e),g(k.$$.fragment,e),v=s(e),F=a(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-1mgfd6u"&&(F.innerHTML=vo),_n=s(e),_e=a(e,"P",{"data-svelte-h":!0}),p(_e)!=="svelte-1134kk7"&&(_e.innerHTML=Zo),yn=s(e),K=a(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),p(K)!=="svelte-4c9qsc"&&(K.innerHTML=Io),Tn=s(e),ye=a(e,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-pzhop3"&&(ye.textContent=Go),wn=s(e),g(ee.$$.fragment,e),bn=s(e),g(Te.$$.fragment,e),Jn=s(e),x=a(e,"UL",{});var R=w(x);Mt=a(R,"LI",{"data-svelte-h":!0}),p(Mt)!=="svelte-1bpotiv"&&(Mt.innerHTML=Xo),as=s(R),we=a(R,"LI",{});var ut=w(we);ft=a(ut,"P",{"data-svelte-h":!0}),p(ft)!=="svelte-nohx4d"&&(ft.textContent=Bo),ls=s(ut),be=a(ut,"DETAILS",{});var ht=w(be);_t=a(ht,"SUMMARY",{"data-svelte-h":!0}),p(_t)!=="svelte-1m0l1gk"&&(_t.textContent=Vo),is=s(ht),g(Je.$$.fragment,ht),ht.forEach(l),ut.forEach(l),rs=s(R),D=a(R,"LI",{});var O=w(D);yt=a(O,"P",{"data-svelte-h":!0}),p(yt)!=="svelte-12jhl43"&&(yt.innerHTML=xo),ds=s(O),Tt=a(O,"UL",{"data-svelte-h":!0}),p(Tt)!=="svelte-lvdcu8"&&(Tt.innerHTML=Wo),ps=s(O),Ue=a(O,"DETAILS",{});var gt=w(Ue);wt=a(gt,"SUMMARY",{"data-svelte-h":!0}),p(wt)!=="svelte-1m0l1gk"&&(wt.textContent=ko),cs=s(gt),g(je.$$.fragment,gt),gt.forEach(l),O.forEach(l),ms=s(R),ve=a(R,"LI",{});var Nn=w(ve);bt=a(Nn,"P",{"data-svelte-h":!0}),p(bt)!=="svelte-omunxq"&&(bt.innerHTML=Co),us=s(Nn),Ze=a(Nn,"DETAILS",{});var Yn=w(Ze);Jt=a(Yn,"SUMMARY",{"data-svelte-h":!0}),p(Jt)!=="svelte-1m0l1gk"&&(Jt.textContent=Lo),hs=s(Yn),g(Ie.$$.fragment,Yn),Yn.forEach(l),Nn.forEach(l),gs=s(R),Ge=a(R,"LI",{});var Fn=w(Ge);Ut=a(Fn,"P",{"data-svelte-h":!0}),p(Ut)!=="svelte-1e7fvtp"&&(Ut.innerHTML=Ro),Ms=s(Fn),Xe=a(Fn,"DETAILS",{});var En=w(Xe);jt=a(En,"SUMMARY",{"data-svelte-h":!0}),p(jt)!=="svelte-1m0l1gk"&&(jt.textContent=No),fs=s(En),g(Be.$$.fragment,En),En.forEach(l),Fn.forEach(l),_s=s(R),Ve=a(R,"LI",{});var Hn=w(Ve);vt=a(Hn,"P",{"data-svelte-h":!0}),p(vt)!=="svelte-16x05cv"&&(vt.innerHTML=Yo),ys=s(Hn),xe=a(Hn,"DETAILS",{});var Qn=w(xe);Zt=a(Qn,"SUMMARY",{"data-svelte-h":!0}),p(Zt)!=="svelte-1m0l1gk"&&(Zt.textContent=Fo),Ts=s(Qn),g(We.$$.fragment,Qn),Qn.forEach(l),Hn.forEach(l),R.forEach(l),Un=s(e),g(ke.$$.fragment,e),jn=s(e),Z=a(e,"DIV",{class:!0});var B=w(Z);g(Ce.$$.fragment,B),ws=s(B),It=a(B,"P",{"data-svelte-h":!0}),p(It)!=="svelte-1vx94uz"&&(It.textContent=Eo),bs=s(B),Gt=a(B,"P",{"data-svelte-h":!0}),p(Gt)!=="svelte-1ooaz34"&&(Gt.textContent=Ho),Js=s(B),Xt=a(B,"UL",{"data-svelte-h":!0}),p(Xt)!=="svelte-18p4vbq"&&(Xt.innerHTML=Qo),Us=s(B),Bt=a(B,"P",{"data-svelte-h":!0}),p(Bt)!=="svelte-1sr6eg8"&&(Bt.innerHTML=zo),js=s(B),X=a(B,"DIV",{class:!0});var N=w(X);g(Le.$$.fragment,N),vs=s(N),Vt=a(N,"P",{"data-svelte-h":!0}),p(Vt)!=="svelte-1pda1xk"&&(Vt.textContent=Po),Zs=s(N),g(te.$$.fragment,N),Is=s(N),xt=a(N,"P",{"data-svelte-h":!0}),p(xt)!=="svelte-16q5r5y"&&(xt.textContent=So),Gs=s(N),Wt=a(N,"UL",{"data-svelte-h":!0}),p(Wt)!=="svelte-1fuf7vw"&&(Wt.innerHTML=$o),Xs=s(N),kt=a(N,"P",{"data-svelte-h":!0}),p(kt)!=="svelte-1biq3pv"&&(kt.textContent=Ao),Bs=s(N),Ct=a(N,"UL",{"data-svelte-h":!0}),p(Ct)!=="svelte-1qrk8jb"&&(Ct.innerHTML=Do),N.forEach(l),Vs=s(B),ne=a(B,"DIV",{class:!0});var zn=w(ne);g(Re.$$.fragment,zn),xs=s(zn),Lt=a(zn,"P",{"data-svelte-h":!0}),p(Lt)!=="svelte-16q0ax1"&&(Lt.textContent=qo),zn.forEach(l),Ws=s(B),se=a(B,"DIV",{class:!0});var Pn=w(se);g(Ne.$$.fragment,Pn),ks=s(Pn),Rt=a(Pn,"P",{"data-svelte-h":!0}),p(Rt)!=="svelte-r57x2i"&&(Rt.textContent=Oo),Pn.forEach(l),Cs=s(B),H=a(B,"DIV",{class:!0});var cn=w(H);g(Ye.$$.fragment,cn),Ls=s(cn),Nt=a(cn,"P",{"data-svelte-h":!0}),p(Nt)!=="svelte-83oa8g"&&(Nt.textContent=Ko),Rs=s(cn),Yt=a(cn,"UL",{"data-svelte-h":!0}),p(Yt)!=="svelte-3my7n6"&&(Yt.innerHTML=ea),cn.forEach(l),B.forEach(l),vn=s(e),g(Fe.$$.fragment,e),Zn=s(e),C=a(e,"DIV",{class:!0});var $=w(C);g(Ee.$$.fragment,$),Ns=s($),Ft=a($,"P",{"data-svelte-h":!0}),p(Ft)!=="svelte-19ipoo4"&&(Ft.textContent=ta),Ys=s($),Et=a($,"P",{"data-svelte-h":!0}),p(Et)!=="svelte-1sr6eg8"&&(Et.innerHTML=na),Fs=s($),Q=a($,"DIV",{class:!0});var mn=w(Q);g(He.$$.fragment,mn),Es=s(mn),Ht=a(mn,"P",{"data-svelte-h":!0}),p(Ht)!=="svelte-v78lg8"&&(Ht.textContent=sa),Hs=s(mn),g(oe.$$.fragment,mn),mn.forEach(l),Qs=s($),ae=a($,"DIV",{class:!0});var Sn=w(ae);g(Qe.$$.fragment,Sn),zs=s(Sn),Qt=a(Sn,"P",{"data-svelte-h":!0}),p(Qt)!=="svelte-16q0ax1"&&(Qt.textContent=oa),Sn.forEach(l),$.forEach(l),In=s(e),g(ze.$$.fragment,e),Gn=s(e),L=a(e,"DIV",{class:!0});var A=w(L);g(Pe.$$.fragment,A),Ps=s(A),zt=a(A,"P",{"data-svelte-h":!0}),p(zt)!=="svelte-10tczlw"&&(zt.textContent=aa),Ss=s(A),Pt=a(A,"P",{"data-svelte-h":!0}),p(Pt)!=="svelte-1sr6eg8"&&(Pt.innerHTML=la),$s=s(A),z=a(A,"DIV",{class:!0});var un=w(z);g(Se.$$.fragment,un),As=s(un),St=a(un,"P",{"data-svelte-h":!0}),p(St)!=="svelte-v78lg8"&&(St.textContent=ia),Ds=s(un),g(le.$$.fragment,un),un.forEach(l),qs=s(A),ie=a(A,"DIV",{class:!0});var $n=w(ie);g($e.$$.fragment,$n),Os=s($n),$t=a($n,"P",{"data-svelte-h":!0}),p($t)!=="svelte-16q0ax1"&&($t.textContent=ra),$n.forEach(l),A.forEach(l),Xn=s(e),g(Ae.$$.fragment,e),Bn=s(e),G=a(e,"DIV",{class:!0});var Y=w(G);g(De.$$.fragment,Y),Ks=s(Y),At=a(Y,"P",{"data-svelte-h":!0}),p(At)!=="svelte-4vzu4m"&&(At.textContent=da),eo=s(Y),Dt=a(Y,"P",{"data-svelte-h":!0}),p(Dt)!=="svelte-1sr6eg8"&&(Dt.innerHTML=pa),to=s(Y),P=a(Y,"DIV",{class:!0});var hn=w(P);g(qe.$$.fragment,hn),no=s(hn),qt=a(hn,"P",{"data-svelte-h":!0}),p(qt)!=="svelte-v78lg8"&&(qt.textContent=ca),so=s(hn),g(re.$$.fragment,hn),hn.forEach(l),oo=s(Y),de=a(Y,"DIV",{class:!0});var An=w(de);g(Oe.$$.fragment,An),ao=s(An),Ot=a(An,"P",{"data-svelte-h":!0}),p(Ot)!=="svelte-9ak1um"&&(Ot.textContent=ma),An.forEach(l),lo=s(Y),pe=a(Y,"DIV",{class:!0});var Dn=w(pe);g(Ke.$$.fragment,Dn),io=s(Dn),Kt=a(Dn,"P",{"data-svelte-h":!0}),p(Kt)!=="svelte-16q0ax1"&&(Kt.textContent=ua),Dn.forEach(l),ro=s(Y),ce=a(Y,"DIV",{class:!0});var qn=w(ce);g(et.$$.fragment,qn),po=s(qn),en=a(qn,"P",{"data-svelte-h":!0}),p(en)!=="svelte-1eod455"&&(en.textContent=ha),qn.forEach(l),Y.forEach(l),Vn=s(e),g(tt.$$.fragment,e),xn=s(e),I=a(e,"DIV",{class:!0});var W=w(I);g(nt.$$.fragment,W),co=s(W),tn=a(W,"DIV",{class:!0});var Ja=w(tn);g(st.$$.fragment,Ja),Ja.forEach(l),mo=s(W),me=a(W,"DIV",{class:!0});var On=w(me);g(ot.$$.fragment,On),uo=s(On),nn=a(On,"P",{"data-svelte-h":!0}),p(nn)!=="svelte-tr32vd"&&(nn.textContent=ga),On.forEach(l),ho=s(W),ue=a(W,"DIV",{class:!0});var Kn=w(ue);g(at.$$.fragment,Kn),go=s(Kn),sn=a(Kn,"P",{"data-svelte-h":!0}),p(sn)!=="svelte-1s3c06i"&&(sn.innerHTML=Ma),Kn.forEach(l),Mo=s(W),he=a(W,"DIV",{class:!0});var es=w(he);g(lt.$$.fragment,es),fo=s(es),on=a(es,"P",{"data-svelte-h":!0}),p(on)!=="svelte-pkn4ui"&&(on.innerHTML=fa),es.forEach(l),_o=s(W),ge=a(W,"DIV",{class:!0});var ts=w(ge);g(it.$$.fragment,ts),yo=s(ts),an=a(ts,"P",{"data-svelte-h":!0}),p(an)!=="svelte-14bnrb6"&&(an.textContent=_a),ts.forEach(l),To=s(W),Me=a(W,"DIV",{class:!0});var ns=w(Me);g(rt.$$.fragment,ns),wo=s(ns),ln=a(ns,"P",{"data-svelte-h":!0}),p(ln)!=="svelte-1xwrf7t"&&(ln.textContent=ya),ns.forEach(l),bo=s(W),S=a(W,"DIV",{class:!0});var gn=w(S);g(dt.$$.fragment,gn),Jo=s(gn),rn=a(gn,"P",{"data-svelte-h":!0}),p(rn)!=="svelte-1p9wfz7"&&(rn.textContent=Ta),Uo=s(gn),dn=a(gn,"P",{"data-svelte-h":!0}),p(dn)!=="svelte-7cxa61"&&(dn.innerHTML=wa),gn.forEach(l),W.forEach(l),Wn=s(e),g(pt.$$.fragment,e),kn=s(e),q=a(e,"DIV",{class:!0});var ss=w(q);g(ct.$$.fragment,ss),jo=s(ss),pn=a(ss,"P",{"data-svelte-h":!0}),p(pn)!=="svelte-ia4jjd"&&(pn.textContent=ba),ss.forEach(l),Cn=s(e),g(mt.$$.fragment,e),Ln=s(e),fn=a(e,"P",{}),w(fn).forEach(l),this.h()},h(){J(r,"name","hf:doc:metadata"),J(r,"content",Fa),Xa(m,"float","right"),J(K,"class","tip"),J(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(q,"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,d){t(document.head,r),u(e,U,d),u(e,T,d),u(e,c,d),u(e,m,d),u(e,b,d),M(k,e,d),u(e,v,d),u(e,F,d),u(e,_n,d),u(e,_e,d),u(e,yn,d),u(e,K,d),u(e,Tn,d),u(e,ye,d),u(e,wn,d),M(ee,e,d),u(e,bn,d),M(Te,e,d),u(e,Jn,d),u(e,x,d),t(x,Mt),t(x,as),t(x,we),t(we,ft),t(we,ls),t(we,be),t(be,_t),t(be,is),M(Je,be,null),t(x,rs),t(x,D),t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(e,G,d),M(De,G,null),t(G,Ks),t(G,At),t(G,eo),t(G,Dt),t(G,to),t(G,P),M(qe,P,null),t(P,no),t(P,qt),t(P,so),M(re,P,null),t(G,oo),t(G,de),M(Oe,de,null),t(de,ao),t(de,Ot),t(G,lo),t(G,pe),M(Ke,pe,null),t(pe,io),t(pe,Kt),t(G,ro),t(G,ce),M(et,ce,null),t(ce,po),t(ce,en),u(e,Vn,d),M(tt,e,d),u(e,xn,d),u(e,I,d),M(nt,I,null),t(I,co),t(I,tn),M(st,tn,null),t(I,mo),t(I,me),M(ot,me,null),t(me,uo),t(me,nn),t(I,ho),t(I,ue),M(at,ue,null),t(ue,go),t(ue,sn),t(I,Mo),t(I,he),M(lt,he,null),t(he,fo),t(he,on),t(I,_o),t(I,ge),M(it,ge,null),t(ge,yo),t(ge,an),t(I,To),t(I,Me),M(rt,Me,null),t(Me,wo),t(Me,ln),t(I,bo),t(I,S),M(dt,S,null),t(S,Jo),t(S,rn),t(S,Uo),t(S,dn),u(e,Wn,d),M(pt,e,d),u(e,kn,d),u(e,q,d),M(ct,q,null),t(q,jo),t(q,pn),u(e,Cn,d),M(mt,e,d),u(e,Ln,d),u(e,fn,d),Rn=!0},p(e,[d]){const R={};d&2&&(R.$$scope={dirty:d,ctx:e}),ee.$set(R);const ut={};d&2&&(ut.$$scope={dirty:d,ctx:e}),te.$set(ut);const ht={};d&2&&(ht.$$scope={dirty:d,ctx:e}),oe.$set(ht);const O={};d&2&&(O.$$scope={dirty:d,ctx:e}),le.$set(O);const gt={};d&2&&(gt.$$scope={dirty:d,ctx:e}),re.$set(gt)},i(e){Rn||(f(k.$$.fragment,e),f(ee.$$.fragment,e),f(Te.$$.fragment,e),f(Je.$$.fragment,e),f(je.$$.fragment,e),f(Ie.$$.fragment,e),f(Be.$$.fragment,e),f(We.$$.fragment,e),f(ke.$$.fragment,e),f(Ce.$$.fragment,e),f(Le.$$.fragment,e),f(te.$$.fragment,e),f(Re.$$.fragment,e),f(Ne.$$.fragment,e),f(Ye.$$.fragment,e),f(Fe.$$.fragment,e),f(Ee.$$.fragment,e),f(He.$$.fragment,e),f(oe.$$.fragment,e),f(Qe.$$.fragment,e),f(ze.$$.fragment,e),f(Pe.$$.fragment,e),f(Se.$$.fragment,e),f(le.$$.fragment,e),f($e.$$.fragment,e),f(Ae.$$.fragment,e),f(De.$$.fragment,e),f(qe.$$.fragment,e),f(re.$$.fragment,e),f(Oe.$$.fragment,e),f(Ke.$$.fragment,e),f(et.$$.fragment,e),f(tt.$$.fragment,e),f(nt.$$.fragment,e),f(st.$$.fragment,e),f(ot.$$.fragment,e),f(at.$$.fragment,e),f(lt.$$.fragment,e),f(it.$$.fragment,e),f(rt.$$.fragment,e),f(dt.$$.fragment,e),f(pt.$$.fragment,e),f(ct.$$.fragment,e),f(mt.$$.fragment,e),Rn=!0)},o(e){_(k.$$.fragment,e),_(ee.$$.fragment,e),_(Te.$$.fragment,e),_(Je.$$.fragment,e),_(je.$$.fragment,e),_(Ie.$$.fragment,e),_(Be.$$.fragment,e),_(We.$$.fragment,e),_(ke.$$.fragment,e),_(Ce.$$.fragment,e),_(Le.$$.fragment,e),_(te.$$.fragment,e),_(Re.$$.fragment,e),_(Ne.$$.fragment,e),_(Ye.$$.fragment,e),_(Fe.$$.fragment,e),_(Ee.$$.fragment,e),_(He.$$.fragment,e),_(oe.$$.fragment,e),_(Qe.$$.fragment,e),_(ze.$$.fragment,e),_(Pe.$$.fragment,e),_(Se.$$.fragment,e),_(le.$$.fragment,e),_($e.$$.fragment,e),_(Ae.$$.fragment,e),_(De.$$.fragment,e),_(qe.$$.fragment,e),_(re.$$.fragment,e),_(Oe.$$.fragment,e),_(Ke.$$.fragment,e),_(et.$$.fragment,e),_(tt.$$.fragment,e),_(nt.$$.fragment,e),_(st.$$.fragment,e),_(ot.$$.fragment,e),_(at.$$.fragment,e),_(lt.$$.fragment,e),_(it.$$.fragment,e),_(rt.$$.fragment,e),_(dt.$$.fragment,e),_(pt.$$.fragment,e),_(ct.$$.fragment,e),_(mt.$$.fragment,e),Rn=!1},d(e){e&&(l(U),l(T),l(c),l(m),l(b),l(v),l(F),l(_n),l(_e),l(yn),l(K),l(Tn),l(ye),l(wn),l(bn),l(Jn),l(x),l(Un),l(jn),l(Z),l(vn),l(Zn),l(C),l(In),l(Gn),l(L),l(Xn),l(Bn),l(G),l(Vn),l(xn),l(I),l(Wn),l(kn),l(q),l(Cn),l(Ln),l(fn)),l(r),y(k,e),y(ee,e),y(Te,e),y(Je),y(je),y(Ie),y(Be),y(We),y(ke,e),y(Ce),y(Le),y(te),y(Re),y(Ne),y(Ye),y(Fe,e),y(Ee),y(He),y(oe),y(Qe),y(ze,e),y(Pe),y(Se),y(le),y($e),y(Ae,e),y(De),y(qe),y(re),y(Oe),y(Ke),y(et),y(tt,e),y(nt),y(st),y(ot),y(at),y(lt),y(it),y(rt),y(dt),y(pt,e),y(ct),y(mt,e)}}}const Fa='{"title":"LTX-Video","local":"ltx-video","sections":[{"title":"Notes","local":"notes","sections":[],"depth":2},{"title":"LTXI2VLongMultiPromptPipeline","local":"diffusers.LTXI2VLongMultiPromptPipeline","sections":[],"depth":2},{"title":"LTXPipeline","local":"diffusers.LTXPipeline","sections":[],"depth":2},{"title":"LTXImageToVideoPipeline","local":"diffusers.LTXImageToVideoPipeline","sections":[],"depth":2},{"title":"LTXConditionPipeline","local":"diffusers.LTXConditionPipeline","sections":[],"depth":2},{"title":"LTXLatentUpsamplePipeline","local":"diffusers.LTXLatentUpsamplePipeline","sections":[],"depth":2},{"title":"LTXPipelineOutput","local":"diffusers.pipelines.ltx.pipeline_output.LTXPipelineOutput","sections":[],"depth":2}],"depth":1}';function Ea(V){return va(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Da extends Za{constructor(r){super(),Ia(this,r,Ea,Ya,ja,{})}}export{Da as component};

Xet Storage Details

Size:
198 kB
·
Xet hash:
5da3e359059abb9dd7c15ebe83fc921b91f0b37dd714ac3b39c22a47a5643f55

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