MapMOS icon indicating copy to clipboard operation
MapMOS copied to clipboard

Memory Explosion during Evaluation of Ouster Test Sequence

Open MinChoi0129 opened this issue 1 year ago • 2 comments

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:

  1. Set up the environment with the HeLiMOS dataset and the trained model checkpoint.

  2. 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.

MinChoi0129 avatar Sep 11 '25 06:09 MinChoi0129

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.

benemer avatar Sep 11 '25 06:09 benemer

Thanks, it works perfectly.

MinChoi0129 avatar Sep 28 '25 14:09 MinChoi0129