Calculate the effective frames-per-second for an autoregressive video generation model that produces video in chunks. Given the chunk size (number of frames per generation step), the overlap between consecutive chunks, and the time to generate one chunk, compute the effective FPS of new (non-overlapping) frames.
def autoregressive_video_fps(
chunk_frames: int,
overlap_frames: int,
chunk_gen_time_sec: float
) -> float:
new_frames = chunk_frames - overlap_frames
fps = new_frames / chunk_gen_time_sec
return round(fps, 4)chunk_frames total frames, but the first overlap_frames are shared with the previous chunk for temporal consistency.chunk_frames - overlap_frames.