KJNodes/imagegenerated

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

source_images
new_images
source_images
start_images
extended_images
overlap
13
overlap_side
source
overlap_mode
linear_blend
KJNodes

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 NameData TypeRequiredDefault ValueRange/OptionsDescription
source_imagesIMAGEYes--The source images to extend
new_imagesIMAGENo--The new images to extend with

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
overlap_sideCOMBOYessource"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_modeCOMBOYeslinear_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.
overlapINTYes131 - 4096 (Step: 1)Number of overlapping frames between source and new images

Output

Parameter NameData TypeDescription
source_imagesIMAGEDirectly passes through the input source image sequence.
start_imagesIMAGEOutputs the starting images for extension, typically the ending part of the source images.
extended_imagesIMAGEOutputs 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.

The Image Batch Extend With Overlap node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…