An unofficial implementation for ”OutDreamer: Video Outpainting with a Diffusion Transformer (accepted by TIP)“

June 28, 2026 · View on GitHub

overview.jpg

Setup

conda create -n outdreamer python=3.8 -y
conda activate outdreamer
pip install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118
pip install xformers==0.0.22.post7 --index-url https://download.pytorch.org/whl/cu118
pip install -e .
pip install -e ".[train]"
pip install -e ".[dev]"

Download

train

You can run the example training code with the following command:

bash scripts/train_outpaint.sh

The example training process is demonstrated using two example video data in data/train_data/ as well as its meta json file in data/data_json.json.

You can simply place the video data into the data/train_data/ directory and update the data/data_json.json file according to the template in actual training. The video data used in our experiments is sourced from https://huggingface.co/datasets/LanguageBind/Open-Sora-Plan-v1.1.0/tree/main/pexels

Please refer to scripts/train_outpaint.sh for more training details.

Inference

After the training process, you can run the example inference code with the following command:

bash scripts/sample_outpaint.sh

We provide two examples for sampling, and please refer to scripts/sample_outpaint.sh for more inference details.

Acknowledgement

Our project is based on Open-Sora-Plan and we are grateful for its open-source nature.

📎 Citation

@article{zhong2026outdreamer,
  title={Outdreamer: Video outpainting with a diffusion transformer},
  author={Zhong, Linhao and Li, Fan and Huang, Yi and Liu, Jianzhuang and Pei, Renjing and Song, Fenglong},
  journal={IEEE Transactions on Image Processing},
  year={2026},
  publisher={IEEE}
}