Download utils/pim_types.py from ZenoNing/ConsDrive: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/ZenoNing/ConsDrive/resolve/main/utils/pim_types.py
- Command line
-
hf download hf://ZenoNing/ConsDrive/utils/pim_types.py
-
curl -L -o pim_types.py https://huggingface.co/ZenoNing/ConsDrive/resolve/main/utils/pim_types.py
680 Bytes
| """Stream metadata and training-only labels, deliberately separate from policy inputs.""" | |
| from typing import NamedTuple, List, Dict, Optional | |
| from torch import Tensor | |
| from utils.custom_types import DrivingExample | |
| class PIMStreamBatch(NamedTuple): | |
| frames: List[DrivingExample] | |
| timestamps: Tensor # [B,T], episode-relative seconds | |
| ego_poses: Tensor # [B,T,3], world x/y/yaw in radians | |
| labels: List[Optional[Dict[str, Tensor]]] | |
| class PIMStepOutput(NamedTuple): | |
| speed_wps: Tensor | |
| route: Tensor | |
| state: object | |
| diagnostics: Dict[str, Tensor] | |
| action_features: Tensor | |
| scene_tokens: Tensor | |
| scene_mask: Tensor | |