Войти
  • 340Просмотров
  • 4 недели назадОпубликованоDQN Labs

AI Learns to Park a Car! (reinforcement learning)

In this video, I trained an AI car driver using Unity ML Agents to carefully drive and park a car into a parking spot. I used reinforcement learning to teach the AI basic acceleration and turning. Will it crash or park safely? #unity #mlagents #aiwarehouse #ailearning #ai #ml #machinelearning #ailearns #ailearning #aievolution Hey! Welcome back to another video! In this video, I trained an AI to park a car. I challenged it to park a car. HOW I TRAINED THIS AI: So for the training framework, I used Godot RL Agents. The RL algorithm I used was PPO (ironic because my channel name is DQN). I gave the AI information like its current position, speed, and I used raycasts to give it spatial awareness (which comes in really handy for this task). I also gave it information on which spot it needed to park in (indicate by the green arrow). I gave it actions, so it uses that info to take actions on its throttle, turning, braking, etc. We give it rewards based on how well it does the task. The assets and a lot of the coding was done by Ivan-267, I simply changed up a little bit of the scene to make it look a little better, and also made a few changes with rewards and observations, etc. to improve training. If you have any suggestions, feedback, or questions regarding anything in this video, feel free to ask me in the comments section below, or in the Discord server linked below. Join my discord for sneak peeks on future videos before anybody else, to engage with the amazing, emerging dev community, or just to talk with me and the crew :D And finally, I would like to thank YOU. Yes, YOU. The viewer. Because you had hundreds of videos at your disposal, but you chose mine. I worked hard on this video, so even your small consideration to support my channel and bring these amazing videos to more people means a lot to me. THANK YOU. Disclaimer: This video was recorded in 2024, I'm only posting it now on Nov 15, 2025.