Spaces:
Running on Zero
Running on Zero
Download lingbot_map2/models/gcr_base.py from hugging-apps/lingbot-map-v2-streaming: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/spaces/hugging-apps/lingbot-map-v2-streaming/resolve/main/lingbot_map2/models/gcr_base.py
- Command line
-
hf download hf://spaces/hugging-apps/lingbot-map-v2-streaming/lingbot_map2/models/gcr_base.py
-
curl -L -o gcr_base.py https://huggingface.co/spaces/hugging-apps/lingbot-map-v2-streaming/resolve/main/lingbot_map2/models/gcr_base.py
697 Bytes
| # Copyright 2026 The Robbyant Team Authors. All rights reserved. | |
| """Checkpoint-native modules shared by the streaming model.""" | |
| from torch import nn | |
| from ..aggregator.base import Aggregator | |
| from ..heads.camera_head import CameraHead | |
| from ..heads.dpt_head import DPTHead | |
| class NativeModel(nn.Module): | |
| def __init__(self, spatial_rope="max", max_frames=1024): | |
| super().__init__() | |
| self.aggregator = Aggregator(spatial_rope, max_frames=max_frames) | |
| self.camera_head = CameraHead() | |
| self.depth_head = DPTHead( | |
| dim_in=2048, | |
| patch_size=16, | |
| output_dim=2, | |
| activation="exp", | |
| conf_activation="expp1", | |
| ) | |