--- license: other tags: - trajectory-prediction - diffusion - flow-matching --- # SRA โ€” Spatial Reasoning Adapter (code) Code for running **SRA**, a modular future-interaction graph that plugs into three stochastic trajectory predictors โ€” **MID** (DDPM), **LED** (leapfrog-DDPM) and **MoFlow** (flow matching) โ€” on **NBA**, **Soccer** and **Football**. ## ๐Ÿ‘‰ Start here: [`SETUP.md`](SETUP.md) โ€” download, install, run It covers the required directory layout, environment setup, the exact training command for each host ร— dataset, the E2 ablation settings, environment-variable switches, the adapter contract, and known gotchas. ## Documents - [`SETUP.md`](SETUP.md) โ€” end-to-end setup from scratch (env, data, paths, first run) - [`RUNNING.md`](RUNNING.md) โ€” how to run every host ร— dataset - [`GAMEFORMER_SRA.md`](GAMEFORMER_SRA.md) โ€” GameFormer+SRA negative result (does SRA generalize to feedforward models?) - [`sample_data/README.md`](sample_data/README.md) โ€” bundled 100-scene NBA smoke-test subset ## Contents ``` MoFlow/ flow-matching host + the SRA graph module + E4 baseline modules MID/ DDPM host LED/ leapfrog-DDPM host ``` **Important:** `MID/` and `LED/` import the SRA graph from a *sibling* `MoFlow/` directory at runtime โ€” keep the three folders side by side. See ยง0 of `RUNNING.md`. ## Not included - **Datasets** (NBA / soccer / football `.npy` files) โ€” see ยง2 of `RUNNING.md` for the expected paths. - **Checkpoints and training logs** โ€” code only.