# Video Generation (Layout2Vid) Instructions

## Setup
We have prepared a conda YAML file which contains all the python dependencies.
```
conda env create -f environment.yml
```

To activate this conda environment,
```
conda activate layout2vid
```

## Inference

First we need to set up the checkpoints, datafiles, and the output paths specified in the configuration file `./configs/evaluation.yaml`.


Then run the following commnand for single-scene VideoDirectorGPT inference:
```
CUDA_VISIBLE_DEVICES=0 python main_inference.py --yaml_file=configs/evaluation.yaml --output_folder VideoDirectorGPT_output --mode single
```

And run the following commnand for multi-scene VideoDirectorGPT inference:
```
CUDA_VISIBLE_DEVICES=0 python main_inference.py --yaml_file=configs/evaluation.yaml --output_folder VideoDirectorGPT_output --mode multi
```
