File size: 639 Bytes
26eef82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Evaluate the original LeWM model on OGBench Scene.

Example:
MUJOCO_GL=egl python eval_scene.py \
  policy=/data_nvme/user/zliu681/le-wm-main/lewm_cache/ogbench_scene/lewm_scene/lewm_scene_epoch_10 \
  solver.device=auto \
  eval.num_eval=50 \
  eval.save_video=True
"""

import faulthandler
import sys

from eval import run


def _has_config_name(argv: list[str]) -> bool:
    return any(arg == "--config-name" or arg.startswith("--config-name=") for arg in argv)


if __name__ == "__main__":
    faulthandler.enable(all_threads=True)
    if not _has_config_name(sys.argv):
        sys.argv.insert(1, "--config-name=scene")
    run()