Backup / VideoX-Fun /VBench /vbench2_beta_long /aesthetic_quality.py
YFanwang's picture
Upload VideoX-Fun/VBench
5767e72 verified
Raw History Blame Contribute Delete
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)