Download experiments/flowmo/src/predict.py from cccat6/FlowMo-WM: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/cccat6/FlowMo-WM/resolve/dd3258b67d055ee2ef6d024c562dab46d4d25f1a/experiments/flowmo/src/predict.py
- Command line
-
hf download hf://cccat6/FlowMo-WM@dd3258b67d055ee2ef6d024c562dab46d4d25f1a/experiments/flowmo/src/predict.py
-
curl -L -o predict.py https://huggingface.co/cccat6/FlowMo-WM/resolve/dd3258b67d055ee2ef6d024c562dab46d4d25f1a/experiments/flowmo/src/predict.py
228 Bytes
| """FlowMo rollout interface.""" | |
| def rollout(model, batch, horizon): | |
| """Run open-loop FlowMo prediction.""" | |
| images, actions, future_actions = batch | |
| return model.rollout(images, actions, future_actions[:, :horizon]) | |