Download VideoX-Fun/VBench/vbench2_beta_long/aesthetic_quality.py from YFanwang/Backup: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/datasets/YFanwang/Backup/resolve/main/VideoX-Fun/VBench/vbench2_beta_long/aesthetic_quality.py
- Command line
-
hf download hf://datasets/YFanwang/Backup/VideoX-Fun/VBench/vbench2_beta_long/aesthetic_quality.py
-
curl -L -o aesthetic_quality.py https://huggingface.co/datasets/YFanwang/Backup/resolve/main/VideoX-Fun/VBench/vbench2_beta_long/aesthetic_quality.py
463 Bytes
| import os | |
| from collections import defaultdict | |
| from vbench.aesthetic_quality import compute_aesthetic_quality | |
| from vbench.utils import save_json, load_json | |
| from vbench2_beta_long.utils import reorganize_clips_results | |
| def compute_long_aesthetic_quality(json_dir, device, submodules_list, **kwargs): | |
| all_results, detailed_results = compute_aesthetic_quality(json_dir, device, submodules_list, **kwargs) | |
| return reorganize_clips_results(detailed_results) |