https://zhuanlan.zhihu.com/p/510712104
cd /apollo/
./scripts/bootstrap.sh
cyber_launch start /apollo/modules/transform/launch/static_transform.launch
cyber_launch start modules/drivers/tools/image_decompress/launch/image_decompress.launch
修改配置文件第10行和11行的内容
vim modules/perception/production/conf/perception/camera/fusion_camera_detection_component.pb.txt
为:
output_final_obstacles : true
output_obstacles_channel_name : "/apollo/perception/obstacles"
启动模块
mainboard -d modules/perception/production/dag/dag_streaming_perception_camera.dag
tail -f /apollo/data/log/mainboard.INFO
watch -n 0.1 nvidia-smi
可以看一下之前显存是怎么变化的
cyber_recorder play -f /apollo/data/bag/demo_sensor_data_for_vision.record --loop
激光雷达要参照感知测试文档:
./scripts/bootstrap.sh
cyber_launch start /apollo/modules/transform/launch/static_transform.launch
--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2
--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2 :
#--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2
config_file_path: "/apollo/modules/perception/production/conf/perception/lidar/velodyne64_detection_conf.pb.txt"
flag_file_path: "/apollo/modules/perception/production/conf/perception/perception_common.flag"
readers {
channel: "/apollo/sensor/velodyne64/compensator/PointCloud2"
mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_lidar.dag
cyber_launch start /apollo/modules/perception/production/launch/perception_lidar.launch
停止该节点是时候:cyber_launch stop /apollo/modules/perception/production/launch/perception_lidar.launch
tail -f /apollo/data/log/mainboard.INFO
watch -n 0.1 nvidia-sm
i
cyber_recorder play -f /apollo/data/bag/demo_sensor_data_for_vision.record --loop
或者:
cyber_recorder play -f /apollo/data/bag/sensor_rgb.record -k /perception/vehicle/obstacles /apollo/perception/obstacles /apollo/perception/traffic_light /apollo/prediction
cyber_launch stop
/apollo/data/log/mainboard.log.INFO.时间
RuntimeError: CUDA out of memory. Tried to allocate 108.00 MiB (GPU 0; 7.93 GiB total capacity; 1.90 GiB already allocated; 66.56 MiB free; 1.95 GiB reserved in total by PyTorch)
[perception_lidar]
看一下节点订阅关系,看一下GPU的占有率.
重启之后,GPU没有报问题。