TransPixar / CogVideoX /README.md
wileewang's picture
Upload 6 files
7dc9494 verified
|
raw
history blame
562 Bytes

Getting Started

Download the corresponding pre-trained LoRA weights from the model zoo.

Inference

To generate the RGBA video, run:

python cli.py \
    --lora_path /path/to/lora \
    --prompt "..." \

This command generates the RGB and Alpha videos simultaneously and saves them. Specifically, the RGB video is saved in its premultiplied form. To blend this video with any background image, you can simply use the following formula:

com = rgb + (1 - alpha) * bgr