Verammm commited on
Commit
e0c84af
·
verified ·
1 Parent(s): 90babd5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +120 -0
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 3D Object Detection Dataset
2
+
3
+ ## Overview
4
+
5
+ - **Source:** ROS2 bags → LakeFS (astraldb + ros2bags)
6
+ - **Data type:** LiDAR (merged point clouds) + Camera (RGB)
7
+ - **Size:** 245.7 GB, 1,194 ZIP archives
8
+ - **Files:** 61,480 PCD + 3,619 JPG
9
+ - **Annotations:** 735,483 3D bounding boxes
10
+ - **Sessions:** 101 unique bag_id (ROS2 bag sessions)
11
+ - **Camera resolution:** 2880×1860
12
+
13
+ ## Structure
14
+
15
+ ```
16
+ 3d objects detection/
17
+ archive.zip # All data archives (1194 zips)
18
+ merged_result.parquet # Main annotation table
19
+ tf.parquet # Transform tree
20
+ camera_info.parquet # Camera calibration
21
+ archive_index.parquet # Archive lookup index
22
+
23
+ archive/
24
+ data_0000.zip
25
+ data_0001.zip
26
+ ...
27
+ data_1193.zip
28
+ pcd/{uuid}.pcd # Point cloud
29
+ jpg/{uuid}.jpg # Camera frame (if exists, 2880×1860)
30
+ ```
31
+
32
+ Each archive `data_NNNN.zip` is ≈200 MB. Files inside are from a single temporal segment.
33
+
34
+ ## Tables
35
+
36
+ ### `merged_result.parquet`
37
+ Main annotation table (735,483 rows).
38
+
39
+ | Column | Type | Description |
40
+ |---|---|---|
41
+ | `frame_id` | `str` | Frame UUID |
42
+ | `label` | `str` | Object class (car, pedestrian, cyclist, truck, bus, ...) |
43
+ | `data` | `list[float]` | 3D bounding box: [x, y, z, lx, ly, lz, roll, pitch, yaw] |
44
+ | `main_timestamp` | `int` | Timestamp in nanoseconds |
45
+ | `bag_id` | `str` | ROS2 bag session UUID |
46
+ | `archive` | `str` | ZIP archive name (`data_NNNN.zip`) |
47
+ | `pcd_path` | `str` | Path inside archive (`pcd/{uuid}.pcd`) |
48
+ | `jpg_path` | `str` | Path inside archive (`jpg/{uuid}.jpg`) or `null` |
49
+
50
+ ### `tf.parquet`
51
+ Transform tree (976,208 rows). Use for converting between coordinate frames.
52
+
53
+ | Column | Description |
54
+ |---|---|
55
+ | `timestamp` | Nanoseconds |
56
+ | `from_frame`, `to_frame` | Coordinate frames |
57
+ | `tx, ty, tz, qx, qy, qz, qw` | Translation + rotation (quaternion) |
58
+
59
+ ### `camera_info.parquet`
60
+ Camera calibration (61,480 rows). Use for projecting 3D boxes onto images.
61
+
62
+ | Column | Description |
63
+ |---|---|
64
+ | `_timestamp` | Nanoseconds |
65
+ | `height`, `width` | 1860×2880 |
66
+ | `k` | Intrinsic matrix (3×3) |
67
+ | `d` | Distortion coefficients |
68
+ | `r` | Rectification matrix |
69
+ | `p` | Projection matrix |
70
+
71
+ ### `archive_index.parquet`
72
+ Index for O(1) lookup of which archive contains which data.
73
+
74
+ | Column | Description |
75
+ |---|---|
76
+ | `archive` | ZIP name |
77
+ | `size_mb` | Archive size |
78
+ | `file_count`, `pcd_count`, `jpg_count` | File counts |
79
+ | `bag_ids` | Session IDs in archive |
80
+ | `min_timestamp`, `max_timestamp` | Temporal range |
81
+
82
+ ## Data Quality
83
+
84
+ - **Black frames removed:** 404 JPGs with brightness < 30 (camera glitch) were removed from archives `data_0902`–`data_0910`
85
+ - **PCD validation:** All 61,480 PCD files passed header validation (VERSION 0.7, FIELDS, POINTS > 0)
86
+ - **NaN in `jpg_path`:** 720,487 rows have no camera frame (lidar-only frames)
87
+
88
+ ## Usage
89
+
90
+ ```python
91
+ import pandas as pd
92
+ import zipfile
93
+
94
+ # Load annotations
95
+ df = pd.read_parquet("merged_result.parquet")
96
+
97
+ # Read a specific point cloud
98
+ row = df.iloc[0]
99
+ with zipfile.ZipFile(f"archive/{row['archive']}") as z:
100
+ pcd_data = z.read(row['pcd_path']) # bytes → parse as PCD
101
+ if row['jpg_path'] is not None:
102
+ jpg_data = z.read(row['jpg_path']) # bytes → decode with PIL
103
+
104
+ # Load transforms
105
+ tf = pd.read_parquet("tf.parquet")
106
+ # Filter by timestamp frame for coordinate conversion
107
+
108
+ # Load camera calibration
109
+ cam = pd.read_parquet("camera_info.parquet")
110
+ ```
111
+
112
+ ## Coordinate System
113
+
114
+ - Bounding boxes are in `base_link` (LiDAR) coordinate frame
115
+ - Use `tf.parquet` to convert between `base_link`, `gps`, and other frames
116
+ - Camera intrinsics and extrinsics in `camera_info.parquet`
117
+
118
+ ## License
119
+
120
+ Proprietary. All rights reserved.