opendilab / LMDrive

[CVPR 2024] LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Apache License 2.0
526 stars 48 forks source link

pygame 单独demo可以通,但是跟lmdrive配起来就会挂 #29

Open prograguo opened 3 months ago

prograguo commented 3 months ago

代码和显示图如下 Screenshot from 2024-03-04 14-59-20

prograguo commented 3 months ago

文字bug是: Fatal Python error: Segmentation fault

Thread 0x00007f86dc7ff640 (most recent call first): File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 300 in wait File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 552 in wait File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 1156 in run File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 917 in _bootstrap_inner File "/home/jss/anaconda3/envs/lmdrive1/lib/python3.7/threading.py", line 885 in _bootstrap

Current thread 0x00007f893e42e740 (most recent call first): File "leaderboard/team_code/lmdriver_agent.py", line 84 in init File "leaderboard/team_code/lmdriver_agent.py", line 186 in setup File "/home/jss/Documents/LMDrive/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 46 in init File "leaderboard/leaderboard/leaderboard_evaluator.py", line 280 in _load_and_run_scenario File "leaderboard/leaderboard/leaderboard_evaluator.py", line 426 in run File "leaderboard/leaderboard/leaderboard_evaluator.py", line 494 in main File "leaderboard/leaderboard/leaderboard_evaluator.py", line 507 in ./leaderboard/scripts/run_evaluation.sh: line 48: 14321 Segmentation fault (core dumped)

deepcs233 commented 3 months ago

Hi! Sorry for the late reply, I have been very busy recently. The error you're experiencing seems to originate from the GUI. You can try to comment on the code related to the GUI or change the version of the pygame. The GUI is not the necessary part for running the project.

timbrist commented 3 months ago

This problem is caused by ~\LMDrive\leaderboard\team_code\lmdriver_agent.py

        self._display = pygame.display.set_mode(
            (self._width, self._height), pygame.HWSURFACE | pygame.DOUBLEBUF
        )

You probably need to download sudo apt-get install libsdl2-dev

see the solution in pygame

Ubuntu上运行就会出现pygame的崩溃,和LMDrive没关系。我是先把这行代码注释掉,等能够全部运行了在出来pygame的问题。

haopenghui commented 3 months ago

@prograguo 你好我想问一下vision_decoder的权重是如何获取的,谢谢

dingli-dean commented 3 months ago

This problem is caused by ~\LMDrive\leaderboard\team_code\lmdriver_agent.py

        self._display = pygame.display.set_mode(
            (self._width, self._height), pygame.HWSURFACE | pygame.DOUBLEBUF
        )

You probably need to download sudo apt-get install libsdl2-dev

see the solution in pygame

Ubuntu上运行就会出现pygame的崩溃,和LMDrive没关系。我是先把这行代码注释掉,等能够全部运行了在出来pygame的问题。

hello,请问保持 self._display 不注释,这个 issue 有解决吗?