Download src/psi/data/lerobot/compat.py from Tinghong-Ye22/code-HFD: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/src/psi/data/lerobot/compat.py
- Command line
-
hf download hf://Tinghong-Ye22/code-HFD/src/psi/data/lerobot/compat.py
-
curl -L -o compat.py https://huggingface.co/Tinghong-Ye22/code-HFD/resolve/main/src/psi/data/lerobot/compat.py
572 Bytes
| from __future__ import annotations | |
| try: | |
| from lerobot.common.datasets.lerobot_dataset import ( # type: ignore | |
| LeRobotDataset, | |
| LeRobotDatasetMetadata, | |
| MultiLeRobotDataset, | |
| ) | |
| LEROBOT_LAYOUT = "common" | |
| except ModuleNotFoundError: | |
| from lerobot.datasets.lerobot_dataset import ( # type: ignore | |
| LeRobotDataset, | |
| LeRobotDatasetMetadata, | |
| MultiLeRobotDataset, | |
| ) | |
| LEROBOT_LAYOUT = "datasets" | |
| __all__ = [ | |
| "LEROBOT_LAYOUT", | |
| "LeRobotDataset", | |
| "LeRobotDatasetMetadata", | |
| "MultiLeRobotDataset", | |
| ] | |