VideoCrafter Documentation

repository·main·Indexed 26 days ago

https://github.com/ailab-cvc/videocrafter

An open-source video generation and editing toolbox providing Text-to-Video (T2V) and Image-to-Video (I2V) diffusion models. Includes instructions for installation via Anaconda, running inference scripts, and launching a local Gradio demo.

Tokens
443
Snippets
4
Records
5
Agent score
40%

What's inside VideoCrafter

  1. Install VideoCrafter via Anaconda

    main

    To set up the VideoCrafter environment, it is recommended to use Anaconda. Create a new environment with Python 3.8.5 and install the required dependencies from requirements.txt.

    conda create -n videocrafter python=3.8.5
    conda activate videocrafter
    pip install -r requirements.txt
  2. Launch Local Gradio Demo

    main

    To use the interactive Gradio web interface, ensure you have downloaded the pretrained T2V and I2V models and placed them in their corresponding directories as specified in the inference guides, then run the Gradio application.

    python gradio_app.py
  3. Reference: Available VideoCrafter Models

    main

    The following models are available for download via Hugging Face:

    Text-to-Video (T2V) Models:

    • VideoCrafter2 (320x512)
    • VideoCrafter1 (576x1024)
    • VideoCrafter1 (320x512)

    Image-to-Video (I2V) Models:

    • VideoCrafter1 (640x1024) - Note: This is the DynamiCrafter model
    • VideoCrafter1 (320x512)