from comfy_api.latest import ComfyExtension, io from .h3_windows import WindowsWrapper, apply, parse_schedule, recording_clip class MiniMaxH3TemporalWindow(io.ComfyNode): @classmethod def define_schema(cls): return io.Schema( node_id="MiniMaxH3TemporalWindow", display_name="Minimax H3 V2V Temporal Window & Spatial Tiles (mo-akkakk)", category="model/patch/minimax", search_aliases=["h3 temporal window", "h3 spatial tiles", "h3 long video", "minimax overlap", "context windows", "mo-akkakk"], description="Put after the model, and route the CLIP through it into Reference to Video. " "Samples the video as overlapping temporal windows, one after another: each window is a normal H3 run on its " "slice of the plate, starts from the previous window's finished overlap frames (frame-0 guide), and the " "overlap is crossfaded. Optional spatial tiles, each following its crop of the plate. Works with KSampler and SamplerCustomAdvanced.", inputs=[ io.Model.Input("model"), io.Clip.Input("clip", optional=True, tooltip="Route the CLIP through here into Reference to Video so each window re-encodes the prompt with only " "its own slice of