Sweetnow commited on
Commit
17fac1d
·
verified ·
1 Parent(s): 9d10c33

Initial RoadBench release: BEV manifests + FPV images + 8 task labels + train/test splits

Browse files
README.md CHANGED
@@ -47,6 +47,11 @@ FPV images are real in-vehicle camera photographs (anonymized) and are **include
47
  > construction, freshness) from the image used at dataset creation time. The geographic extent and
48
  > alignment are exact; only the pixel content can drift with time. This is an inherent property of
49
  > the coordinate-based distribution approach.
 
 
 
 
 
50
 
51
  ## Directory layout
52
 
@@ -156,6 +161,23 @@ The script writes `<id>.png` (Task 1/2/3) or `<image_id>.png` (Task 4/5) into `-
156
  **clean** satellite crop; the reference line shown to models is drawn separately from each label's
157
  `pixel_line` (in the reconstructed-image coordinate frame).
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  ## Manifest schema
160
 
161
  JSON Lines, one record per BEV image. Only the fields needed to reconstruct the image are stored.
@@ -164,6 +186,9 @@ JSON Lines, one record per BEV image. Only the fields needed to reconstruct the
164
  (the WGS84 box to download), `crop_window` `{x0, y0, x1, y1}` (region to crop from the downloaded
165
  bbox tile, in bbox pixel coords).
166
  - **`task4_5.jsonl`**: `image_id`, `wgs84_bbox` (download the full bbox tile — no cropping).
 
 
 
167
 
168
  ## Label schema (`tasks/*/labels.jsonl`)
169
 
@@ -196,4 +221,4 @@ below (multiple letters = a lane allowing several directions):
196
 
197
  For example, `["B", "C", "CD"]` = a left-turn lane, a straight lane, and a straight+right-turn lane.
198
  `G` appears only in the FPV and cross-view designation tasks (5/7), matching the `variable` lane type
199
- used in the paper's MLLM prompt. `road_type` (Task 8) is `main` / `service`.
 
47
  > construction, freshness) from the image used at dataset creation time. The geographic extent and
48
  > alignment are exact; only the pixel content can drift with time. This is an inherent property of
49
  > the coordinate-based distribution approach.
50
+ >
51
+ > **Reference imagery date.** The build-time BEV imagery (and the `rgb_histogram` fingerprints in
52
+ > `bev_manifests/task1_2.jsonl`) correspond to **mid-2025 Google tiles** (acquired with the download
53
+ > pipeline developed on 2025-07-19). Use [`verify_imagery.py`](verify_imagery.py) to measure how
54
+ > much current tiles have drifted from this reference.
55
 
56
  ## Directory layout
57
 
 
161
  **clean** satellite crop; the reference line shown to models is drawn separately from each label's
162
  `pixel_line` (in the reconstructed-image coordinate frame).
163
 
164
+ ### Checking reconstructed imagery
165
+
166
+ Because Google updates its tiles over time, a reconstructed image may drift from the one used at
167
+ dataset-build time. For Task 1/2, each `bev_manifests/task1_2.jsonl` record carries an `rgb_histogram`
168
+ fingerprint of the build-time image; [`verify_imagery.py`](verify_imagery.py) compares your
169
+ reconstructed images against it:
170
+
171
+ ```bash
172
+ # after reconstructing Task 1/2 images into bev_images/task1_2/
173
+ python verify_imagery.py verify --manifest bev_manifests/task1_2.jsonl --image-dir bev_images/task1_2
174
+ ```
175
+
176
+ It prints cosine similarity stats (min/mean/median/max) and the 10 least-similar images. Rough guide:
177
+ `>= 0.95` faithful · `0.80–0.95` minor drift (season / imagery refresh) · `< 0.80` substantial drift —
178
+ re-check the crop window / coordinates. The fingerprint is resolution-independent (an L1-normalized
179
+ binned RGB histogram), so reference and reconstructed images need not share pixel dimensions.
180
+
181
  ## Manifest schema
182
 
183
  JSON Lines, one record per BEV image. Only the fields needed to reconstruct the image are stored.
 
186
  (the WGS84 box to download), `crop_window` `{x0, y0, x1, y1}` (region to crop from the downloaded
187
  bbox tile, in bbox pixel coords).
188
  - **`task4_5.jsonl`**: `image_id`, `wgs84_bbox` (download the full bbox tile — no cropping).
189
+ - **`rgb_histogram`** (Task 1/2 only): a compact fingerprint of the build-time image for drift
190
+ checking — base64 of little-endian uint16, 16 bins × 3 channels = 48 values, scaled by 65535
191
+ (see [Checking reconstructed imagery](#checking-reconstructed-imagery)).
192
 
193
  ## Label schema (`tasks/*/labels.jsonl`)
194
 
 
221
 
222
  For example, `["B", "C", "CD"]` = a left-turn lane, a straight lane, and a straight+right-turn lane.
223
  `G` appears only in the FPV and cross-view designation tasks (5/7), matching the `variable` lane type
224
+ used in the paper's MLLM prompt. `road_type` (Task 8) is `main` / `service`.
bev_manifests/task1_2.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
download_satellite.py CHANGED
@@ -49,7 +49,7 @@ class BoundingBox:
49
 
50
 
51
  class TileCalculator:
52
- """Web Mercator 瓦片计算(与原始 roadnetbenchmark.satellite 一致)。"""
53
  tile_size = 256
54
 
55
  @staticmethod
@@ -114,7 +114,7 @@ class GoogleEarthService:
114
 
115
 
116
  class Downloader:
117
- """复刻原始 SatelliteImageDownloader 的下载/拼接/裁剪流程(max_tiles=160)。"""
118
 
119
  def __init__(self, proxy: Optional[str] = None, max_concurrent: int = 10,
120
  cache_dir: str = "tile_cache", max_tiles: int = 160):
 
49
 
50
 
51
  class TileCalculator:
52
+ """Web Mercator 瓦片计算(标准 Web Mercator 投影)。"""
53
  tile_size = 256
54
 
55
  @staticmethod
 
114
 
115
 
116
  class Downloader:
117
+ """Google 卫星瓦片的下载/拼接/裁剪流程(max_tiles=160)。"""
118
 
119
  def __init__(self, proxy: Optional[str] = None, max_concurrent: int = 10,
120
  cache_dir: str = "tile_cache", max_tiles: int = 160):