Memory Explosion during Evaluation of Ouster Test Sequence
Bug Description
When running the evaluation pipeline (mapmos_pipeline) on the Ouster/test.txt sequence from the HeLiMOS dataset, a critical memory issue occurs, leading to the process being killed. The process runs smoothly and quickly for the initial frames but experiences a sudden slowdown and subsequent memory explosion at a specific point in the sequence.
To Reproduce
Steps to reproduce the behavior:
-
Set up the environment with the HeLiMOS dataset and the trained model checkpoint.
-
Run the evaluation using the following shell script:
TEST_TARGET=Ouster CKPT_FILEPATH=/path/to/your/checkpoint.ckpt HELIMOS_PATH=/path/to/your/HeLiMOS_dataset mapmos_pipeline ${CKPT_FILEPATH} ${HELIMOS_PATH} --dataloader helimos -s ${TEST_TARGET}/test.txt
Expected Behavior
The evaluation process should complete for the entire Ouster test sequence without excessive memory consumption or being terminated.
Actual Behavior
- The pipeline processes frames efficiently up to approximately frame 998.
- Around frame 998, the processing speed drastically decreases.
- Monitoring system resources reveals a sharp decline in CPU usage and a simultaneous, massive spike in RAM usage.
- The process is consistently killed by the system at exactly frame 1001.
- The terminal displays the following error message:
Killed - This issue was reproduced multiple times with the exact same failure point.
Environment
- RAM: 64GB
- GPU: NVIDIA RTX 5090
- Dataset: HeLiMOS (Ouster test sequence)
Additional Context
The consistent failure at a specific frame (1001) suggests a potential memory leak that accumulates over time or an issue with handling specific data within that particular frame or the frames immediately preceding it. However, there are no such issues with the test.txt sequences for Velodyne, Aeva, and Avia.
Hi, please use the config provided here: https://github.com/PRBonn/MapMOS/blob/main/config/helimos/inference.yaml
This limits the range of the volumetric belief map for exactly that reason. I will update the Readme accordingly.
Thanks, it works perfectly.