SuperCS's picture
Add files using upload-large-folder tool
7f2bd75 verified

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