Self-Driving AI Car Simulation in Python

  Рет қаралды 173,435

NeuralNine

NeuralNine

Күн бұрын

In this video we simulate self-driving AI cars in Python. These cars learn driving using NEAT, which is a reinforcement learning technique.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
💻 The Algorithm Bible Book: www.neuralnine...
🐍 The Python Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
💻 Exclusive Content 💻
👥 Patreon: / neuralnine
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎵 Outro Music From: www.bensound.com/

Пікірлер: 136
@NeuralNine
@NeuralNine 3 жыл бұрын
It is important that you install the module neat-python and not neat if you want this to work on your machine!
@culiynl
@culiynl 3 жыл бұрын
This is a NEAT program
@RandomGuy-df1oy
@RandomGuy-df1oy 3 жыл бұрын
How do you catch if a car crashes?
@Emmanuel-is7gm
@Emmanuel-is7gm 11 ай бұрын
Does your book cover this kind of videos?
@amberniesalting9011
@amberniesalting9011 3 жыл бұрын
as a beginner in python these kind of things is the one I want to be able to do
@NeuralNine
@NeuralNine 3 жыл бұрын
understandable! Just stick to it ^^
@joshcooke4201
@joshcooke4201 3 жыл бұрын
@@NeuralNine Can you do a neat-python tutorial please?
@WeebDweebTCG
@WeebDweebTCG 3 жыл бұрын
Work on problem solving and logic first. Learn how to break down the problem and the fundamentals of programming. Then extract that knowledge out to whatever you want to pursue.
@v-rdays7525
@v-rdays7525 3 жыл бұрын
Where i can learn python for free? I really want to learn python
@WeebDweebTCG
@WeebDweebTCG 3 жыл бұрын
@@v-rdays7525 This guy’s videos and Codecademy. But you should learn how to solve problems and think like a programmer before worrying about a specific language.
@kulrajchavda9538
@kulrajchavda9538 3 жыл бұрын
You're absolutely legend, you are future big channel
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks brother ^^
@philskz
@philskz 3 жыл бұрын
This is such a cool programm! I downloaded it and tried it out and it worked perfectly good work!
@bassemgouty9840
@bassemgouty9840 3 жыл бұрын
you videos are just top quality tbh , always amazed by your work . Keep it up and i hope you make it big !
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks for your words brother :)
@PlexAlanche
@PlexAlanche 3 жыл бұрын
cant wait for ya to soar above where you belong, you really do the hardwork
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks brother ^^
@impranave7776
@impranave7776 4 ай бұрын
I did an autonomous driving car project with the simplest trach but failed miserably . This idea of NEAT was very new to me and it is just very interesting . great video 👍🏿.
@flashbao1922
@flashbao1922 3 жыл бұрын
Glad, I didnt bunk my Soft Computing Classes and I literally understood this video in the first time!
@jlou888
@jlou888 2 жыл бұрын
It would have been interesting to see how cars trained on one track can do on another, basically, how your model generalises. Otherwise, this is an exercise in overfitting.
@chriss3154
@chriss3154 3 жыл бұрын
When an AI video almost sounds like a interesting scary story too! More!
@flashbao1922
@flashbao1922 3 жыл бұрын
The Intro is cool!
@hello-my6ot
@hello-my6ot 3 жыл бұрын
This is so impressive, you got my sub
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks ^^
@achiyederi3622
@achiyederi3622 3 жыл бұрын
can you do a full depth tutorial?
@neillunavat
@neillunavat 3 жыл бұрын
Idk why people dislike this... Like... This is gold mahn. Gold
@saadahmed2970
@saadahmed2970 3 жыл бұрын
Your channel is fabulous.
@NeuralNine
@NeuralNine 3 жыл бұрын
thank you ^^
@ryanc.6613
@ryanc.6613 3 жыл бұрын
your channel is about to blow up bro
@NeuralNine
@NeuralNine 3 жыл бұрын
I hope so brother :D
@gamesucht2097
@gamesucht2097 Жыл бұрын
i think i have to say thanks for your videos. i did now understand how AIs do their training
@johnatasrabelo7088
@johnatasrabelo7088 3 жыл бұрын
Best Ones from KZbin , thanks a lot !!
@rayoh2011
@rayoh2011 3 жыл бұрын
An eye-opener, thank you!
@fp-mirzariyasatali1985
@fp-mirzariyasatali1985 3 жыл бұрын
Can i get those Slides???? You use to convey your Point of view
@bloodrubbish1667
@bloodrubbish1667 7 ай бұрын
Amazing vid!
@thomasgoodwin2648
@thomasgoodwin2648 3 жыл бұрын
I noticed that all of your examples were trained from scratch up on each track. Doesn't this lead to overfitting the bot to the track? In other words, shouldn't a network that generalizes well be able to go from track to track with no further training required? Would training go any faster if you used bot models from the previous tests as the starting point for more complex tracks? Great channel btw. Hard to find really good tutorials at this level, and your's are definitely among the best. You do tend to skip some details for the sake of brevity at times though, and I would love to get more detailed insight, even at the expense of longer videos. It's all about the content Baby! Keep it coming! I love it! ❤️❤️❤️
@neshamlani3264
@neshamlani3264 6 ай бұрын
Okay thats a great implementation and a great video, I only have 1 question, does this AI model remember the previous learning, like we trained it on a hard map, and the generation learned to navigate and completed the map, now the generate which was able to complete the map, can it run a single car through other maps, without training for that particular map?
3 жыл бұрын
Great strategy to build the maps :)
@rachitjasoria9041
@rachitjasoria9041 3 жыл бұрын
its working vey well!!! but how to resize it?? i changed WIDTH and HEIGHT here: screen = pygame.display.set_mode((WIDTH, HEIGHT), pygame.FULLSCREEN) but then it doesnt work...
@1nd0Aryan
@1nd0Aryan Жыл бұрын
same problem here. did you find a solution?
@muyzaf
@muyzaf Жыл бұрын
same problem here as well
@os_.mos_.m9346
@os_.mos_.m9346 3 жыл бұрын
What is the name of the song you are using in the intro?
@wullie1111
@wullie1111 3 жыл бұрын
neural networks are grate. there are so many implementations as well if it wasn't for there creation google's voice, amazon's alexa, apple's siri would not exist
@AdamEarleArtist
@AdamEarleArtist 2 жыл бұрын
i would love to see this run with some freactal noise on the edges of the track and taking up the parts of the track
@thewhat4228
@thewhat4228 3 жыл бұрын
Can we get the code for the self replicating virus in python? Why is the video down I can't find it please help
@yenumulavinuthna8083
@yenumulavinuthna8083 9 ай бұрын
May i know which environment you have used?
@hakancetinkaya8866
@hakancetinkaya8866 3 жыл бұрын
I am trying to watch ads but someone disturbing me with forcing couple cars to finish his path
@nikolavasic1947
@nikolavasic1947 3 жыл бұрын
You have awesome content
@NeuralNine
@NeuralNine 3 жыл бұрын
appreciate it brother :)
@lucky4the4turtle
@lucky4the4turtle 3 жыл бұрын
Is lex named after lex fridman?
@Rhaqim
@Rhaqim 3 жыл бұрын
I love this video, I’m a Junior Data Scientist but studying this would help me with self driving drones.
@Gazzar19
@Gazzar19 3 жыл бұрын
I build a similar thing, also modifying / mutating the weights of the best agent. What would be the reinforcement way to improve the network with backprop?
@clamisland331
@clamisland331 3 жыл бұрын
Wo this is awesome!!
@srishrachamalla9607
@srishrachamalla9607 Жыл бұрын
Will it uses it knowledge to the new maps? Or it should learn on the new map..
@justvolt
@justvolt 3 жыл бұрын
this is quite a neat tutorial
@tomas5970
@tomas5970 3 жыл бұрын
pretty NEAT video
@ishaandugar7896
@ishaandugar7896 3 жыл бұрын
Make a series on this pleaseeee!!
@null3000
@null3000 3 жыл бұрын
Please make more NEAT tutorials!
@shulymang
@shulymang 3 жыл бұрын
its amazing video! thanks a lot
@CarlosMoreno-hu2me
@CarlosMoreno-hu2me 3 жыл бұрын
Interesting. Thank you. Wondering if there is a way to save the learnt model and restart from the last training, without restarting from scratch?
@guilherme5094
@guilherme5094 3 жыл бұрын
Very good!
@jayparmar7603
@jayparmar7603 3 жыл бұрын
One node joined your Neural Network
@prajyotmane9067
@prajyotmane9067 Жыл бұрын
Can this model perform with same accuracy on maps it was not trained on ?
@VinnieDreher
@VinnieDreher 3 жыл бұрын
Do you think is possible import the track using a STL?
@g.s.3389
@g.s.3389 3 жыл бұрын
very interesting, as far I understand from the code, the speed of the car is a constant it doesn't change during the circuit. is it right?
@mangohar5642
@mangohar5642 3 жыл бұрын
Hello. I'm trying to work on this project myself, and I'm at the stage of enabling the car to move in various directions. However, when I rotate the car using pygame by an angle that is not a multiple of 90 degrees, the shape of the car sprite changes and it doesn't stay in the same position. Do you know how I can rotate the car sprite without moving it?
@shinymp7691
@shinymp7691 3 жыл бұрын
Hey, can you make tutorial video on this project. Pls
@ddbqu
@ddbqu 5 ай бұрын
Sorry, can you do a full depth tutorial? I really don‘t know how to do…
@__3093
@__3093 3 жыл бұрын
new intro let's gooooo
@avadhutpatil6755
@avadhutpatil6755 2 жыл бұрын
Hi I am unable to run this code, could you please help me with this ??
@kooshasangari2555
@kooshasangari2555 3 жыл бұрын
⭐ Perfect! ⭐
@dungduong89
@dungduong89 3 жыл бұрын
thank you so much
@robss9363
@robss9363 3 жыл бұрын
yo, man, that's huge..
@thomaskaridis2127
@thomaskaridis2127 3 жыл бұрын
Great video, if you could do an explanation on the code someday that would be great because i'm having some trouble when its running (new in python)
@vijayrahulsivapu9523
@vijayrahulsivapu9523 Жыл бұрын
Hello, I need your help. I have installed all the necessary modules, but the problem is that the pygame window is not adjusting to my system display. I have tried several ways and I am able to toggle horizontally, but the vertical view is not complete. The horizontal view is also not adjusting but I can see completely when I move the pygame window.
@yenumulavinuthna8083
@yenumulavinuthna8083 9 ай бұрын
Hey...even I am facing the same issue...how you solved it
@ericstardust1
@ericstardust1 3 жыл бұрын
Cool, Thx
@kaihan5962
@kaihan5962 3 жыл бұрын
Hope to see the tutorials
@amiralirezaei2108
@amiralirezaei2108 3 жыл бұрын
Can you make a course for ML?
@erictovbin4200
@erictovbin4200 3 жыл бұрын
Könntest du vielleicht eine Tensorflow-Serie starten? :)
@ku_l1n
@ku_l1n 3 жыл бұрын
Solltest vielleicht auf Englisch schreiben, denke nicht dass er dich versteht lol
@NeuralNine
@NeuralNine 3 жыл бұрын
@@ku_l1n ich denke schon ^^
@ku_l1n
@ku_l1n 3 жыл бұрын
@@NeuralNine :O
@joenelespejo4082
@joenelespejo4082 3 жыл бұрын
Where to run it? What IDE? Beginner in python. 🙏
@marshallhickey3746
@marshallhickey3746 3 жыл бұрын
I have an idea for a future idea you can use selenium to import webdriver open one of your videos and make it reload every 30 secs meaning you can get free views
@bbgoesblop
@bbgoesblop 8 ай бұрын
Hello, i want to change maps, but i dont want to reset my progress, how?
@Abdelrhman_karam
@Abdelrhman_karam 7 ай бұрын
save the weights of the model and reuse them
@bbgoesblop
@bbgoesblop 6 ай бұрын
@@Abdelrhman_karam how
@alexanderwilluweit6689
@alexanderwilluweit6689 3 жыл бұрын
I got an error: config = neat.config.Config(neat.DefaultGenome, module 'neat' has no attribute 'config' any ideas? thx
@alexanderwilluweit6689
@alexanderwilluweit6689 3 жыл бұрын
Got it sorry - my fault. Did not installed neat in the correct way.
@BugsNRoses_
@BugsNRoses_ 3 жыл бұрын
I really wanted to learn advanced machine learning, but didn't find any tutorials, which has the way you describe ❤️, thank you so much, a fan, no a hugeeee fan of yours
@rverm1000
@rverm1000 Жыл бұрын
im having trouble with the screen the race track is way bigger than the screen. cant move it or adjust it in any way. Got any suggestions?
@muyzaf
@muyzaf Жыл бұрын
same, i need help as well
@chetansai1478
@chetansai1478 3 жыл бұрын
sir how to run a simulation after downloading the file
@marshallhickey3746
@marshallhickey3746 3 жыл бұрын
I have downloaded this but when I try to run it, it says neat has no attribute to config in line 248
@NeuralNine
@NeuralNine 3 жыл бұрын
you need to install neat-python and not neat ^^
@amberniesalting9011
@amberniesalting9011 3 жыл бұрын
amazing
@NeuralNine
@NeuralNine 3 жыл бұрын
:)
@Jiyakathuria
@Jiyakathuria 4 ай бұрын
please provide in depth tutorial.
@fabrizioantonazzo3113
@fabrizioantonazzo3113 3 жыл бұрын
bene , maa non avete commentato il listato di python grazie
@Lualt
@Lualt 3 жыл бұрын
next vid coding a universe with self aware life
@dynoagency1323
@dynoagency1323 3 жыл бұрын
I love your contents, can u make a chess game with a chess bot?
@Serenelove520
@Serenelove520 3 жыл бұрын
You are awesome. Can I ask you to work on a project?
@flaksick
@flaksick 3 жыл бұрын
It doesn’t properly fit my screen
@softwhere07
@softwhere07 10 ай бұрын
From 2:50 to 3:35 it seems to talk about my origins. Lol.
@EndOfTraitoers
@EndOfTraitoers 3 жыл бұрын
Your videos are very good, I expect you to add source code
@andreaspiening5424
@andreaspiening5424 2 жыл бұрын
Thank you very much! This one is very interesting. Please can you tell if, and if so where the learned data is persisted? I've started with map1.png again and in generation 1 I had one car passing the full course which is not possible without some knowledge / learnings I guess. I would like to control the neural network and "reset" it for my experiments.
@MukeshDesiBhae
@MukeshDesiBhae 3 ай бұрын
Good Showcase, please share the code
@philtoa334
@philtoa334 2 жыл бұрын
Thx_Very_Nice.
@nawid1687
@nawid1687 3 жыл бұрын
It kinda sucks that you removed the subdomain video
@NeuralNine
@NeuralNine 3 жыл бұрын
Had to. It is on Patreon though.
@SagarKumar-fx4ew
@SagarKumar-fx4ew 3 жыл бұрын
op 👌👌👌
@redamo1248
@redamo1248 3 жыл бұрын
1st comment love ur vids
@NeuralNine
@NeuralNine 3 жыл бұрын
thank you ^^
@darksnaper
@darksnaper Жыл бұрын
Привет из России, ты лучший!
@daveraccliff6422
@daveraccliff6422 3 жыл бұрын
plz make a tutorial on this
@aurorusidk
@aurorusidk 3 жыл бұрын
great video but i kinda miss seeing your face
@NeuralNine
@NeuralNine 3 жыл бұрын
Hahahaha it will be there again in the next video :D
@AidenEllis
@AidenEllis 3 жыл бұрын
*So you wanna be a software engineer at Google?*
@volcano3864
@volcano3864 3 жыл бұрын
i want a tutorial
@bilelsaghrouchni977
@bilelsaghrouchni977 3 жыл бұрын
tuto pls :)
@b07x
@b07x 3 жыл бұрын
New version of Tesla...
@NeuralNine
@NeuralNine 3 жыл бұрын
2D Tesla :D
@vanshkumar3445
@vanshkumar3445 Жыл бұрын
ai is best technology self driving car ai games vice city gta 5,ai drones,
@DogoOrtodoxo
@DogoOrtodoxo 10 ай бұрын
Man... watching this i notice this is not how humans learns to drive well, it would be nicier if the module take a turn mapping the road, and then calculate the best velocity to each part, instead of looking for what is 5 meters ahead.
@hencexperfect
@hencexperfect 3 жыл бұрын
CoollLLLLllLlLl
@georgialeksiev8056
@georgialeksiev8056 3 жыл бұрын
early
@NeuralNine
@NeuralNine 3 жыл бұрын
awesome :)
@princekrampah3313
@princekrampah3313 3 жыл бұрын
First one
@NeuralNine
@NeuralNine 3 жыл бұрын
:)
@antalervin19-
@antalervin19- Жыл бұрын
Hey! Can we have a talk in Discord Or Email?
@anonfourtyfive
@anonfourtyfive Жыл бұрын
Short... Neet. LMFAO"
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,4 МЛН
Building a Self-Driving Go Kart
13:46
Austin Blake
Рет қаралды 271 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Training an unbeatable AI in Trackmania
20:41
Yosh
Рет қаралды 15 МЛН
I Made a Self Driving FPV RC Car
7:55
Steven Gong
Рет қаралды 322 М.
Snake learns with NEUROEVOLUTION (implementing NEAT from scratch in C++)
28:08
A.I. Learns to Drive From Scratch in Trackmania
16:51
Yosh
Рет қаралды 7 МЛН
Predicting Stock Prices in Python
29:14
NeuralNine
Рет қаралды 541 М.
The Manim Experience - Creating animations with Python
38:51
Self-Driving Car with JavaScript Course - Neural Networks and Machine Learning
2:32:40
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 400 М.
AI Teaches Itself to Play Flappy Bird - Using NEAT Python!
10:16
Tech With Tim
Рет қаралды 144 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН