File size: 463 Bytes
5767e72 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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) |