Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run the program successfully #20

Closed
12kobe opened this issue Sep 8, 2022 · 7 comments
Closed

I can't run the program successfully #20

12kobe opened this issue Sep 8, 2022 · 7 comments

Comments

@12kobe
Copy link

12kobe commented Sep 8, 2022

Hello, I am a novice, I spent a lot of time trying to run your program again, after solving many problems, I can't solve this problem now, could you please help me to see how to solve it? Thank you very much. I really want to run this program successfully!
1662629014(1)

@Luca96
Copy link
Owner

Luca96 commented Sep 8, 2022

Hi, it can be due to the version of OpenAI gym try installing version 0.22 or older.

Let me know if the issue still occurs

@12kobe
Copy link
Author

12kobe commented Sep 8, 2022

Hi, it can be due to the version of OpenAI gym try installing version 0.22 or older.

Let me know if the issue still occurs

1662645041(1)

Hello, thank you very much for your timely answer, which is very important for me as I am eager to solve the problem. Just now I checked the version of the GYM in my virtual environment, which is already 0.26.0 version. So I guess it may not be the version of GYM!Can you see the picture? I don't know why uploading pictures doesn't work

@Luca96
Copy link
Owner

Luca96 commented Sep 10, 2022

Yes I can see the picture, and in fact your version of gym is newer! Try installing an older one, e.g pip install gym==0.22.0, and see if the error is still there

@12kobe
Copy link
Author

12kobe commented Sep 11, 2022

Yes I can see the picture, and in fact your version of gym is newer! Try installing an older one, e.g pip install gym==0.22.0, and see if the error is still there

Hello, thank you very much for your answer. I have successfully run your program. This is the first program about reinforcement learning that I have successfully reproduced. I am very happy. Thank you again! In addition, I have a few small questions to ask you. First, I find that the frame number of the picture is very low, which leads to the image of pyGame's camera being particularly blurred, and the image of Carla is also very blurred. Is there any way to make it clearer? Second, I found that Carla and pygame are lagging when running the program, and after running for a while, pyGame would not respond, and then it and Carla would crash. What is the reason and what is the solution? My computer is configured with AMD ryzen 7 5800h, rtx3060 laptop GPU and 16g running memory. Is my computer not configured enough? Third, I have learned the basics of reinforcement learning at present. I want to learn more about how reinforcement learning should be applied by learning your code. There may be a lot of things I don't understand when I study your code. I want to ask you if there are any questions at that time! I don't know if you have wechat. Can you add one conveniently? I promise not to disturb you frequently! Thank you again!

@Luca96
Copy link
Owner

Luca96 commented Sep 16, 2022

Hi and sorry for the late response.

In general the framerate is low, at most I managed to achieve 10-15 FPS. This is mainly due to the CARLA simulator itself but also to the agent's network that has to process 3 90x120x3 camera images at each frame.

As you can see here, you can set both the camera resolution and the size of the pygame window. I picked these settings for best performance over quality, also because the memory consumption is quite high (#10). Moreover, also the simulator quality is set to low: see the repo's README; in general, when you lunch CARLA, you should remove the argument --quality-level=Low, but expect slower performance. Refer to also this issue #12.

Your computer have an adeguate CPU, but both the GPU and RAM memory are a bit small. So, you have to consider to reduce the batch size and also the number of timesteps, and/or the image resolution.

For further details about the code, see these issues: #11, #8, #4, and #18.

If you want to better understand the code, you should learn the CARLA API first (https://carla.readthedocs.io/en/latest/start_quickstart/), and you should also take a reinforcement learning course (this is a good place to start.)

Lastly, if you need to contact me, please do this only via email. Thanks.

@12kobe
Copy link
Author

12kobe commented Sep 17, 2022

Hi and sorry for the late response.

In general the framerate is low, at most I managed to achieve 10-15 FPS. This is mainly due to the CARLA simulator itself but also to the agent's network that has to process 3 90x120x3 camera images at each frame.

As you can see here, you can set both the camera resolution and the size of the pygame window. I picked these settings for best performance over quality, also because the memory consumption is quite high (#10). Moreover, also the simulator quality is set to low: see the repo's README; in general, when you lunch CARLA, you should remove the argument --quality-level=Low, but expect slower performance. Refer to also this issue #12.

Your computer have an adeguate CPU, but both the GPU and RAM memory are a bit small. So, you have to consider to reduce the batch size and also the number of timesteps, and/or the image resolution.

For further details about the code, see these issues: #11, #8, #4, and #18.

If you want to better understand the code, you should learn the CARLA API first (https://carla.readthedocs.io/en/latest/start_quickstart/), and you should also take a reinforcement learning course (this is a good place to start.)

Lastly, if you need to contact me, please do this only via email. Thanks.

@12kobe 12kobe closed this as completed Sep 17, 2022
@12kobe
Copy link
Author

12kobe commented Sep 17, 2022

I'm sorry that I accidentally closed this question. I can only choose to use email to ask you questions. I hope you can see the email. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants