File size: 642 Bytes
f15a766 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """Eval wrapper: run the 5fps protocol on a NODE-ONLY checkpoint.
Monkeypatches eval_5fps_protocol's model class to CtrlWorldGraphNodeOnly so edges
are stripped at inference too (matching how the checkpoint was trained).
Usage identical to eval_5fps_protocol.py.
"""
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
import scripts.eval_5fps_protocol as E # noqa: E402
from graphwm.models.ctrl_world_graph_node_only import CtrlWorldGraphNodeOnly # noqa: E402
E.CtrlWorldGraph = CtrlWorldGraphNodeOnly
if __name__ == "__main__":
E.main()
|