Repo Structure
Open-Sora
βββ README.md
βββ assets
β βββ images -> images used for image-conditioned generation
β βββ demo -> images used for demo
β βββ texts -> prompts used for text-conditioned generation
β βββ readme -> images used in README
βββ configs -> Configs for training & inference
βββ docker -> dockerfile for Open-Sora
βββ docs
β βββ acceleration.md -> Report on acceleration & speed benchmark
β βββ commands.md -> Commands for training & inference
β βββ datasets.md -> Datasets used in this project
| βββ data_processing.md -> Data pipeline documents
| βββ installation.md -> Data pipeline documents
β βββ structure.md -> This file
β βββ config.md -> Configs for training and inference
β βββ report_01.md -> Report for Open-Sora 1.0
β βββ report_02.md -> Report for Open-Sora 1.1
β βββ report_03.md -> Report for Open-Sora 1.2
β βββ vae.md -> our VAE report
β βββ zh_CN -> Chinese version of the above
βββ eval -> Evaluation scripts
β βββ README.md -> Evaluation documentation
| βββ human_eval -> for human eval
| βββ launch.sh -> script for launching 8 cards sampling
| βββ loss -> eval loss
| βββ sample.sh -> script for quickly launching inference on predefined prompts
| βββ vae -> for vae eval
| βββ vbench -> for VBench evaluation
β βββ vbench_i2v -> for VBench i2v evaluation
βββ gradio -> Gradio demo related code
βββ notebooks -> Jupyter notebooks for generating commands to run
βββ scripts
β βββ train.py -> diffusion training script
β βββ train_vae.py -> vae training script
β βββ inference.py -> diffusion inference script
β βββ inference_vae.py -> vae inference script
β βββ misc -> misc scripts, including batch size search
βββ opensora
β βββ __init__.py
β βββ registry.py -> Registry helper
β βββ acceleration -> Acceleration related code
β βββ datasets -> Dataset related code
β βββ models
β β βββ dit -> DiT
β β βββ layers -> Common layers
β β βββ vae -> VAE as image encoder
β β βββ text_encoder -> Text encoder
β β β βββ classes.py -> Class id encoder (inference only)
β β β βββ clip.py -> CLIP encoder
β β β βββ t5.py -> T5 encoder
β β βββ dit
β β βββ latte
β β βββ pixart
β β βββ stdit -> Our STDiT related code
β βββ schedulers -> Diffusion schedulers
β β βββ iddpm -> IDDPM for training and inference
β β βββ dpms -> DPM-Solver for fast inference
β βββ utils
βββ tests -> Tests for the project
βββ tools -> Tools for data processing and more
Configs
Our config files follows MMEgine. MMEngine will reads the config file (a .py file) and parse it into a dictionary-like object.
Open-Sora
βββ configs -> Configs for training & inference
βββ opensora-v1-1 -> STDiT2 related configs
β βββ inference
β β βββ sample.py -> Sample videos and images
β β βββ sample-ref.py -> Sample videos with image/video condition
β βββ train
β βββ stage1.py -> Stage 1 training config
β βββ stage2.py -> Stage 2 training config
β βββ stage3.py -> Stage 3 training config
β βββ image.py -> Illustration of image training config
β βββ video.py -> Illustration of video training config
β βββ benchmark.py -> For batch size searching
βββ opensora -> STDiT related configs
β βββ inference
β β βββ 16x256x256.py -> Sample videos 16 frames 256x256
β β βββ 16x512x512.py -> Sample videos 16 frames 512x512
β β βββ 64x512x512.py -> Sample videos 64 frames 512x512
β βββ train
β βββ 16x256x256.py -> Train on videos 16 frames 256x256
β βββ 16x256x256.py -> Train on videos 16 frames 256x256
β βββ 64x512x512.py -> Train on videos 64 frames 512x512
βββ dit -> DiT related configs
β βββ inference
β β βββ 1x256x256-class.py -> Sample images with ckpts from DiT
β β βββ 1x256x256.py -> Sample images with clip condition
β β βββ 16x256x256.py -> Sample videos
β βββ train
β βββ 1x256x256.py -> Train on images with clip condition
β βββ 16x256x256.py -> Train on videos
βββ latte -> Latte related configs
βββ pixart -> PixArt related configs
Tools
Open-Sora
βββ tools
βββ datasets -> dataset management related code
βββ scene_cut -> scene cut related code
βββ caption -> caption related code
βββ scoring -> scoring related code
β βββ aesthetic -> aesthetic scoring related code
β βββ matching -> matching scoring related code
β βββ ocr -> ocr scoring related code
β βββ optical_flow -> optical flow scoring related code
βββ frame_interpolation -> frame interpolation related code