AR-X commited on
Commit
45d9210
·
verified ·
1 Parent(s): d1c5c27

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +80 -3
  2. annotations.yaml +157 -0
  3. read_data.py +23 -0
README.md CHANGED
@@ -1,3 +1,80 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SynLiDAR Dataset
2
+
3
+ ## Overview
4
+
5
+ SynLiDAR is a synthetic LiDAR dataset designed for autonomous driving research.
6
+ It contains high-quality simulated point cloud sequences and corresponding semantic annotations.
7
+
8
+ The dataset provides two variants:
9
+ - FullDataset – complete version for large-scale experiments
10
+ - SubDataset – smaller version suitable for prototyping, debugging, and benchmarking
11
+
12
+ ## Dataset Structure
13
+ ```
14
+ SynLiDAR/
15
+ ├── FullDataset/
16
+ │ ├── sequences/
17
+ │ │ ├── 00.zip
18
+ │ │ ├── ...
19
+ │ │ └── 12.zip
20
+ │ └── readme.txt
21
+
22
+ ├── SubDataset/
23
+ │ ├── sequences/
24
+ │ │ ├── 00.zip
25
+ │ │ ├── ...
26
+ │ │ └── 12.zip
27
+ │ └── readme.txt
28
+
29
+ ├── annotations.yaml
30
+ ├── read_data.py
31
+ └── README.md
32
+ ```
33
+
34
+ ## Contents
35
+ - sequences/*.zip — Each zip contains LiDAR frames
36
+ - annotations.yaml — Semantic categories and their mappings
37
+ - read_data.py — Example Python loader
38
+ - readme.txt — Additional notes from the original dataset
39
+
40
+ ## License
41
+ The SynLiDAR dataset in this repository is released under the MIT License.
42
+ ```
43
+ MIT License
44
+
45
+ Copyright (c) 2025 Aoran XIAO
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining a copy
48
+ of this software and associated documentation files (the "Software"), to deal
49
+ in the Software without restriction, including without limitation the rights
50
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
+ copies of the Software, and to permit persons to whom the Software is
52
+ furnished to do so, subject to the following conditions:
53
+
54
+ The above copyright notice and this permission notice shall be included in all
55
+ copies or substantial portions of the Software.
56
+
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
+ SOFTWARE.
64
+ ```
65
+
66
+ ⚠️ **Disclaimer**: This dataset is intended for research and educational usage.
67
+ Make sure to respect local regulations when training or deploying autonomous driving systems.
68
+
69
+ ## Citation
70
+ ```
71
+ @inproceedings{xiao2022transfer,
72
+ title={Transfer learning from synthetic to real lidar point cloud for semantic segmentation},
73
+ author={Xiao, Aoran and Huang, Jiaxing and Guan, Dayan and Zhan, Fangneng and Lu, Shijian},
74
+ booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
75
+ volume={36},
76
+ number={3},
77
+ pages={2795--2803},
78
+ year={2022}
79
+ }
80
+ ```
annotations.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is covered by the LICENSE file in the root of this project.
2
+ labels:
3
+ 0 : "unlabeled"
4
+ 1: "car"
5
+ 2: "pick-up"
6
+ 3: "truck"
7
+ 4: "bus"
8
+ 5: "bicycle"
9
+ 6: "motorcycle"
10
+ 7: "other-vehicle"
11
+ 8: "road"
12
+ 9: "sidewalk"
13
+ 10: "parking"
14
+ 11: "other-ground"
15
+ 12: "female"
16
+ 13: "male"
17
+ 14: "kid"
18
+ 15: "crowd" # multiple person that are very close
19
+ 16: "bicyclist"
20
+ 17: "motorcyclist"
21
+ 18: "building"
22
+ 19: "other-structure"
23
+ 20: "vegetation"
24
+ 21: "trunk"
25
+ 22: "terrain"
26
+ 23: "traffic-sign"
27
+ 24: "pole"
28
+ 25: "traffic-cone"
29
+ 26: "fence"
30
+ 27: "garbage-can"
31
+ 28: "electric-box"
32
+ 29: "table"
33
+ 30: "chair"
34
+ 31: "bench"
35
+ 32: "other-object"
36
+ color_map: # bgr
37
+ 0 : [0, 0, 0]
38
+ 1 : [0, 0, 255]
39
+ 2: [245, 150, 100]
40
+ 3: [245, 230, 100]
41
+ 4: [250, 80, 100]
42
+ 5: [150, 60, 30]
43
+ 6: [255, 0, 0]
44
+ 7: [180, 30, 80]
45
+ 8: [255, 0, 0]
46
+ 9: [30, 30, 255]
47
+ 10: [200, 40, 255]
48
+ 11: [90, 30, 150]
49
+ 12: [255, 0, 255]
50
+ 13: [255, 150, 255]
51
+ 14: [75, 0, 75]
52
+ 15: [75, 0, 175]
53
+ 16: [0, 200, 255]
54
+ 17: [50, 120, 255]
55
+ 18: [0, 150, 255]
56
+ 19: [170, 255, 150]
57
+ 20: [0, 175, 0]
58
+ 21: [0, 60, 135]
59
+ 22: [80, 240, 150]
60
+ 23: [150, 240, 255]
61
+ 24: [0, 0, 255]
62
+ 25: [255, 255, 50]
63
+ 26: [245, 150, 100]
64
+ 27: [255, 0, 0]
65
+ 28: [200, 40, 255]
66
+ 29: [30, 30, 255]
67
+ 30: [90, 30, 150]
68
+ 31: [250, 80, 100]
69
+ 32: [180, 30, 80]
70
+ # An example of class mapping from synlidar to semantickitti,
71
+ # classes that are indistinguishable from single scan or inconsistent in
72
+ # ground truth are mapped to their closest equivalent.
73
+ map_2_semantickitti:
74
+ 0: 0 # "unlabeled"
75
+ 1: 1 # "car"
76
+ 2: 4 # "pick-up"
77
+ 3: 4 # "truck"
78
+ 4: 5 # "bus"
79
+ 5: 2 # "bicycle"
80
+ 6: 3 # "motorcycle"
81
+ 7: 5 # "other-vehicle"
82
+ 8: 9 # "road"
83
+ 9: 11 # "sidewalk"
84
+ 10: 10 # "parking"
85
+ 11: 12 # "other-ground"
86
+ 12: 6 # "female"
87
+ 13: 6 # "male"
88
+ 14: 6 # "kid"
89
+ 15: 6 # "crowd"
90
+ 16: 7 # "bicyclist"
91
+ 17: 8 # "motorcyclist"
92
+ 18: 13 # "building"
93
+ 19: 0 # "other-structure"
94
+ 20: 15 # "vegetation"
95
+ 21: 16 # "trunk"
96
+ 22: 17 # "terrain"
97
+ 23: 19 # "traffic-sign"
98
+ 24: 18 # "pole"
99
+ 25: 0 # "traffic-cone"
100
+ 26: 14 # "fence"
101
+ 27: 0 # "garbage-can"
102
+ 28: 0 # "electric-box"
103
+ 29: 0 # "table"
104
+ 30: 0 # "chair"
105
+ 31: 0 # "bench"
106
+ 32: 0 # "other-object"
107
+ # An example of class mapping from synlidar to semanticposs,
108
+ # classes that are indistinguishable from single scan or inconsistent in
109
+ # ground truth are mapped to their closest equivalent.
110
+ map_2_semanticposs:
111
+ 0: 255 # "unlabeled"
112
+ 1: 2 # "car"
113
+ 2: 2
114
+ 3: 2
115
+ 4: 2
116
+ 5: 11 # "bike"
117
+ 6: 11
118
+ 7: 255
119
+ 8: 12 # "ground"
120
+ 9: 12
121
+ 10: 12
122
+ 11: 12
123
+ 12: 0 # "person"
124
+ 13: 0
125
+ 14: 0
126
+ 15: 0
127
+ 16: 1 # "rider"
128
+ 17: 1
129
+ 18: 8 # "building"
130
+ 19: 255
131
+ 20: 4 # "plant"
132
+ 21: 3 # "trunk"
133
+ 22: 4
134
+ 23: 5 # "traffic-sign"
135
+ 24: 6 # "pole"
136
+ 25: 9 # "cone/stone"
137
+ 26: 10 # "fence"
138
+ 27: 7 # "trashcan"
139
+ 28: 255
140
+ 29: 255
141
+ 30: 255
142
+ 31: 255
143
+ 32: 255
144
+ sequences: # sequence numbers
145
+ - 00
146
+ - 01
147
+ - 02
148
+ - 03
149
+ - 04
150
+ - 05
151
+ - 06
152
+ - 07
153
+ - 08
154
+ - 09
155
+ - 10
156
+ - 11
157
+ - 12
read_data.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import glob
3
+
4
+ def read_points(path):
5
+ scan = np.fromfile(path, dtype=np.float32)
6
+ scan = scan.reshape((-1, 4)) # [x,y,z,intensity]
7
+ return scan
8
+
9
+ def read_label(path):
10
+ label = np.fromfile(path, dtype=np.uint32)
11
+ label = label.reshape((-1))
12
+ return label
13
+
14
+ if __name__ == '__main__':
15
+ files = glob.glob('./*/velodyne/*.bin')
16
+
17
+ for f_path in files:
18
+ scan = read_points(f_path)
19
+
20
+ label_path = f_path.replace('velodyne', 'labels').replace('bin', 'label')
21
+ labels = read_label(label_path)
22
+
23
+ assert scan.shape[0] == labels.shape[0]