ComfyUI > Nodes > ComfyUI-TeaCacheHunyuanVideo > TeaCache HunyuanVideo Sampler

ComfyUI Node: TeaCache HunyuanVideo Sampler

Class Name

TeaCacheHunyuanVideoSampler_FOK

Category
sampling/custom_sampling
Author
facok (Account age: 780days)
Extension
ComfyUI-TeaCacheHunyuanVideo
Latest Updated
2025-04-05
Github Stars
0.09K

How to Install ComfyUI-TeaCacheHunyuanVideo

Install this extension via the ComfyUI Manager by searching for ComfyUI-TeaCacheHunyuanVideo
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-TeaCacheHunyuanVideo in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

TeaCache HunyuanVideo Sampler Description

Specialized node optimizing video sampling with TeaCache for efficient processing in ComfyUI, balancing speed and quality.

TeaCache HunyuanVideo Sampler:

The TeaCacheHunyuanVideoSampler_FOK is a specialized node designed to enhance video sampling processes by leveraging the TeaCache mechanism. This node is part of the ComfyUI framework and is tailored to optimize the efficiency and speed of video sampling tasks. It achieves this by implementing a caching strategy that reduces redundant computations, thereby accelerating the sampling process. The node is particularly beneficial for AI artists and developers who require high-performance video processing capabilities. By utilizing a threshold-based approach, it allows users to balance between speed and quality, making it adaptable to various project needs. The primary goal of this node is to provide a seamless and efficient video sampling experience, ensuring that users can achieve high-quality results with reduced computational overhead.

TeaCache HunyuanVideo Sampler Input Parameters:

noise

The noise parameter is responsible for generating the initial noise input required for the sampling process. It plays a crucial role in determining the randomness and variability of the generated video samples. This parameter does not have specific minimum or maximum values, as it is typically generated dynamically based on the requirements of the sampling task.

guider

The guider parameter refers to the guiding model or mechanism that directs the sampling process. It influences the trajectory and outcome of the sampling by providing necessary guidance and adjustments. The effectiveness of the sampling process heavily relies on the quality and configuration of the guider.

sampler

The sampler parameter specifies the sampling method or algorithm to be used. It determines how the noise and guidance are combined to produce the final video samples. Different samplers can yield varying results, and users can choose one based on their specific needs and preferences.

sigmas

The sigmas parameter represents a series of values that control the noise levels at different stages of the sampling process. These values are crucial for modulating the noise and ensuring a smooth transition between different sampling steps. The length of the sigmas array directly impacts the number of steps in the sampling process.

latent_image

The latent_image parameter is the initial latent representation of the video that will be refined and processed during the sampling. It serves as the starting point for the sampling process and is iteratively updated to produce the final output.

speedup

The speedup parameter allows users to select the desired speed of the sampling process. It offers options such as "Original (1x)", "Fast (1.6x)", and "Faster (2.1x)", each corresponding to a different threshold value. This parameter enables users to prioritize either speed or quality based on their project requirements.

TeaCache HunyuanVideo Sampler Output Parameters:

samples

The samples output parameter contains the final video samples generated by the node. These samples are the result of the entire sampling process, incorporating the initial noise, guidance, and latent image. They represent the completed video frames ready for further use or analysis.

out_denoised

The out_denoised output parameter provides a denoised version of the video samples, if applicable. This output is particularly useful for users who require cleaner and more refined video outputs. It is generated by processing the latent output through the model patcher, ensuring high-quality results.

TeaCache HunyuanVideo Sampler Usage Tips:

  • To achieve faster sampling results, consider using the "Fast (1.6x)" or "Faster (2.1x)" options in the speedup parameter, but be mindful of potential trade-offs in quality.
  • Ensure that the guider parameter is properly configured to match the specific requirements of your video sampling task, as it significantly influences the final output.
  • Experiment with different sampler methods to find the one that best suits your project's needs, as different methods can produce varying results.

TeaCache HunyuanVideo Sampler Common Errors and Solutions:

Error: "AttributeError: 'transformer' object has no attribute 'original_forward'"

  • Explanation: This error occurs when the original forward function of the transformer is not properly saved or restored during the sampling process.
  • Solution: Ensure that the original forward function is correctly saved before replacing it with the TeaCache forward function, and restore it after the sampling process is complete.

Error: "KeyError: 'noise_mask'"

  • Explanation: This error indicates that the noise_mask key is missing from the latent input, which is expected during the sampling process.
  • Solution: Verify that the latent input contains a noise_mask key, or modify the code to handle cases where the noise_mask is not present.

Error: "ValueError: Invalid speedup option"

  • Explanation: This error occurs when an unrecognized value is provided for the speedup parameter.
  • Solution: Ensure that the speedup parameter is set to one of the valid options: "Original (1x)", "Fast (1.6x)", or "Faster (2.1x)".

TeaCache HunyuanVideo Sampler Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-TeaCacheHunyuanVideo
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.