← See All Custom Node Packs

ComfyUI-Frame-Interpolation

1029

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

STMFNet VFI

STMFNet VFI Node Documentation

Overview

The STMFNet VFI node is a component of the ComfyUI-Frame-Interpolation extension, specifically designed for Video Frame Interpolation (VFI). This node leverages the ST-MFNet model to generate intermediate frames in a video sequence, providing smoother transitions by interpolating between existing frames. Frame interpolation is particularly useful for enhancing video playback by increasing the frame rate or improving the visual quality of motion in the video.

Functionality

What This Node Does

The STMFNet VFI node performs video frame interpolation by using the ST-MFNet model. This model requires at least four frames to function effectively. The STMFNet VFI node can currently perform a 2x frame interpolation. This means that it can generate one new frame in between each pair of original frames, effectively doubling the number of frames in a sequence.

The interpolation is especially beneficial for applications where smooth motion is essential, and initial input has noticeable gaps in motion continuity.

Inputs

The STMFNet VFI node accepts the following inputs:

  • Image Sequence: A collection of frames, requiring a minimum of four frames, forming the initial video sequence. These frames act as the source for generating interpolated frames. If only two or three frames are available, it is recommended to first use another VFI node (such as FILM VFI with a multiplier=4) before using the STMFNet VFI node.

Outputs

The STMFNet VFI node produces:

  • Interpolated Image Sequence: A new sequence of images where frames have been added between the original frames, achieving smoother transitions. The resulting sequence has a higher frame count, thereby improving the fluidity and visual quality of the video.

Usage in ComfyUI Workflows

To use the STMFNet VFI node in ComfyUI workflows, one should start by ensuring that the required number of input frames is available. If fewer than four frames are available, pre-processing using another interpolation node may be necessary. Once the sufficient input is prepared:

  1. Import the sequence into ComfyUI using appropriate nodes such as LoadImages from ComfyUI-Advanced-ControlNet or ComfyUI-VideoHelperSuite.

  2. Connect these inputs to the STMFNet VFI node to perform the interpolation.

  3. After processing, use standard ComfyUI output/draw nodes to view or export the newly interpolated sequence.

This node is part of the ComfyUI-Frame-Interpolation/VFI category and will be accessible from this menu once the extension is successfully installed.

Special Features and Considerations

  • Resource Management: The node includes features to manage memory effectively. The parameter clear_cache_after_n_frames helps prevent out-of-memory errors, allowing users to balance processing time with memory usage by setting an appropriate cache clearance frequency.

  • Dependencies: For non-CUDA devices, experimental support is available via the taichi ops backend from Taichi Lang. Users need to configure the backend in the config.yaml file if using a non-NVidia GPU.

  • Installation Guidance: The node comes bundled in an extension that requires proper installation. Users can refer to the ComfyUI-Manager Installation Guide or use provided scripts for manual setup on Windows and Linux.

This node is ideally suited for workflows that require high-quality video frame interpolation, particularly beneficial in animation, film production, and video enhancement projects seeking to improve motion continuity.