Image Batch Extend With Overlap(ImageBatchExtendWithOverlap)
This node creates smooth transitions between the source image sequence and the new image sequence by specifying the number of overlapping frames and the overlapping method.
Image Batch Extend With Overlap
The Image Batch Extend With Overlap node creates smooth transitions between a source image sequence and a new image sequence by specifying the number of overlapping frames and the overlap method.
Image Batch Extend With Overlap is a specialized auxiliary node for video generation extension. Its core function is to help users seamlessly splice a newly generated image sequence with the original image sequence. It ensures natural transitions by processing overlapping areas, thereby extending the video content.
Node Functionality
This node creates smooth transitions between a source image sequence and a new image sequence by specifying the number of overlapping frames and the overlap method. It supports multiple overlap blending modes, including direct cut, linear blend, and more complex visual transition effects. It strictly checks the dimensional consistency of input images to ensure correct processing.
Node Parameter Description - Image Batch Extend With Overlap
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
source_images | IMAGE | Yes | - | - | The source images to extend |
new_images | IMAGE | No | - | - | The new images to extend with |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
overlap_side | COMBO | Yes | source | "source", "new_images" | Specifies which side's image sequence the overlapping region is taken from. Options are "source" (source images) or "new_images" (new images). |
overlap_mode | COMBO | Yes | linear_blend | "cut", "linear_blend", "ease_in_out", "filmic_crossfade", "perceptual_crossfade" | Specifies the blending method used for overlapping frames. Options: cut (no blending), linear_blend, ease_in_out, filmic_crossfade, perceptual_crossfade. |
overlap | INT | Yes | 13 | 1 - 4096 (Step: 1) | Number of overlapping frames between source and new images |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| source_images | IMAGE | Directly passes through the input source image sequence. |
| start_images | IMAGE | Outputs the starting images for extension, typically the ending part of the source images. |
| extended_images | IMAGE | Outputs the final spliced and extended image sequence. |
Usage Scenarios
In a video continuation workflow, you can first use this node (without connecting new_images) to extract a specified number of overlapping frames from the end of the original video as the starting point for new generation. After generating new frames, connect the old and new images in another instance of the node, select an appropriate overlap mode for splicing, and finally obtain a seamlessly extended video sequence.
Notes
When using this node, note that the number of overlapping frames must be less than the total number of frames in the source image sequence. Additionally, the dimensions (height and width) of the source images and the new images must be exactly the same; otherwise, the node will not function properly.
Image Batch Extend With Overlap Node Source Code Link
The Image Batch Extend With Overlap node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.