Skip to content

gajjar4/FrameWindowCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Frame Window Calculator for ComfyUI

Author: gajjar4 Note: Specifically designed WindowOfFrame solution for server environments

A fully automatic frame window size calculator designed for ComfyUI, based on WanVideo Animate Embeds mathematical algorithms.

Features

🎯 Frame Window Calculator

  • Input: frame_count from Load Video Upload node
  • Output: Automatically calculated optimal frame_window_size
  • Fully Automatic: No manual parameter tuning required, based on mathematical formulas

Node Description

Frame Window Calculator 🎬

Input Parameters:

  • frame_count: Total number of video frames (from Load Video Upload node)

Output Results:

  • frame_window_size: Automatically calculated optimal window size (directly connect to WanVideo Animate Embeds)

Usage

  1. Load Video Uploadframe_countFrame Window Calculatorframe_window_sizeWanVideo Animate Embeds

That's it!

Algorithm Logic

EXACT WanVideo Mathematical Formulas (copied from source code):

1. Frame Alignment (WanVideo Standard)

aligned_frames = ((frame_count - 1) // 4) * 4 + 1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages