禁用mmdetection3d visualizer
时间: 2023-09-23 21:11:30 浏览: 152
您可以通过注释掉 mmdet3d/tools/visualizer.py 文件中的代码来禁用 mmdetection3d visualizer。具体来说,您需要注释掉以下代码块:
```
from .visualizer import Visualizer
def show_result(points,
result,
dataset,
score_thr=0.3,
out_dir=None,
show=False,
snapshot=False,
iteration=None,
palette=None):
...
visualizer = Visualizer(dataset=dataset, **kwargs)
visualizer.visualize(points, result, out_dir, show, snapshot, iteration, palette)
```
将其改为:
```
# from .visualizer import Visualizer
def show_result(points,
result,
dataset,
score_thr=0.3,
out_dir=None,
show=False,
snapshot=False,
iteration=None,
palette=None):
...
# visualizer = Visualizer(dataset=dataset, **kwargs)
# visualizer.visualize(points, result, out_dir, show, snapshot, iteration, palette)
```
这样就禁用了 mmdetection3d visualizer。
阅读全文