Replies: 5 comments 43 replies
-
Hi! The way we compute the LIDAR in the TM LIDAR environment is very specific to the plain road in TrackMania and probably won't work in Gran Turismo. We just look for black pixels on the trajectory of each ray, you can find the corresponding code here This was just to speed up training in simple "toy" environments: nowadays we use full unprocessed images with CNNs. The 20FPS value is not a bottleneck with screenshot capture. It is only an arbitrary choice for the control frequency that you can change in the |
Beta Was this translation helpful? Give feedback.
-
(BTW don't use the image/CNN agent yet because I am training a new one currently, using a different preprocessor. The up-to-date code for that is on the |
Beta Was this translation helpful? Give feedback.
-
https://youtu.be/oOU20m6e62U |
Beta Was this translation helpful? Give feedback.
-
By the way - is the CNN version (non-LIDAR) working now? |
Beta Was this translation helpful? Give feedback.
-
Since this discussion was about the Lidar, I think it would be better to close this discussion and open a new, but my next question is about training. The instructions say: I am not understanding what this means/does. Is the reward not a reward function that you coded? Also I keep getting this warning from teh trainer. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I am working on an ambitious project (it is in particularly ambitious because I am not a hard core CS person, and am trying to do this project for my MSc in CS final project).
But it is similar to this project in that my project proposal looks at establishing tools/framework for interfacing a PlayStation 1 emulator with Python to then develop an agent that is developed using SAC to play Gran Turismo 1. So in part similar to what Sony did with Sophy (but less ambitious on how well I hope it will work).
Early on I was sure I can simply use openCV to process the screen and perform some edge detection to do something similar to your Lidar lines. However I've struggled with this approach. I then took a detour at using Ghidra to reverse engineer the game.
Made some useful progress in finding internal variables like vehicle speed - which will make things simpler and more similar to your solution for TrackMania 2020 (i.e. I do not need to use a NN to read the speed and so on).
But I could not make head-way on the lidar. Where can I look at how you've implement the spatial recognition / lidar?
Oh by the way - I read somewhere that you could only get 20FPS of screen capture?
Here I was experimenting with different ways: https://youtu.be/0t97yrOAKXs?t=1398
I was able to find a library called d3d that gave me VERY fast screen capture.
(Ironically for my project I do not plan to use it because I think I will use the emulator to share over the display-data directly to the python environment).
Beta Was this translation helpful? Give feedback.
All reactions