DriveBench icon indicating copy to clipboard operation
DriveBench copied to clipboard

Issue: Ray Library Fails to Handle Irregular Paths with Missing Views

Open curryqka opened this issue 9 months ago • 2 comments

Description

The Ray library is unable to handle irregular paths that contain missing views (e.g., six-view paths with missing perspectives). This results in a runtime error during processing, specifically when the image_paths variable is None, causing a TypeError in the replace_system_prompt function.

Error Details

Exception has occurred: RayTaskError(UserCodeException)
TypeError: argument of type 'NoneType' is not iterable

Stack Trace

ray::MapBatches(LLMPredictor)()
  File "/root/miniconda3/lib/python3.10/site-packages/ray/data/_internal/execution/util.py", line 78, in __call__
    return future.result()
  File "/high_perf_store/mlinfra-vepfs/wangjinghui/drive-bench/inference/llava1.5.py", line 73, in __call__
    system_prompts[idx] = replace_system_prompt(system_prompts[idx], image_paths)
  File "/high_perf_store/mlinfra-vepfs/wangjinghui/drive-bench/inference/utils.py", line 34, in replace_system_prompt
    if "nuscenes" in path:
TypeError: argument of type 'NoneType' is not iterable

curryqka avatar Apr 07 '25 08:04 curryqka

Hi @Daniel-xsy, please take a look at this issue, thanks!

ldkong1205 avatar Apr 12 '25 23:04 ldkong1205

Same problem.

DrXuQian avatar Apr 14 '25 03:04 DrXuQian