Bug in data_classes?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- numpy, python
调研方向
从 data_classes.py 中 LidarPointCloud 和 PointCloud 的实现开始,然后检查 scene 21 的 .bin 文件是如何加载的。将 reshape 的假设与针对长度不能被五整除的文件所提供的替代处理方式进行比较。完成标准是:受影响的文件能够以正确的点云值加载,同时不破坏现有格式。
由索引模型根据 Issue 内容生成。
描述
I believe that there is a small flaw in the data_classes.py file in the LidarPointCloud class (PointCloud). Because not all files that I tried to get have the same format for the reshape ((- - 1, 5)) [:,: cls.nbr_dims ()], that is, points = scan.reshape ((- -, 5) ) [:,: cls.nbr_dims ()]. I encountered such a problem in scene 21.
So, I replaced the LidarPointCloud (PointCloud) class with:
class LidarPointCloud(PointCloud):
@staticmethod
def nbr_dims() -> int:
"""Returns the number of dimensions.
Returns: Number of dimensions.
"""
return 4
@classmethod
def from_file(cls, file_name: Path) -> "LidarPointCloud":
"""Loads LIDAR data from binary numpy format. Data is stored as (x, y, z, intensity, ring index).
Args:
file_name: Path of the pointcloud file on disk.
Returns: LidarPointCloud instance (x, y, z, intensity).
"""
assert file_name.suffix == ".bin", "Unsupported filetype {}".format(file_name)
scan = np.fromfile(str(file_name), dtype=np.float32)
if len(scan) % 5 == 0:
points = scan.reshape((-1, 5))[:, : cls.nbr_dims()]
else:
scan0=[]
scan1=[]
scan2=[]
scan3=[]
scan4=[]
scan_pontos = []
scan_pontos = scan.reshape((-1, 1))
dv = 0
for divisao in range(math.floor(len(scan)/5)):
if (dv+4)<=len(scan):
scan0.append(scan_pontos[dv])
scan1.append(scan_pontos[dv+1])
scan2.append(scan_pontos[dv+2])
scan3.append(scan_pontos[dv+3])
scan4.append(scan_pontos[dv+4])
dv = dv+5
points = np.concatenate((scan0,scan1,scan2,scan3),axis=1)
return cls(points.T)
I I believe that now I got the correct point cloud values.
- 主要语言
- Jupyter Notebook
- 星标
- 390
- 派生
- 99
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lyft/nuscenes-devkit 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 20/100
lyft/nuscenes-devkit#106 ·
-
难度 2/5 1-3 小时 新手友好度 20/100
lyft/nuscenes-devkit#105 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
lyft/nuscenes-devkit#104 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
lyft/nuscenes-devkit#103 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 48/100
lyft/nuscenes-devkit#99 ·
查看 lyft/nuscenes-devkit 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
vahinitech/20factor-analyser#140 ·
维护者通常 1 天内回复
-
shadow variable未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
Transparent images become black: decode_base64_to_image / encode_image_to_base64 drop alpha可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
open-compass/VLMEvalKit#1752 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
flatironinstitute/CaImAn#1589 · 1 条评论 ·
-
Avoid int64 intermediate tensors in Boolean mask overlap postprocessing可能已有人在做 @nyavana 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
facebookresearch/sam3#635 ·