Skip to content

Using ControlNet to augment videos for IsaacGym

License

Notifications You must be signed in to change notification settings

evnkm/ControlVideo

 
 

Repository files navigation

ControlVideo

Official pytorch implementation of "ControlVideo: Training-free Controllable Text-to-Video Generation"

arXiv visitors HuggingFace demo Replicate


ControlVideo adapts ControlNet to the video counterpart without any finetuning, aiming to directly inherit its high-quality and consistent generation

News

Setup

1. Download Weights

All pre-trained weights are downloaded to checkpoints/ directory, including the pre-trained weights of Stable Diffusion v1.5, ControlNet 1.0 conditioned on canny edges, depth maps, human poses, and ControlNet 1.1 in here. The flownet.pkl is the weights of RIFE. The final file tree likes:

checkpoints
├── stable-diffusion-v1-5
├── sd-controlnet-canny
├── sd-controlnet-depth
├── sd-controlnet-hed
├── control_v11p_sd15_lineart
├── flownet.pkl

2. Requirements

conda create -n controlvideo python=3.10
conda activate controlvideo
pip install -r requirements.txt

Note: xformers is recommended to save memory and running time. controlnet-aux is updated to version 0.0.6.

Inference

0. Reminders

In order to use one_trajectory.py or run_control.net, you need to first set the logger.prefix to the path of the input video.

1. one_trajectory.py

Used to generate a video from a single trajectory input video. The input video should first be on the server where logger.prefix is set to.

2. inference.py

inference.simple for just taking an input video and generating one video. inference.main for taking an input video and generating 5 samples for the trajectory input video.

Acknowledgement

This work repository borrows heavily from Diffusers, ControlNet, Tune-A-Video, and RIFE. The code of HuggingFace demo borrows from fffiloni/ControlVideo. Thanks for their contributions!

There are also many interesting works on video generation: Tune-A-Video, Text2Video-Zero, Follow-Your-Pose, Control-A-Video, et al.

About

Using ControlNet to augment videos for IsaacGym

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%