ComfyUI > Nodes > 10S-Comfy-nodes > ⚡ Latent Motion Sharpener

ComfyUI Node: ⚡ Latent Motion Sharpener

Class Name

LatentMotionSharpener

Category
10S Nodes/Latents
Author
TenStrip (Account age: 11days)
Extension
10S-Comfy-nodes
Latest Updated
2026-05-12
Github Stars
0.04K

How to Install 10S-Comfy-nodes

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

⚡ Latent Motion Sharpener Description

Enhances image clarity with motion-adaptive spatial sharpening for video frames, adjusting sharpening based on detected motion.

⚡ Latent Motion Sharpener:

The LatentMotionSharpener node is designed to enhance the clarity of images by applying motion-adaptive spatial sharpening. This node is particularly useful in scenarios where images are part of a sequence, such as video frames, and there is a need to sharpen them based on the motion detected between frames. The sharpening is adaptive, meaning it adjusts according to the magnitude of motion detected between frames, ensuring that areas with more motion receive more sharpening. This approach helps in maintaining the natural look of the image while enhancing details, especially in dynamic scenes. The node is intended to be used before the LatentTemporalUpsampler to ensure optimal results.

⚡ Latent Motion Sharpener Input Parameters:

latent

The latent parameter is the primary input for the node, representing the latent space data that needs to be sharpened. This data is typically a multi-dimensional tensor containing the image or video frame information.

base_sharpen

The base_sharpen parameter controls the baseline level of sharpening applied to the image. It is a float value with a default of 0.08, a minimum of 0.0, and no specified maximum. This parameter sets the foundational sharpening level before any motion-based adjustments are applied.

motion_sharpen

The motion_sharpen parameter determines the additional sharpening applied based on the detected motion between frames. It is a float value with a default of 0.55, a minimum of 0.0, and a maximum of 2.0. This parameter allows for increased sharpening in areas with significant motion, enhancing details in dynamic scenes.

motion_thresh

The motion_thresh parameter sets the threshold for motion detection, influencing when additional sharpening should be applied. It is a float value with a default of 0.04, a minimum of 0.0, and a maximum of 0.5. This threshold helps in distinguishing between static and dynamic areas, ensuring that only areas with sufficient motion are sharpened further.

temporal_smooth_mask

The temporal_smooth_mask is a boolean parameter that, when enabled, applies a smoothing mask over time to the motion map. This helps in reducing noise and ensuring a more consistent sharpening effect across frames. The default value is True.

⚡ Latent Motion Sharpener Output Parameters:

latent

The output latent parameter is the processed latent space data with enhanced sharpness. This output retains the original structure of the input but with improved clarity and detail, particularly in areas with detected motion. The sharpening effect is adaptive, ensuring that the output maintains a natural appearance while highlighting important details.

⚡ Latent Motion Sharpener Usage Tips:

  • Use the base_sharpen parameter to set a general sharpening level that suits your overall image quality needs before adjusting for motion.
  • Adjust the motion_sharpen parameter to enhance details in areas with significant motion, but be cautious of over-sharpening, which can lead to unnatural artifacts.
  • Set the motion_thresh parameter to a level that effectively distinguishes between static and dynamic areas in your specific sequence to optimize sharpening.
  • Enable temporal_smooth_mask to ensure consistent sharpening across frames, especially in sequences with varying motion.

⚡ Latent Motion Sharpener Common Errors and Solutions:

"Expected 5D, got {samples.shape} - passthrough"

  • Explanation: This error occurs when the input latent data does not have the expected five-dimensional shape, which is necessary for processing.
  • Solution: Ensure that the input data is correctly formatted as a five-dimensional tensor, typically representing batch size, channels, frames, height, and width.

"MotionSharpener output: {result.shape} does not match input shape"

  • Explanation: This error indicates a mismatch between the shape of the output data and the expected shape based on the input.
  • Solution: Verify that all input parameters are set correctly and that the input data is properly structured to avoid shape mismatches during processing.

⚡ Latent Motion Sharpener Related Nodes

Go back to the extension to check out more related nodes.
10S-Comfy-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 Models, enabling artists to harness the latest AI tools to create incredible art.

⚡ Latent Motion Sharpener