-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] 可视化文档draw_bboxes_3d测试报错 #2828
Comments
请问有解决吗,没有用docker配置环境。 |
同问 |
windows平台 一样的错误,解决了吗?大佬 |
I got the same issue when running the code in the documentation. Any hint to solve this problem?
|
Hello, did you solve the problem? |
TypeError: paint_uniform_color(): incompatible function arguments. 按照上面的描述,报错的代码应该是这个函数调用时传递的参数问题 传入的color应该是float64的numpy数组,形状是[3,1],而draw_bboxes_3d的bbox_color参数默认值是一个Tuple[float] = (0, 1, 0),但是这里bbox_color[i]经过索引后形状不再是[3,1]了,我把两处bbox_color[i]改成bbox_color后可以显示点云和bounding box,就是颜色有点奇怪 |
visualizer.draw_bboxes_3d(bboxes_3d,(255,0,0))
|
I have the same problem, It is bug |
AttributeError: 'Det3DLocalVisualizer' object has no attribute 'view_control' |
import os |
Branch
main branch https://mmdetection3d.readthedocs.io/en/latest/
📚 The doc issue
可视化文档draw_bboxes_3d测试报错。下面是报错
Traceback (most recent call last):
File "/home/xyx/project/mmdetection3d/results/可视化demo.py", line 16, in
visualizer.draw_bboxes_3d(bboxes_3d)
File "/home/xyx/project/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 317, in draw_bboxes_3d
line_set.paint_uniform_color(np.array(bbox_color[i]) / 255.)
TypeError: paint_uniform_color(): incompatible function arguments. The following argument types are supported:
1. (self: open3d.cuda.pybind.geometry.LineSet, color: numpy.ndarray[numpy.float64[3, 1]]) -> open3d.cuda.pybind.geometry.LineSet
Invoked with: LineSet with 12 lines., 0.0
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: