Sentdex / Carla-RL

Reinforcement Learning codebase for self-driving car in Carla
MIT License
368 stars 95 forks source link

Error "Unexpected CUDA error: out of memory" when running train.py #20

Open Zhang-Xiaoxue opened 3 years ago

Zhang-Xiaoxue commented 3 years ago

When I run the code train.py, the following error code is displayed:

image

the nvidia-smi results are:

image

My tensorflow version: 1.15.0. Carla version: 0.9.11

thoithoi58 commented 3 years ago

This repo only work with 0.9.5, so give it a try

Zhang-Xiaoxue commented 3 years ago

This repo only work with 0.9.5, so give it a try

@thoithoi58 I tried 0.9.5. The carla 0.9.5 requires that the Python version is 3.5. But when I use python=3.5, there are many errors appearing. For example, it cannot import dataclasses.

Could you help me?

thoithoi58 commented 3 years ago

This repo only work with 0.9.5, so give it a try

@thoithoi58 I tried 0.9.5. The carla 0.9.5 requires that the Python version is 3.5. But when I use python=3.5, there are many errors appearing. For example, it cannot import dataclasses.

Could you help me?

did you use the pretrained carla? try to make it manually, i use the windows pretrained carla which support python 3.7, you can try it