ComfyUI-HunyuanVideoWrapper
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
HyVideoReSampler
HyVideoReSampler Node Documentation
Overview
The HyVideoReSampler node is a component of the Hunyuan Video Wrapper. It is designed to resample video latents by incorporating the effects of inversed latents generated in prior steps. The node allows for nuanced adjustments to the resampling process, enabling users to effectively manipulate video frames in a manner that aligns with their creative intentions. This node is particularly useful for video-to-video processing in ComfyUI workflows.
Functionality
What This Node Does
The HyVideoReSampler node takes an initial set of video latents, processes them in conjunction with inversed latents, and produces a new set of video latents. The process is guided by several parameters that dictate how the original and inversed latents interact over a series of time steps. This allows for controlled video effects, such as smoothing or blending based on the specified configuration parameters.
Inputs
The HyVideoReSampler node accepts the following inputs:
- model: A HunyuanVideo model object required for processing.
- hyvid_embeds: HYVIDEMBEDS input providing text embeddings used during video resampling.
- samples: LATENT input representing the initial video latents to be processed.
- inversed_latents: LATENT input obtained from the
HyVideoInverseSampler, serving as the basis for resampling. - steps: An integer indicating the number of processing steps, which determines the granularity of resampling.
- embedded_guidance_scale: A float specifying the scale of embedded guidance during resampling, influencing the strength of prompt-driven effects.
- flow_shift: A float representing the shift in video flow, impacting the timing or dynamics of the video frames.
- force_offload: A boolean that, if true, enables forceful offloading to reduce memory usage.
- start_step: An integer that marks the beginning step for applying the inversed latents' effect.
- end_step: An integer that marks the final step for the effect of the inversed latents.
- eta_base: A float serving as the base value of eta, controlling the basic strength of the inversed latents' effect.
- eta_trend: Defines the trend ('constant', 'linear_increase', 'linear_decrease') of the eta value over the steps.
Optional Inputs
- interpolation_curve: An optional float input for specifying the strength of inversed latents along time in latent space.
- feta_args: Optional input for additional feature arguments to further customize the resampling process.
Outputs
- samples: The node outputs modified latents (LATENT type), which can be used in subsequent processing stages or for rendering the final video result.
Usage in ComfyUI Workflows
In ComfyUI workflows, the HyVideoReSampler node is typically used in conjunction with the HyVideoInverseSampler node. Together, they form part of a pipeline that starts with generating inversed latents and ends with the resampling of those latents to produce the desired video effects. By adjusting node parameters such as eta_base and interpolation_curve, users can achieve various artistic effects, such as enhancing fluidity or emphasizing certain visual transitions in video sequences.
Special Features and Considerations
- Highly Configurable: This node offers a range of parameters that allow users to fine-tune the resampling process to suit specific video artistic requirements.
- Memory Optimization: With the
force_offloadparameter, users can mitigate memory usage by offloading computational processes. - Trend Control: The
eta_trendinput provides unique control over how the inversed latents affect the output video resampling over time, supporting artistic flexibility. - Enhanced Visual Effects: The
feta_argsallows further enhancement of the resampling process, providing opportunities for advanced video effects.
Overall, the HyVideoReSampler node contributes to dynamic and customizable video editing pipelines in ComfyUI, enabling creators to render videos that are aligned with their stylistic aspirations.