| """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() | |