Skip to main content

nuscenes-hacker

Project description

Nuscenes Hacker

nuscenes数据集搭配nuscenes-devkit使用非常便捷,但是因为nuscenes是已经固定的数据,所以nuscenes-devkit在设计时候没有考虑过拓展性问题,将很多数据集的信息硬编码在其中了,例如

  • 场景名称
  • 地图名称
  • 数据集划分
  • 传感器 channel 名称
  • 点云的数据格式(通道数)

所以当我们使用自己制作的nuscenes格式数据时候,就会遇到很多问题

如果直接对 nuscenes-devkit 进行修改,这样会破坏兼容性问题,很不优雅

所以我想,有没有一种方式可以"悄无声息"的对 nuscenes-devkit 进行修改呢?

答案是肯定的,这就是本项目的目的

本项目的目的是在悄咪咪的情况下对 nuscenes-devkit 进行修改,当使用完毕后,nuscenes-devkit 还是原来的样子,只是在运行时候,会使用我们自己的数据集,是不是像一个 Hacker 一样呢?

Install

Warning: 该项目只支持 python3.7 及以下版本(受限于numpy与nuscenes-devkit冲突)

pip3 install nuscenes-hacker

or

git clone https://github.com/windzu/nuscenes_hacker.git
cd nuscenes_hacker
pip3 install -e .
python -m pip install -e .

Usage

hack

基本用法

nuscenes-hacker hack [参数]

参数说明 必需参数

参数 类型 描述
--nuscenes-dataset-path string NuScenes 数据集的根目录路径

可选参数

参数 类型 描述
--conda-env-name string 指定需要替换的 conda 环境名称。如果不指定,则使用当前环境。
--lidar-channel string 指定使用的激光雷达通道名称,如果不指定,则不替换。例如:LIDAR_TOP
--camera-channels string 指定相机通道,多个通道用逗号分隔,如果不指定,则不替换。例如:CAM_FRONT,CAM_BACK
--pcd-dims int 指定点云的维度,如果不指定,则不替换。例如:45

restore

恢复 nuscenes-devkit 到原始状态

nuscenes-hacker restore

注意事项 路径检查:程序会检查 nuscenes-dataset-path 是否存在,如果不存在将报错并终止运行。

conda 环境:

如果指定了 conda-env-name,工具将尝试在该 conda 环境中找到 nuscenes 包并修改。 如果未指定,工具将使用当前环境中的 nuscenes 包。 兼容性问题:

此工具仅支持 Python 3.6 和 3.7,不支持 Python 3.8 及以上版本。 如果使用 NumPy 2.0+,可能会遇到兼容性问题,建议使用 NumPy 1.x 版本。 参数处理:

相机通道参数 (--camera-channels) 接受以逗号分隔的字符串,会被自动拆分为列表。 如果未指定某个可选参数,对应的功能将不会被替换或修改。 排错指南 如果遇到 "未找到 nuscenes 包" 的错误,请尝试以下解决方案:

确保已安装 nuscenes-devkit:pip install nuscenes-devkit 使用 --conda-env-name 参数指定正确的 conda 环境 检查 Python 版本是否为 3.6 或 3.7 如果使用 NumPy 2.0+,尝试降级到 NumPy 1.x:pip install numpy==1.24.4 支持和反馈 如有问题或建议,请访问 GitHub 仓库 或联系作者:windzu1@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nuscenes_hacker-0.0.5.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuscenes_hacker-0.0.5-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file nuscenes_hacker-0.0.5.tar.gz.

File metadata

  • Download URL: nuscenes_hacker-0.0.5.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for nuscenes_hacker-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6fe40dbc08a8f32f798de0ee5325f283336e519b1fbe2f1d7232f5a46e7e75ac
MD5 9eb77e39533f74fa5c4326c85a0b51cd
BLAKE2b-256 c8d1eb047c91de309372897e982d16a225d31d530a76f6ce1af345d429fabf6a

See more details on using hashes here.

File details

Details for the file nuscenes_hacker-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nuscenes_hacker-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d84bf5d4d2faa0df99cdcaf2fa0378e60b74447a106d4f9c40516e131040b029
MD5 02f486835919c6ab4873489d4a836992
BLAKE2b-256 24cbf05821c6d812140fe17c689f6f80465422290abca6e43f0aab6b863d58a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page