GithubHelp home page GithubHelp logo

aethia-dev / t2v-turbo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenxwh/t2v-turbo

0.0 0.0 0.0 10.13 MB

Code repository for T2V-Turbo

Home Page: https://t2v-turbo.github.io/

Python 99.94% CSS 0.06%

t2v-turbo's Introduction

T2V-Turbo: Breaking the Quality Bottleneck of Video Consistency Model with Mixed Reward Feedback

Fast and High-Quality Text-to-video Generation ๐Ÿš€

Replicate

4-Step Results

With the style of low-poly game art, A majestic, white horse gallops gracefully across a moonlit beach. medium shot of Christine, a beautiful 25-year-old brunette resembling Selena Gomez, anxiously looking up as she walks down a New York street, cinematic style a cartoon pig playing his guitar, Andrew Warhol style
a dog wearing vr goggles on a boat Pikachu snowboarding a girl floating underwater

8-Step Results

Mickey Mouse is dancing on white background light wind, feathers moving, she moves her gaze, 4k fashion portrait shoot of a girl in colorful glasses, a breeze moves her hair
With the style of abstract cubism, The flowers swayed in the gentle breeze, releasing their sweet fragrance. impressionist style, a yellow rubber duck floating on the wave on the sunset A Egyptian tomp hieroglyphics painting ofA regal lion, decked out in a jeweled crown, surveys his kingdom.

๐Ÿญ Installation

pip install accelerate transformers diffusers webdataset loralib peft pytorch_lightning open_clip_torch hpsv2 peft wandb av einops packaging omegaconf opencv-python kornia

pip install flash-attn --no-build-isolation
git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention
pip install csrc/fused_dense_lib csrc/layer_norm

pip install git+https://github.com/iejMac/video2dataset.git

conda install xformers

๐Ÿ›ž Model Checkpoints

Model Resolution Checkpoints
T2V-Turbo (VC2) 320x512 HuggingFace
T2V-Turbo (MS) 256x256 HuggingFace

๐Ÿš€ Inference

We provide local demo codes supported with gradio (For MacOS users, need to set the device="mps" in app.py; For Intel GPU users, set device="xpu" in app.py).

To play with our T2V-Turbo (VC2), please follow the steps below:

  1. Download the unet_lora.pt of our T2V-Turbo (VC2) here.

  2. Download the model checkpoint of VideoCrafter2 here.

  3. Launch the gradio demo with the following command:

pip install gradio==3.48.0
python app.py --unet_dir PATH_TO_UNET_LORA.pt --base_model_dir PATH_TO_VideoCrafter2_MODEL_CKPT

To play with our T2V-Turbo (MS), please follow the steps below:

  1. Download the unet_lora.pt of our T2V-Turbo (MS) here.

  2. Launch the gradio demo with the following command:

pip install gradio==3.48.0
python app_ms.py --unet_dir PATH_TO_UNET_LORA.pt

๐Ÿ‹๏ธ Training

To train T2V-Turbo (VC2), run the following command

bash train_t2v_turbo_vc2.sh

To train T2V-Turbo (MS), run the following command

bash train_t2v_turbo_ms.sh

t2v-turbo's People

Contributors

ji4chenli avatar lalalune avatar chenxwh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.