Download Ctrl-World-Graph/scripts/eval_nodeonly_protocol.py from EndeavourDD/gnn_wm2: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/datasets/EndeavourDD/gnn_wm2/resolve/main/Ctrl-World-Graph/scripts/eval_nodeonly_protocol.py
- Command line
-
hf download hf://datasets/EndeavourDD/gnn_wm2/Ctrl-World-Graph/scripts/eval_nodeonly_protocol.py
-
curl -L -o eval_nodeonly_protocol.py https://huggingface.co/datasets/EndeavourDD/gnn_wm2/resolve/main/Ctrl-World-Graph/scripts/eval_nodeonly_protocol.py
642 Bytes
| """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() | |