Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-MAINodes > H3 Repair Plan (alpha)

ComfyUI Node: H3 Repair Plan (alpha)

Class Name

H3RepairPlan

Category
MAINodes/alpha
Author
matlowai (Account age: 1004days)
Extension
ComfyUI-MAINodes
Latest Updated
2026-08-26
Github Stars
0.11K

How to Install ComfyUI-MAINodes

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

H3 Repair Plan (alpha) Description

Facilitates video repair by identifying and addressing problematic frames, ensuring seamless restoration without disrupting continuity or altering initial frames of subsequent shots.

H3 Repair Plan (alpha):

The H3RepairPlan node is designed to facilitate the repair of video sequences by identifying and addressing problematic frames within a clip. This node is particularly useful in scenarios where certain frames are corrupted or undesirable, allowing you to specify these frames and generate a comprehensive repair plan. The node works by expanding the specified range of bad frames to encompass entire latent time tokens, ensuring that the repair process is seamless and does not disrupt the continuity of the video. It also considers nearby shot cuts to prevent the model from altering the initial frames of subsequent shots. The node generates a hold map for time smearing, a regenerate mask for initializing video-to-video transformations, and splice bounds for seamless integration of repaired frames. This process ensures that the repaired video maintains its original flow and quality, making it an essential tool for video restoration tasks.

H3 Repair Plan (alpha) Input Parameters:

length

The length parameter specifies the total number of frames in the video clip. It is crucial for defining the scope of the repair plan and ensuring that the entire clip is considered during the repair process. The default value is typically set to the total frame count of the video.

bad_start

The bad_start parameter indicates the starting frame index of the problematic frames that need repair. This parameter helps in pinpointing the beginning of the range that requires attention. The value should be within the range of the total frames, starting from 0.

bad_end

The bad_end parameter marks the ending frame index of the problematic frames. It works in conjunction with bad_start to define the complete range of frames that are considered faulty. This value should also be within the frame range of the video.

hold

The hold parameter determines the number of frames to hold during the regeneration process. It affects how the repair plan handles the transition between repaired and original frames, ensuring smooth continuity. The default value is typically set to 3.

fps

The fps parameter stands for frames per second and defines the playback speed of the video. It is essential for calculating time-based operations within the repair plan. The default value is usually set to the video's original frame rate.

cuts

The cuts parameter allows you to specify frame indices where hard cuts occur in the video. This information is used to prevent the repair process from altering the initial frames of subsequent shots, maintaining the video's narrative flow.

reach

The reach parameter defines the extent to which the repair plan can extend beyond the specified bad frames to ensure a comprehensive repair. It helps in capturing additional frames that might be affected by the problematic range. The default value is typically set to 8.

images

The images parameter is an optional input that can include additional image data to assist in the repair process. It is used when specific image frames need to be referenced or included in the repair plan.

width

The width parameter specifies the width of the video frames. It is used in conjunction with the height parameter to define the dimensions of the video, which is essential for generating accurate masks and splices.

height

The height parameter specifies the height of the video frames. Along with the width parameter, it ensures that the repair plan accurately reflects the video's dimensions.

H3 Repair Plan (alpha) Output Parameters:

hold_map

The hold_map output provides a JSON string that details the hold durations for each frame in the video. This map is crucial for understanding how the repair plan manages frame transitions and ensures smooth continuity.

ranges

The ranges output specifies the frame ranges that are affected by the repair plan. It provides a concise summary of the frames that will be regenerated or held, aiding in the visualization of the repair process.

regen_mask

The regen_mask output is a mask that indicates which frames are subject to regeneration. This mask is essential for identifying the specific frames that will undergo repair, ensuring that only the necessary frames are altered.

plan

The plan output is a JSON string that encapsulates the entire repair strategy, including resolved parameters and notes. It serves as a comprehensive blueprint for the repair process, detailing every aspect of the plan.

report

The report output provides a textual summary of the repair plan, including key metrics and decisions made during the planning process. It offers insights into the effectiveness and scope of the repair strategy.

H3 Repair Plan (alpha) Usage Tips:

  • Ensure that the bad_start and bad_end parameters accurately reflect the problematic frames to avoid unnecessary alterations to unaffected frames.
  • Utilize the cuts parameter to maintain narrative continuity by preventing the repair process from altering the initial frames of subsequent shots.
  • Adjust the hold parameter to fine-tune the transition between repaired and original frames, ensuring a seamless visual experience.

H3 Repair Plan (alpha) Common Errors and Solutions:

"repaired has {r.shape[0]} frames, original has {L}; the splice reads the repaired clip at the SAME indices, so a length mismatch means the plan's hold map and H3 Exact Recover disagree"

  • Explanation: This error occurs when there is a mismatch in the number of frames between the original and repaired clips, leading to inconsistencies in the splice process.
  • Solution: Ensure that the repaired clip has the same number of frames as the original clip. Verify that the repair plan's hold map aligns with the frame indices of both clips.

"frames outside the splice differ from the original by {outside}; reassembly must be pure frame selection"

  • Explanation: This error indicates that frames outside the specified splice range have been altered, which should not happen as the reassembly should only involve frame selection.
  • Solution: Check the splice range and ensure that only the specified frames are being altered. Verify that the repair plan correctly identifies the frames to be repaired and that no additional frames are affected.

H3 Repair Plan (alpha) Related Nodes

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

H3 Repair Plan (alpha)