Download experiments/tdmpc2/src/predict.py from cccat6/FlowMo-WM: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/cccat6/FlowMo-WM/resolve/main/experiments/tdmpc2/src/predict.py
- Command line
-
hf download hf://cccat6/FlowMo-WM/experiments/tdmpc2/src/predict.py
-
curl -L -o predict.py https://huggingface.co/cccat6/FlowMo-WM/resolve/main/experiments/tdmpc2/src/predict.py
193 Bytes
| """TD-MPC2 latent rollout interface.""" | |
| def rollout(model, batch, horizon): | |
| images, actions, future_actions = batch | |
| return model.rollout(images, actions, future_actions[:, :horizon]) | |