ComfyUI > Nodes > DJZ-Nodes > Keyframe Based Upscaler V1

ComfyUI Node: Keyframe Based Upscaler V1

Class Name

KeyframeBasedUpscalerV1

Category
image/upscaling
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

Install this extension via the ComfyUI Manager by searching for DJZ-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter DJZ-Nodes 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

Keyframe Based Upscaler V1 Description

Sophisticated node enhances video frame resolution using keyframe-based upscaling for critical detail and efficiency.

Keyframe Based Upscaler V1:

The KeyframeBasedUpscalerV1 is a sophisticated node designed to enhance the resolution of video frames by leveraging keyframe-based upscaling techniques. This node intelligently identifies keyframes within a sequence of images and applies high-quality upscaling to these frames, ensuring that the most critical parts of the video are processed with the utmost detail. For non-keyframes, it uses a temporal blending approach, which considers surrounding frames to maintain consistency and smooth transitions. This method not only improves the visual quality of the video but also optimizes processing time by focusing computational resources on keyframes. The node is particularly beneficial for AI artists looking to upscale video content while preserving motion integrity and visual coherence.

Keyframe Based Upscaler V1 Input Parameters:

images

This parameter represents the batch of images that you want to upscale. It is the primary input for the node, and the upscaling process will be applied to each frame in this batch.

scale_factor

The scale factor determines how much the resolution of the images will be increased. It ranges from 1.0 to 4.0, with a default value of 2.0. A higher scale factor results in a larger image size, but it may also require more processing power and time.

keyframe_threshold

This parameter sets the threshold for detecting keyframes within the video sequence. It ranges from 0.0 to 100.0, with a default value of 30.0. A lower threshold will result in more frames being identified as keyframes, which can enhance detail but may increase processing time.

temporal_window

The temporal window defines the number of frames to consider for temporal analysis when processing non-keyframes. It ranges from 1 to 15, with a default value of 5. A larger window can improve the blending of frames but may also increase computational load.

quality_preservation

This parameter balances the trade-off between processing speed and output quality. It ranges from 0.0 to 1.0, with a default value of 0.8. A higher value prioritizes quality, while a lower value speeds up processing.

motion_sensitivity

Motion sensitivity affects how sensitive the node is to motion when detecting keyframes. It ranges from 0.0 to 1.0, with a default value of 0.5. Higher sensitivity may result in more keyframes being detected in areas with subtle motion.

interpolation_method

This parameter specifies the interpolation method used during upscaling. It has three options: 0 for Linear, 1 for Cubic, and 2 for Lanczos, with a default value of 0. Different methods can affect the smoothness and sharpness of the upscaled images.

Keyframe Based Upscaler V1 Output Parameters:

processed_batch

The output is a batch of upscaled images, where each frame has been processed according to the specified parameters. Keyframes are upscaled with high quality, while non-keyframes are blended and upscaled to maintain visual consistency. This output is crucial for achieving enhanced video resolution while preserving the integrity of motion and detail.

Keyframe Based Upscaler V1 Usage Tips:

  • Adjust the scale_factor to balance between desired resolution and processing time. A factor of 2.0 is generally a good starting point for most applications.
  • Use a higher keyframe_threshold if you want to reduce the number of keyframes and speed up processing, especially for videos with less motion.
  • Experiment with different interpolation_method settings to find the best visual quality for your specific content. Lanczos (2) often provides the best quality for detailed images.

Keyframe Based Upscaler V1 Common Errors and Solutions:

"IndexError: list index out of range"

  • Explanation: This error may occur if the keyframe detection logic attempts to access a frame index that does not exist.
  • Solution: Ensure that the temporal_window and keyframe_threshold are set appropriately to avoid excessive keyframe detection that could lead to out-of-bounds access.

"ValueError: invalid scale factor"

  • Explanation: This error indicates that the scale_factor is set outside the allowed range.
  • Solution: Verify that the scale_factor is within the range of 1.0 to 4.0 and adjust it accordingly.

"TypeError: unsupported operand type(s)"

  • Explanation: This error might occur if non-numeric values are passed to parameters expecting numeric input.
  • Solution: Double-check that all input parameters are set to valid numeric values as specified in their descriptions.

Keyframe Based Upscaler V1 Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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.