Download code/openpi_client/base_policy.py from beataasd/pi05-clean50-trained: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/beataasd/pi05-clean50-trained/resolve/main/code/openpi_client/base_policy.py
- Command line
-
hf download hf://beataasd/pi05-clean50-trained/code/openpi_client/base_policy.py
-
curl -L -o base_policy.py https://huggingface.co/beataasd/pi05-clean50-trained/resolve/main/code/openpi_client/base_policy.py
272 Bytes
| import abc | |
| from typing import Dict | |
| class BasePolicy(abc.ABC): | |
| def infer(self, obs: Dict) -> Dict: | |
| """Infer actions from observations.""" | |
| def reset(self) -> None: | |
| """Reset the policy to its initial state.""" | |
| pass | |