aigc-apps/VideoX-Fun
📹 A more flexible framework that can generate videos at any resolution and creates videos from images.
What it solves
VideoX-Fun addresses the need for a flexible and unified pipeline to generate AI images and videos, as well as to train custom baseline and LoRA models for Diffusion Transformer architectures. It enables users to create videos from text prompts, starting and ending images, reference videos, or controlled conditions like Canny edges, pose, and depth, while also allowing them to fine-tune models for specific style transformations.
How it works
The pipeline provides both inference and training capabilities. Inference can be triggered through multiple entry points: Python scripts for batch generation and parameter debugging, a Gradio-based Web UI for interactive use, and ComfyUI for integration into existing workflows. It supports several model families such as CogVideoX-Fun, Wan2.1, Wan2.2, and Qwen-Image, each with dedicated scripts and configuration files. To run on consumer GPUs, it offers memory-saving modes like model_cpu_offload and quantized float8, and it supports multi-GPU parallel inference via xfuser and yunchang. For training, the project includes data preprocessing utilities (e.g., arranging datasets with JSON metadata) and training scripts for baseline and LoRA models, all organized under per-model directories.
Who it’s for
This project is aimed at researchers, AI developers, and content creators who want to generate AI-driven videos or train custom video generation models. It is suitable for users with Nvidia GPUs (e.g., 3060, 3090, V100, A100) and offers cloud options like Aliyun DSW with free GPU time. Users comfortable with Python, Git, and basic machine learning concepts can follow the provided documentation to get started.
Highlights
- Supports multiple generation tasks: text-to-video, image-to-video, video-to-video, and controlled generation (Canny, Pose, Depth, etc.).
- Provides three inference entry points: Python scripts, Web UI, and ComfyUI, each with different configuration granularity.
- Offers GPU memory saving modes (model_cpu_offload, quantized float8) to run on consumer-grade hardware.
- Enables multi-GPU parallel inference with configurable ulysses_degree and ring_degree for faster generation.
- Includes a complete training pipeline for baseline and LoRA models, with per-model documentation and data preprocessing guides.
- Supports a wide range of model families, including CogVideoX, Wan2.1/2.2, Qwen-Image, and Z-Image, with weights available on Hugging Face and ModelScope.
Related
- Project
- Project
- Project
- Project
- Project