import{s as Re,o as Oe,n as qe}from"../chunks/scheduler.8c3d61f6.js";import{S as Ye,i as Ke,g as r,s as i,r as h,A as en,h as l,f as n,c as a,j as H,u as g,x as w,k as P,y as o,a as d,v as _,d as y,t as b,w as v}from"../chunks/index.da70eac4.js";import{T as nn}from"../chunks/Tip.1d9b8c37.js";import{D as q}from"../chunks/Docstring.6b390b9a.js";import{C as tn}from"../chunks/CodeBlock.00a903b3.js";import{E as on}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as Ee,E as an}from"../chunks/EditOnGithub.1e64e623.js";function sn(R){let s,M='Make sure to check out the Schedulers <a href="../../using-diffusers/schedulers.md">guide</a> to learn how to explore the tradeoff between scheduler speed and quality, and see the <a href="../../using-diffusers/loading.md#reuse-a-pipeline">reuse components across pipelines</a> section to learn how to efficiently load the same components into multiple pipelines.';return{c(){s=r("p"),s.innerHTML=M},l(m){s=l(m,"P",{"data-svelte-h":!0}),w(s)!=="svelte-w7r39y"&&(s.innerHTML=M)},m(m,f){d(m,s,f)},p:qe,d(m){m&&n(s)}}}function rn(R){let s,M="Examples:",m,f,$;return f=new tn({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwSHVueXVhblZpZGVvUGlwZWxpbmUlMkMlMjBIdW55dWFuVmlkZW9UcmFuc2Zvcm1lcjNETW9kZWwlMEFmcm9tJTIwZGlmZnVzZXJzLnV0aWxzJTIwaW1wb3J0JTIwZXhwb3J0X3RvX3ZpZGVvJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJ0ZW5jZW50JTJGSHVueXVhblZpZGVvJTIyJTBBdHJhbnNmb3JtZXIlMjAlM0QlMjBIdW55dWFuVmlkZW9UcmFuc2Zvcm1lcjNETW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lkJTJDJTIwc3ViZm9sZGVyJTNEJTIydHJhbnNmb3JtZXIlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmJmbG9hdDE2JTBBKSUwQXBpcGUlMjAlM0QlMjBIdW55dWFuVmlkZW9QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQlMkMlMjB0cmFuc2Zvcm1lciUzRHRyYW5zZm9ybWVyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUudmFlLmVuYWJsZV90aWxpbmcoKSUwQXBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFvdXRwdXQlMjAlM0QlMjBwaXBlKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRCUyMkElMjBjYXQlMjB3YWxrcyUyMG9uJTIwdGhlJTIwZ3Jhc3MlMkMlMjByZWFsaXN0aWMlMjIlMkMlMEElMjAlMjAlMjAlMjBoZWlnaHQlM0QzMjAlMkMlMEElMjAlMjAlMjAlMjB3aWR0aCUzRDUxMiUyQyUwQSUyMCUyMCUyMCUyMG51bV9mcmFtZXMlM0Q2MSUyQyUwQSUyMCUyMCUyMCUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QzMCUyQyUwQSkuZnJhbWVzJTVCMCU1RCUwQWV4cG9ydF90b192aWRlbyhvdXRwdXQlMkMlMjAlMjJvdXRwdXQubXA0JTIyJTJDJTIwZnBzJTNEMTUp",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> HunyuanVideoPipeline, HunyuanVideoTransformer3DModel
<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>model_id = <span class="hljs-string">&quot;tencent/HunyuanVideo&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>transformer = HunyuanVideoTransformer3DModel.from_pretrained(
<span class="hljs-meta">... </span>    model_id, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = HunyuanVideoPipeline.from_pretrained(model_id, transformer=transformer, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.vae.enable_tiling()
<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>output = pipe(
<span class="hljs-meta">... </span>    prompt=<span class="hljs-string">&quot;A cat walks on the grass, realistic&quot;</span>,
<span class="hljs-meta">... </span>    height=<span class="hljs-number">320</span>,
<span class="hljs-meta">... </span>    width=<span class="hljs-number">512</span>,
<span class="hljs-meta">... </span>    num_frames=<span class="hljs-number">61</span>,
<span class="hljs-meta">... </span>    num_inference_steps=<span class="hljs-number">30</span>,
<span class="hljs-meta">... </span>).frames[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>export_to_video(output, <span class="hljs-string">&quot;output.mp4&quot;</span>, fps=<span class="hljs-number">15</span>)`,wrap:!1}}),{c(){s=r("p"),s.textContent=M,m=i(),h(f.$$.fragment)},l(p){s=l(p,"P",{"data-svelte-h":!0}),w(s)!=="svelte-kvfsh7"&&(s.textContent=M),m=a(p),g(f.$$.fragment,p)},m(p,x){d(p,s,x),d(p,m,x),_(f,p,x),$=!0},p:qe,i(p){$||(y(f.$$.fragment,p),$=!0)},o(p){b(f.$$.fragment,p),$=!1},d(p){p&&(n(s),n(m)),v(f,p)}}}function ln(R){let s,M,m,f,$,p,x,Ze='<a href="https://www.arxiv.org/abs/2412.03603" rel="nofollow">HunyuanVideo</a> by Tencent.',se,E,We='<em>Recent advancements in video generation have significantly impacted daily life for both individuals and industries. However, the leading video generation models remain closed-source, resulting in a notable performance gap between industry capabilities and those available to the public. In this report, we introduce HunyuanVideo, an innovative open-source video foundation model that demonstrates performance in video generation comparable to, or even surpassing, that of leading closed-source models. HunyuanVideo encompasses a comprehensive framework that integrates several key elements, including data curation, advanced architectural design, progressive model scaling and training, and an efficient infrastructure tailored for large-scale model training and inference. As a result, we successfully trained a video generative model with over 13 billion parameters, making it the largest among all open-source models. We conducted extensive experiments and implemented a series of targeted designs to ensure high visual quality, motion dynamics, text-video alignment, and advanced filming techniques. According to evaluations by professionals, HunyuanVideo outperforms previous state-of-the-art models, including Runway Gen-3, Luma 1.6, and three top-performing Chinese video generative models. By releasing the code for the foundation model and its applications, we aim to bridge the gap between closed-source and open-source communities. This initiative will empower individuals within the community to experiment with their ideas, fostering a more dynamic and vibrant video generation ecosystem. The code is publicly available at <a href="https://github.com/Tencent/HunyuanVideo" rel="nofollow">this https URL</a>.</em>',re,C,le,Z,De="Recommendations for inference:",de,W,Ge='<li>Both text encoders should be in <code>torch.float16</code>.</li> <li>Transformer should be in <code>torch.bfloat16</code>.</li> <li>VAE should be in <code>torch.float16</code>.</li> <li><code>num_frames</code> should be of the form <code>4 * k + 1</code>, for example <code>49</code> or <code>129</code>.</li> <li>For smaller resolution images, try lower values of <code>shift</code> (between <code>2.0</code> to <code>5.0</code>) in the <a href="https://huggingface.co/docs/diffusers/main/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler.shift" rel="nofollow">Scheduler</a>. For larger resolution images, try higher values (between <code>7.0</code> and <code>12.0</code>). The default value is <code>7.0</code> for HunyuanVideo.</li> <li>For more information about supported resolutions and other details, please refer to the original repository <a href="https://github.com/Tencent/HunyuanVideo/" rel="nofollow">here</a>.</li>',ce,D,pe,c,G,$e,O,ze="Pipeline for text-to-video generation using HunyuanVideo.",xe,Y,Ae=`This model inherits from <a href="/docs/diffusers/pr_10140/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,Me,V,z,Ve,K,Be="The call function to the pipeline for generation.",Te,j,ke,L,A,He,ee,Qe=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Pe,I,B,Ce,ne,Xe=`Disable tiled VAE decoding. If <code>enable_vae_tiling</code> was previously enabled, this method will go back to
computing decoding in one step.`,je,U,Q,Le,te,Fe=`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.`,Ie,J,X,Ue,oe,Ne=`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.`,ue,F,me,T,N,Je,ie,Se="Output class for HunyuanVideo pipelines.",fe,S,he,ae,ge;return $=new Ee({props:{title:"HunyuanVideo",local:"hunyuanvideo",headingTag:"h1"}}),C=new nn({props:{$$slots:{default:[sn]},$$scope:{ctx:R}}}),D=new Ee({props:{title:"HunyuanVideoPipeline",local:"diffusers.HunyuanVideoPipeline",headingTag:"h2"}}),G=new q({props:{name:"class diffusers.HunyuanVideoPipeline",anchor:"diffusers.HunyuanVideoPipeline",parameters:[{name:"text_encoder",val:": LlamaModel"},{name:"tokenizer",val:": LlamaTokenizerFast"},{name:"transformer",val:": HunyuanVideoTransformer3DModel"},{name:"vae",val:": AutoencoderKLHunyuanVideo"},{name:"scheduler",val:": FlowMatchEulerDiscreteScheduler"},{name:"text_encoder_2",val:": CLIPTextModel"},{name:"tokenizer_2",val:": CLIPTokenizer"}],parametersDescription:[{anchor:"diffusers.HunyuanVideoPipeline.text_encoder",description:`<strong>text_encoder</strong> (<code>LlamaModel</code>) &#x2014;
<a href="https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-transformers" rel="nofollow">Llava Llama3-8B</a>.`,name:"text_encoder"},{anchor:"diffusers.HunyuanVideoPipeline.tokenizer_2",description:`<strong>tokenizer_2</strong> (<code>LlamaTokenizer</code>) &#x2014;
Tokenizer from <a href="https://huggingface.co/xtuner/llava-llama-3-8b-v1_1-transformers" rel="nofollow">Llava Llama3-8B</a>.`,name:"tokenizer_2"},{anchor:"diffusers.HunyuanVideoPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/pr_10140/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>) &#x2014;
Conditional Transformer to denoise the encoded image latents.`,name:"transformer"},{anchor:"diffusers.HunyuanVideoPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/pr_10140/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.HunyuanVideoPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/pr_10140/en/api/models/autoencoder_kl_hunyuan_video#diffusers.AutoencoderKLHunyuanVideo">AutoencoderKLHunyuanVideo</a>) &#x2014;
Variational Auto-Encoder (VAE) Model to encode and decode videos to and from latent representations.`,name:"vae"},{anchor:"diffusers.HunyuanVideoPipeline.text_encoder_2",description:`<strong>text_encoder_2</strong> (<code>CLIPTextModel</code>) &#x2014;
<a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow">CLIP</a>, specifically
the <a href="https://huggingface.co/openai/clip-vit-large-patch14" rel="nofollow">clip-vit-large-patch14</a> variant.`,name:"text_encoder_2"},{anchor:"diffusers.HunyuanVideoPipeline.tokenizer_2",description:`<strong>tokenizer_2</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_2"}],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L135"}}),z=new q({props:{name:"__call__",anchor:"diffusers.HunyuanVideoPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"prompt_2",val:": typing.Union[str, typing.List[str]] = None"},{name:"height",val:": int = 720"},{name:"width",val:": int = 1280"},{name:"num_frames",val:": int = 129"},{name:"num_inference_steps",val:": int = 50"},{name:"sigmas",val:": typing.List[float] = None"},{name:"guidance_scale",val:": float = 6.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:"pooled_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_type",val:": typing.Optional[str] = 'pil'"},{name:"return_dict",val:": bool = True"},{name:"callback_on_step_end",val:": typing.Union[typing.Callable[[int, int, typing.Dict], NoneType], diffusers.callbacks.PipelineCallback, diffusers.callbacks.MultiPipelineCallbacks, NoneType] = None"},{name:"callback_on_step_end_tensor_inputs",val:": typing.List[str] = ['latents']"},{name:"prompt_template",val:": typing.Dict[str, typing.Any] = {'template': '<|start_header_id|>system<|end_header_id|>\\n\\nDescribe the video by detailing the following aspects: 1. The main content and theme of the video.2. The color, shape, size, texture, quantity, text, and spatial relationships of the objects.3. Actions, events, behaviors temporal relationships, physical movement changes of the objects.4. background environment, light, style and atmosphere.5. camera angles, movements, and transitions used in the video:<|eot_id|><|start_header_id|>user<|end_header_id|>\\n\\n{}<|eot_id|>', 'crop_start': 95}"},{name:"max_sequence_length",val:": int = 256"}],parametersDescription:[{anchor:"diffusers.HunyuanVideoPipeline.__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.HunyuanVideoPipeline.__call__.prompt_2",description:`<strong>prompt_2</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to be sent to <code>tokenizer_2</code> and <code>text_encoder_2</code>. If not defined, <code>prompt</code> is
will be used instead.`,name:"prompt_2"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.height",description:`<strong>height</strong> (<code>int</code>, defaults to <code>720</code>) &#x2014;
The height in pixels of the generated image.`,name:"height"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.width",description:`<strong>width</strong> (<code>int</code>, defaults to <code>1280</code>) &#x2014;
The width in pixels of the generated image.`,name:"width"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, defaults to <code>129</code>) &#x2014;
The number of frames in the generated video.`,name:"num_frames"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, defaults to <code>50</code>) &#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.HunyuanVideoPipeline.__call__.sigmas",description:`<strong>sigmas</strong> (<code>List[float]</code>, <em>optional</em>) &#x2014;
Custom sigmas to use for the denoising process with schedulers which support a <code>sigmas</code> argument in
their <code>set_timesteps</code> method. If not defined, the default behavior when <code>num_inference_steps</code> is passed
will be used.`,name:"sigmas"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, defaults to <code>6.0</code>) &#x2014;
Guidance scale as defined in <a href="https://arxiv.org/abs/2207.12598" rel="nofollow">Classifier-Free Diffusion Guidance</a>.
<code>guidance_scale</code> is defined as <code>w</code> of equation 2. of <a href="https://arxiv.org/pdf/2205.11487.pdf" rel="nofollow">Imagen
Paper</a>. Guidance scale is enabled by setting <code>guidance_scale &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. Note that the only available HunyuanVideo model is
CFG-distilled, which means that traditional guidance between unconditional and conditional latent is
not applied.`,name:"guidance_scale"},{anchor:"diffusers.HunyuanVideoPipeline.__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 images to generate per prompt.`,name:"num_videos_per_prompt"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.HunyuanVideoPipeline.__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 is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.HunyuanVideoPipeline.__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 (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pil&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>PIL.Image</code> or <code>np.array</code>.`,name:"output_type"},{anchor:"diffusers.HunyuanVideoPipeline.__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>HunyuanVideoPipelineOutput</code> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.clip_skip",description:`<strong>clip_skip</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of layers to be skipped from CLIP while computing the prompt embeddings. A value of 1 means that
the output of the pre-final layer will be used for computing the prompt embeddings.`,name:"clip_skip"},{anchor:"diffusers.HunyuanVideoPipeline.__call__.callback_on_step_end",description:`<strong>callback_on_step_end</strong> (<code>Callable</code>, <code>PipelineCallback</code>, <code>MultiPipelineCallbacks</code>, <em>optional</em>) &#x2014;
A function or a subclass of <code>PipelineCallback</code> or <code>MultiPipelineCallbacks</code> that is called at the end of
each denoising step during the inference. 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.HunyuanVideoPipeline.__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"}],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L454",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <code>HunyuanVideoPipelineOutput</code> is returned, otherwise a <code>tuple</code> is returned
where the first element is a list with the generated images and the second element is a list of <code>bool</code>s
indicating whether the corresponding generated image contains “not-safe-for-work” (nsfw) content.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~HunyuanVideoPipelineOutput</code> or <code>tuple</code></p>
`}}),j=new on({props:{anchor:"diffusers.HunyuanVideoPipeline.__call__.example",$$slots:{default:[rn]},$$scope:{ctx:R}}}),A=new q({props:{name:"disable_vae_slicing",anchor:"diffusers.HunyuanVideoPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L420"}}),B=new q({props:{name:"disable_vae_tiling",anchor:"diffusers.HunyuanVideoPipeline.disable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L435"}}),Q=new q({props:{name:"enable_vae_slicing",anchor:"diffusers.HunyuanVideoPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L413"}}),X=new q({props:{name:"enable_vae_tiling",anchor:"diffusers.HunyuanVideoPipeline.enable_vae_tiling",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10140/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py#L427"}}),F=new Ee({props:{title:"HunyuanVideoPipelineOutput",local:"diffusers.pipelines.hunyuan_video.pipeline_output.HunyuanVideoPipelineOutput",headingTag:"h2"}}),N=new q({props:{name:"class diffusers.pipelines.hunyuan_video.pipeline_output.HunyuanVideoPipelineOutput",anchor:"diffusers.pipelines.hunyuan_video.pipeline_output.HunyuanVideoPipelineOutput",parameters:[{name:"frames",val:": Tensor"}],parametersDescription:[{anchor:"diffusers.pipelines.hunyuan_video.pipeline_output.HunyuanVideoPipelineOutput.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_10140/src/diffusers/pipelines/hunyuan_video/pipeline_output.py#L8"}}),S=new an({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/hunyuan_video.md"}}),{c(){s=r("meta"),M=i(),m=r("p"),f=i(),h($.$$.fragment),p=i(),x=r("p"),x.innerHTML=Ze,se=i(),E=r("p"),E.innerHTML=We,re=i(),h(C.$$.fragment),le=i(),Z=r("p"),Z.textContent=De,de=i(),W=r("ul"),W.innerHTML=Ge,ce=i(),h(D.$$.fragment),pe=i(),c=r("div"),h(G.$$.fragment),$e=i(),O=r("p"),O.textContent=ze,xe=i(),Y=r("p"),Y.innerHTML=Ae,Me=i(),V=r("div"),h(z.$$.fragment),Ve=i(),K=r("p"),K.textContent=Be,Te=i(),h(j.$$.fragment),ke=i(),L=r("div"),h(A.$$.fragment),He=i(),ee=r("p"),ee.innerHTML=Qe,Pe=i(),I=r("div"),h(B.$$.fragment),Ce=i(),ne=r("p"),ne.innerHTML=Xe,je=i(),U=r("div"),h(Q.$$.fragment),Le=i(),te=r("p"),te.textContent=Fe,Ie=i(),J=r("div"),h(X.$$.fragment),Ue=i(),oe=r("p"),oe.textContent=Ne,ue=i(),h(F.$$.fragment),me=i(),T=r("div"),h(N.$$.fragment),Je=i(),ie=r("p"),ie.textContent=Se,fe=i(),h(S.$$.fragment),he=i(),ae=r("p"),this.h()},l(e){const t=en("svelte-u9bgzb",document.head);s=l(t,"META",{name:!0,content:!0}),t.forEach(n),M=a(e),m=l(e,"P",{}),H(m).forEach(n),f=a(e),g($.$$.fragment,e),p=a(e),x=l(e,"P",{"data-svelte-h":!0}),w(x)!=="svelte-r39nnx"&&(x.innerHTML=Ze),se=a(e),E=l(e,"P",{"data-svelte-h":!0}),w(E)!=="svelte-u48b53"&&(E.innerHTML=We),re=a(e),g(C.$$.fragment,e),le=a(e),Z=l(e,"P",{"data-svelte-h":!0}),w(Z)!=="svelte-1bbhycm"&&(Z.textContent=De),de=a(e),W=l(e,"UL",{"data-svelte-h":!0}),w(W)!=="svelte-d4070k"&&(W.innerHTML=Ge),ce=a(e),g(D.$$.fragment,e),pe=a(e),c=l(e,"DIV",{class:!0});var u=H(c);g(G.$$.fragment,u),$e=a(u),O=l(u,"P",{"data-svelte-h":!0}),w(O)!=="svelte-1a4x0ff"&&(O.textContent=ze),xe=a(u),Y=l(u,"P",{"data-svelte-h":!0}),w(Y)!=="svelte-hbxo6c"&&(Y.innerHTML=Ae),Me=a(u),V=l(u,"DIV",{class:!0});var k=H(V);g(z.$$.fragment,k),Ve=a(k),K=l(k,"P",{"data-svelte-h":!0}),w(K)!=="svelte-50j04k"&&(K.textContent=Be),Te=a(k),g(j.$$.fragment,k),k.forEach(n),ke=a(u),L=l(u,"DIV",{class:!0});var _e=H(L);g(A.$$.fragment,_e),He=a(_e),ee=l(_e,"P",{"data-svelte-h":!0}),w(ee)!=="svelte-1s3c06i"&&(ee.innerHTML=Qe),_e.forEach(n),Pe=a(u),I=l(u,"DIV",{class:!0});var ye=H(I);g(B.$$.fragment,ye),Ce=a(ye),ne=l(ye,"P",{"data-svelte-h":!0}),w(ne)!=="svelte-pkn4ui"&&(ne.innerHTML=Xe),ye.forEach(n),je=a(u),U=l(u,"DIV",{class:!0});var be=H(U);g(Q.$$.fragment,be),Le=a(be),te=l(be,"P",{"data-svelte-h":!0}),w(te)!=="svelte-14bnrb6"&&(te.textContent=Fe),be.forEach(n),Ie=a(u),J=l(u,"DIV",{class:!0});var ve=H(J);g(X.$$.fragment,ve),Ue=a(ve),oe=l(ve,"P",{"data-svelte-h":!0}),w(oe)!=="svelte-1xwrf7t"&&(oe.textContent=Ne),ve.forEach(n),u.forEach(n),ue=a(e),g(F.$$.fragment,e),me=a(e),T=l(e,"DIV",{class:!0});var we=H(T);g(N.$$.fragment,we),Je=a(we),ie=l(we,"P",{"data-svelte-h":!0}),w(ie)!=="svelte-i6xdzu"&&(ie.textContent=Se),we.forEach(n),fe=a(e),g(S.$$.fragment,e),he=a(e),ae=l(e,"P",{}),H(ae).forEach(n),this.h()},h(){P(s,"name","hf:doc:metadata"),P(s,"content",dn),P(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),P(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){o(document.head,s),d(e,M,t),d(e,m,t),d(e,f,t),_($,e,t),d(e,p,t),d(e,x,t),d(e,se,t),d(e,E,t),d(e,re,t),_(C,e,t),d(e,le,t),d(e,Z,t),d(e,de,t),d(e,W,t),d(e,ce,t),_(D,e,t),d(e,pe,t),d(e,c,t),_(G,c,null),o(c,$e),o(c,O),o(c,xe),o(c,Y),o(c,Me),o(c,V),_(z,V,null),o(V,Ve),o(V,K),o(V,Te),_(j,V,null),o(c,ke),o(c,L),_(A,L,null),o(L,He),o(L,ee),o(c,Pe),o(c,I),_(B,I,null),o(I,Ce),o(I,ne),o(c,je),o(c,U),_(Q,U,null),o(U,Le),o(U,te),o(c,Ie),o(c,J),_(X,J,null),o(J,Ue),o(J,oe),d(e,ue,t),_(F,e,t),d(e,me,t),d(e,T,t),_(N,T,null),o(T,Je),o(T,ie),d(e,fe,t),_(S,e,t),d(e,he,t),d(e,ae,t),ge=!0},p(e,[t]){const u={};t&2&&(u.$$scope={dirty:t,ctx:e}),C.$set(u);const k={};t&2&&(k.$$scope={dirty:t,ctx:e}),j.$set(k)},i(e){ge||(y($.$$.fragment,e),y(C.$$.fragment,e),y(D.$$.fragment,e),y(G.$$.fragment,e),y(z.$$.fragment,e),y(j.$$.fragment,e),y(A.$$.fragment,e),y(B.$$.fragment,e),y(Q.$$.fragment,e),y(X.$$.fragment,e),y(F.$$.fragment,e),y(N.$$.fragment,e),y(S.$$.fragment,e),ge=!0)},o(e){b($.$$.fragment,e),b(C.$$.fragment,e),b(D.$$.fragment,e),b(G.$$.fragment,e),b(z.$$.fragment,e),b(j.$$.fragment,e),b(A.$$.fragment,e),b(B.$$.fragment,e),b(Q.$$.fragment,e),b(X.$$.fragment,e),b(F.$$.fragment,e),b(N.$$.fragment,e),b(S.$$.fragment,e),ge=!1},d(e){e&&(n(M),n(m),n(f),n(p),n(x),n(se),n(E),n(re),n(le),n(Z),n(de),n(W),n(ce),n(pe),n(c),n(ue),n(me),n(T),n(fe),n(he),n(ae)),n(s),v($,e),v(C,e),v(D,e),v(G),v(z),v(j),v(A),v(B),v(Q),v(X),v(F,e),v(N),v(S,e)}}}const dn='{"title":"HunyuanVideo","local":"hunyuanvideo","sections":[{"title":"HunyuanVideoPipeline","local":"diffusers.HunyuanVideoPipeline","sections":[],"depth":2},{"title":"HunyuanVideoPipelineOutput","local":"diffusers.pipelines.hunyuan_video.pipeline_output.HunyuanVideoPipelineOutput","sections":[],"depth":2}],"depth":1}';function cn(R){return Oe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yn extends Ye{constructor(s){super(),Ke(this,s,cn,ln,Re,{})}}export{yn as component};
