Comments (4)
@magical1998 pls provide a working code snippet to reproduce your issue
from nuscenes-devkit.
import numpy as np
调用函数,替换'your_file.bin'为你的文件路径
file_path='I:/data/sets/nuscenes/samples/LIDAR_TOP/'
label_path='I:/data/sets/nuscenes/lidarseg/v1.0-trainval/'
points=np.fromfile(file_path+'n015-2018-07-24-10-42-41+0800__LIDAR_TOP__1532400339698223.pcd.bin',dtype=np.float32)
labels=np.fromfile(label_path+'8b31aa5cac3846a6a197c507523926f9_lidarseg.bin',dtype=np.float32)
print(labels)
from nuscenes-devkit.
Hello, the point cloud file and the label file are the corresponding files found through the .json file. If the point cloud file has one point for every four digits, the final number of point clouds will still be four times the number of labels. I am not sure. The reasons, I hope to receive your answer
from nuscenes-devkit.
@magical1998 I'm afraid I cannot reproduce your error:
import os.path as osp
import numpy as np
from nuscenes.utils.data_classes import LidarPointCloud
nusc_data_root = '/data/sets/nuscenes'
# Load pointcloud.
pcl_path = osp.join(nusc_data_root, 'samples/LIDAR_TOP/n015-2018-07-24-10-42-41+0800__LIDAR_TOP__1532400339698223.pcd.bin')
pc = LidarPointCloud.from_file(pcl_path)
points = pc.points.T
print(points.shape) # (34752, 4)
# Load labels.
lidarseg_labels_filename = osp.join(nusc_data_root, 'lidarseg/v1.0-trainval/8b31aa5cac3846a6a197c507523926f9_lidarseg.bin')
points_label = np.fromfile(lidarseg_labels_filename, dtype=np.uint8)
print(points_label.shape) # (34752,)
assert len(points) == len(points_label)
from nuscenes-devkit.
Related Issues (20)
- Memory Requirement - Reg HOT 3
- Coordinate system of radar point cloud and velocity information? HOT 1
- About coordinate and box_velocity HOT 4
- About sample['anns'] HOT 3
- about render_egoposes_on_map HOT 4
- translation matrix for camera sensors is with respect to the center of the rear axle? HOT 2
- How the point cloud semantically segmented file is encoded? HOT 1
- Problem with NuScenes format to KITTI format HOT 1
- Conert radar to lidar problems HOT 3
- Is 1000hz imu data available? HOT 1
- How to create and split NuScenes subsets into trainval and test like v1.0 HOT 4
- Is there C++ version to read the data HOT 1
- Rotation problem of point cloud object detection HOT 2
- Alignment of multi-frame radar dynamic object data HOT 5
- When v1.1.13 will be released in PyPI ? HOT 2
- pip install failed HOT 5
- nuScenes-lidar Annotation file HOT 1
- Navigation. How can I get waypoints from (x1,y1) to (x2 y2) in nuscenes map HOT 5
- Cannot download anything HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuscenes-devkit.