Open-Sora/eval/README.md

38 lines
1.4 KiB
Markdown
Raw Normal View History

2024-04-23 11:26:10 +02:00
# Evalution
## Human evaluation
To conduct human evaluation, we need to generate various samples. We provide many prompts in `assets/texts`, and defined some test setting covering different resolution, duration and aspect ratio in `eval/sample.sh`. To facilitate the usage of multiple GPUs, we split sampling tasks into several parts.
```bash
2024-04-24 04:33:27 +02:00
# image (1)
2024-04-23 11:26:10 +02:00
bash eval/sample.sh /path/to/ckpt -1
2024-04-24 04:33:27 +02:00
# video (2a 2b 2c ...)
2024-04-23 11:26:10 +02:00
bash eval/sample.sh /path/to/ckpt -2a
# launch 8 jobs at once (you must read the script to understand the details)
bash eval/launch.sh /path/to/ckpt
```
## VBench
[VBench](https://github.com/Vchitect/VBench) is a benchmark for short text to video generation. We provide a script for easily generating samples required by VBench.
```bash
2024-04-24 04:33:27 +02:00
# vbench tasks (4a 4b 4c ...)
bash eval/sample.sh /path/to/ckpt -4a
2024-04-23 11:26:10 +02:00
# launch 8 jobs at once (you must read the script to understand the details)
bash eval/launch.sh /path/to/ckpt
```
2024-04-24 04:33:27 +02:00
After generation, install the VBench package according to their [instructions](https://github.com/Vchitect/VBench?tab=readme-ov-file#hammer-installation). Then, run the following commands to evaluate the generated samples.
```bash
bash eval/vbench/vbench.sh /path/to/video_folder
```
2024-04-23 11:26:10 +02:00
## VBench-i2v
[VBench-i2v](https://github.com/Vchitect/VBench/tree/master/vbench2_beta_i2v) is a benchmark for short image to video generation (beta version).
TBD