PS D:\code\mmdetection3d\mmdetection3d-main> python demo/pcd_demo.py demo/data/kitti/000008.bin configs/pointpillars/pointpillars_hv_secfpn_8xb6-160e_kitti-3d-car.py D:\gmy\code\mmdetection3d\mmdetection3d-main\hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth --show
07/11 23:57:06 - mmengine - WARNING - Display device not found. `--show` is forced to False
C:\Users\SARI-IOT\anaconda3\envs\detectron2\lib\site-packages\mmdet3d\models\dense_heads\anchor3d_head.py:94: UserWarning: dir_offset and dir_limit_offset will be depressed and be incorporated into box coder in the future
warnings.warn(
Loads checkpoint by local backend from path: D:\gmy\code\mmdetection3d\mmdetection3d-main\hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth
07/11 23:57:07 - mmengine - WARNING - Failed to search registry with scope "mmdet3d" in the "function" registry tree. As a workaround, the current "function" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmdet3d" is a correct scope, or whether the registry is initialized.
C:\Users\anaconda3\envs\xxxx\lib\site-packages\mmengine\visualization\visualizer.py:196: UserWarning: Failed to add <class 'mmengine.visualization.vis_backend.LocalVisBackend'>, please provide the `save_dir` argument.
warnings.warn(f'Failed to add {vis_backend.__class__}, '
C:\Users\anaconda3\envs\xxx\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered
internally at C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\TensorShape.cpp:3484.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
[Open3D WARNING] invalid color in PaintUniformColor, clipping to [0, 1]
Inference ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
07/11 23:57:09 - mmengine - INFO - results have been saved at outputs
就是在代码最前面加上:
import os
os.environ['DISPLAY'] = '1'