File size: 841 Bytes
06f9561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Validate the saved overlay recipe without consulting legacy SWA caches."""
import json
import os
from pathlib import Path
import sys

ROOT = Path(__file__).resolve().parents[2]
sys.path[:0] = [str(ROOT), str(ROOT / "src")]


def check_run(run):
    from scripts.data.check_hfd_overlay_manifest import check
    config = json.loads((Path(run) / "run_config.json").read_text())
    data = config["data"]
    return check(
        data["multimodal_overlay_manifests"],
        config["model"]["model_name_or_path"],
        require_eight_voices=True,
        require_live_video_qa=True,
        visual_input_mode=os.environ.get(
            "HFD_VISUAL_INPUT_MODE", data.get("multimodal_visual_input_mode", "cached")
        ),
    )


if __name__ == "__main__":
    print(json.dumps(check_run(sys.argv[1]), ensure_ascii=False), flush=True)