The ComfyUI FramePack Wrapper integrates Stanford University's advanced FramePack technology into the ComfyUI environment. FramePack is built on innovative frame context packing techniques that enable efficient and high-quality long video generation with minimal computing resources. The FramePack technology allows you to generate thousands of frames at full 30fps using even modest GPU configurations like 6GB laptop GPUs, making professional video creation accessible to everyone. FramePack's unique approach to video generation feels like image diffusion but delivers exceptional video results.
Example Setup for FramePack:
Load Image
node: Upload a reference image that will be animated into a video with FramePackFramePackSampler
: Set video length (e.g., 5.0 seconds)Video Combine
: Set frame rate (e.g., 30) and output format (e.g., video/h264-mp4)run
button to run the FramePack workflowVideo Combine
nodeFramePackSampler Node:
steps
: Number of diffusion steps (e.g., 30) - higher values produce better quality but take longer in FramePackguidance_scale
: Additional guidance strength in FramePack (e.g., 10.00) - higher values adhere more strictly to promptsseed
: Random seed for reproducible results in FramePack (e.g., 47)total_second_length
: Duration of the generated video in seconds (e.g., 5.0) in FramePackcontrol_after_generate
: Controls the anti-drifting sampling method in FramePack (keep as "fixed" for best results)Video Combine Node:
frame_rate
: Frames per second in the output FramePack video (e.g., 30)crf
: Compression quality factor (e.g., 19) - lower values = higher quality FramePack videosGenerating Longer Videos with FramePack: One of FramePack's key strengths is the ability to generate extended videos efficiently. To create longer videos:
total_second_length
parameter in the FramePackSampler node (e.g., from 5.0 to 10.0, 30.0, or even 60.0+)control_after_generate
set to "fixed" to utilize FramePack's advanced anti-drifting sampling technologygpu_memory_preservation
value to manage memory usagelatent_window_size
parameterAdjusting Video Resolution: To change the output FramePack video resolution, adjust the "Resize Image" node in the workflow:
width
and height
parameters to set your desired FramePack video dimensionsgpu_memory_preservation
parameter to balance memory usage in FramePackFramePack Prompt Tips:
The FramePack technology uses innovative bi-directional sampling methods that break traditional causality constraints to prevent quality degradation in longer videos. Particularly for image-to-video generation, FramePack employs "inverted anti-drifting sampling" which treats the first frame as an approximation target throughout the generation process, ensuring high-quality results even in videos up to 60 seconds or more (1800+ frames).
For additional details and FramePack model downloads:
This workflow is powered by FramePack, developed by Lvmin Zhang and Maneesh Agrawala at Stanford University. The ComfyUI FramePack Wrapper is provided by kijai, including tailored workflows and integrations that enable efficient long video generation with FramePack technology. Full credit goes to the original authors for their groundbreaking work on FramePack.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.