Self-Driving AI Car Simulation in Python

Поделиться
HTML-код
  • Опубликовано: 17 фев 2021
  • 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.com/books/
    🐍 The Python Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    💻 Exclusive Content 💻
    👥 Patreon: / neuralnine
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

Комментарии • 130

  • @NeuralNine
    @NeuralNine  3 года назад +66

    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 года назад +5

      This is a NEAT program

    • @RandomGuy-df1oy
      @RandomGuy-df1oy 2 года назад +2

      How do you catch if a car crashes?

    • @Emmanuel-is7gm
      @Emmanuel-is7gm 5 месяцев назад

      Does your book cover this kind of videos?

  • @amberniesalting9011
    @amberniesalting9011 3 года назад +112

    as a beginner in python these kind of things is the one I want to be able to do

    • @NeuralNine
      @NeuralNine  3 года назад +28

      understandable! Just stick to it ^^

    • @joshcooke4201
      @joshcooke4201 3 года назад +6

      @@NeuralNine Can you do a neat-python tutorial please?

    • @cadowyn735
      @cadowyn735 3 года назад +1

      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

    • @cadowyn735
      @cadowyn735 3 года назад +2

      @@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.

  • @bassemgouty9840
    @bassemgouty9840 3 года назад +16

    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 года назад +6

      thanks for your words brother :)

  • @philskz
    @philskz 3 года назад

    This is such a cool programm! I downloaded it and tried it out and it worked perfectly good work!

  • @rayoh2011
    @rayoh2011 3 года назад

    An eye-opener, thank you!

  • @flashbao1922
    @flashbao1922 3 года назад +1

    The Intro is cool!

  • @hello-my6ot
    @hello-my6ot 3 года назад +3

    This is so impressive, you got my sub

  • @flashbao1922
    @flashbao1922 3 года назад +3

    Glad, I didnt bunk my Soft Computing Classes and I literally understood this video in the first time!

  • @gamesucht2097
    @gamesucht2097 5 месяцев назад

    i think i have to say thanks for your videos. i did now understand how AIs do their training

  • @PlexAlanche
    @PlexAlanche 3 года назад +16

    cant wait for ya to soar above where you belong, you really do the hardwork

  • @kulrajchavda9538
    @kulrajchavda9538 3 года назад +23

    You're absolutely legend, you are future big channel

  • @chriss3154
    @chriss3154 3 года назад +8

    When an AI video almost sounds like a interesting scary story too! More!

  • @neillunavat
    @neillunavat 3 года назад

    Idk why people dislike this... Like... This is gold mahn. Gold

  •  3 года назад

    Great strategy to build the maps :)

  • @johnatasrabelo7088
    @johnatasrabelo7088 3 года назад +3

    Best Ones from RUclips , thanks a lot !!

  • @jlou888
    @jlou888 Год назад +11

    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.

  • @bloodrubbish1667
    @bloodrubbish1667 Месяц назад

    Amazing vid!

  • @justvolt
    @justvolt 3 года назад

    this is quite a neat tutorial

  • @ryanc.6613
    @ryanc.6613 3 года назад

    your channel is about to blow up bro

  • @clamisland331
    @clamisland331 3 года назад

    Wo this is awesome!!

  • @saadahmed2970
    @saadahmed2970 3 года назад +2

    Your channel is fabulous.

  • @shulymang
    @shulymang 3 года назад

    its amazing video! thanks a lot

  • @guilherme5094
    @guilherme5094 3 года назад

    Very good!

  • @tomas5970
    @tomas5970 3 года назад

    pretty NEAT video

  • @__3093
    @__3093 3 года назад

    new intro let's gooooo

  • @Rhaqim
    @Rhaqim 3 года назад

    I love this video, I’m a Junior Data Scientist but studying this would help me with self driving drones.

  • @ishaandugar7896
    @ishaandugar7896 3 года назад +1

    Make a series on this pleaseeee!!

  • @ericstardust1
    @ericstardust1 3 года назад

    Cool, Thx

  • @nikolavasic1947
    @nikolavasic1947 3 года назад +1

    You have awesome content

    • @NeuralNine
      @NeuralNine  3 года назад +1

      appreciate it brother :)

  • @achiyederi3622
    @achiyederi3622 3 года назад +7

    can you do a full depth tutorial?

  • @dungduong89
    @dungduong89 3 года назад

    thank you so much

  • @kooshasangari2555
    @kooshasangari2555 2 года назад

    ⭐ Perfect! ⭐

  • @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

  • @AdamEarleArtist
    @AdamEarleArtist Год назад

    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

  • @jayparmar7603
    @jayparmar7603 3 года назад

    One node joined your Neural Network

  • @robss9363
    @robss9363 3 года назад +1

    yo, man, that's huge..

  • @kaihan5962
    @kaihan5962 3 года назад +1

    Hope to see the tutorials

  • @null3000
    @null3000 3 года назад +6

    Please make more NEAT tutorials!

  • @amberniesalting9011
    @amberniesalting9011 3 года назад +1

    amazing

  • @thomaskaridis2127
    @thomaskaridis2127 3 года назад +4

    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)

  • @thomasgoodwin2648
    @thomasgoodwin2648 3 года назад +8

    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! ❤️❤️❤️

  • @wullie1111
    @wullie1111 3 года назад +1

    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

  • @CarlosMoreno-hu2me
    @CarlosMoreno-hu2me 3 года назад +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?

  • @Lualt
    @Lualt 3 года назад

    next vid coding a universe with self aware life

  • @philtoa334
    @philtoa334 Год назад

    Thx_Very_Nice.

  • @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?

  • @Gazzar19
    @Gazzar19 2 года назад

    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?

  • @ahmetfarukbahat8334
    @ahmetfarukbahat8334 3 года назад +1

    Your videos are very good, I expect you to add source code

  • @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

  • @SagarKumar-fx4ew
    @SagarKumar-fx4ew 3 года назад +1

    op 👌👌👌

  • @fp-mirzariyasatali1985
    @fp-mirzariyasatali1985 3 года назад +1

    Can i get those Slides???? You use to convey your Point of view

  • @mangohar5642
    @mangohar5642 3 года назад +1

    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?

  • @dynoagency1323
    @dynoagency1323 3 года назад +1

    I love your contents, can u make a chess game with a chess bot?

  • @hakancetinkaya8866
    @hakancetinkaya8866 3 года назад

    I am trying to watch ads but someone disturbing me with forcing couple cars to finish his path

  • @Serenelove520
    @Serenelove520 2 года назад

    You are awesome. Can I ask you to work on a project?

  • @os_.mos_.m9346
    @os_.mos_.m9346 3 года назад +1

    What is the name of the song you are using in the intro?

  • @srishrachamalla9607
    @srishrachamalla9607 Год назад

    Will it uses it knowledge to the new maps? Or it should learn on the new map..

  • @amiralirezaei2108
    @amiralirezaei2108 3 года назад

    Can you make a course for ML?

  • @yenumulavinuthna8083
    @yenumulavinuthna8083 2 месяца назад

    May i know which environment you have used?

  • @shinymp7691
    @shinymp7691 3 года назад

    Hey, can you make tutorial video on this project. Pls

  • @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.

  • @lucky4the4turtle
    @lucky4the4turtle 3 года назад +1

    Is lex named after lex fridman?

  • @prajyotmane9067
    @prajyotmane9067 11 месяцев назад

    Can this model perform with same accuracy on maps it was not trained on ?

  • @VinnieDreher
    @VinnieDreher 2 года назад

    Do you think is possible import the track using a STL?

  • @erictovbin4200
    @erictovbin4200 3 года назад +1

    Könntest du vielleicht eine Tensorflow-Serie starten? :)

    • @colgrolool1668
      @colgrolool1668 3 года назад

      Solltest vielleicht auf Englisch schreiben, denke nicht dass er dich versteht lol

    • @NeuralNine
      @NeuralNine  3 года назад +2

      @@colgrolool1668 ich denke schon ^^

    • @colgrolool1668
      @colgrolool1668 3 года назад

      @@NeuralNine :O

  • @thewhat4228
    @thewhat4228 3 года назад +1

    Can we get the code for the self replicating virus in python?
    Why is the video down
    I can't find it please help

  • @softwhere07
    @softwhere07 4 месяца назад

    From 2:50 to 3:35 it seems to talk about my origins. Lol.

  • @joenelespejo4082
    @joenelespejo4082 3 года назад

    Where to run it? What IDE? Beginner in python. 🙏

  • @chetansai1478
    @chetansai1478 3 года назад

    sir how to run a simulation after downloading the file

  • @AidenEllis
    @AidenEllis 3 года назад +2

    *So you wanna be a software engineer at Google?*

  • @daveraccliff6422
    @daveraccliff6422 3 года назад

    plz make a tutorial on this

  • @avadhutpatil6755
    @avadhutpatil6755 Год назад

    Hi I am unable to run this code, could you please help me with this ??

  • @vijayrahulsivapu9523
    @vijayrahulsivapu9523 9 месяцев назад

    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 2 месяца назад

      Hey...even I am facing the same issue...how you solved it

  • @aurorusidk
    @aurorusidk 3 года назад +2

    great video but i kinda miss seeing your face

    • @NeuralNine
      @NeuralNine  3 года назад

      Hahahaha it will be there again in the next video :D

  • @nawid1687
    @nawid1687 3 года назад +1

    It kinda sucks that you removed the subdomain video

    • @NeuralNine
      @NeuralNine  3 года назад

      Had to. It is on Patreon though.

  • @rachitjasoria9041
    @rachitjasoria9041 3 года назад +2

    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...

    • @aryan.civilization
      @aryan.civilization Год назад

      same problem here. did you find a solution?

    • @muyzaf
      @muyzaf Год назад +1

      same problem here as well

  • @fabrizioantonazzo3113
    @fabrizioantonazzo3113 2 года назад

    bene , maa non avete commentato il listato di python grazie

  • @redamo1248
    @redamo1248 3 года назад +2

    1st comment love ur vids

  • @flaksick
    @flaksick 2 года назад

    It doesn’t properly fit my screen

  • @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 года назад +1

      you need to install neat-python and not neat ^^

  • @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

  • @darksnaper
    @darksnaper Год назад

    Привет из России, ты лучший!

  • @vanshkumar3445
    @vanshkumar3445 9 месяцев назад

    ai is best technology self driving car ai games vice city gta 5,ai drones,

  • @alexanderwilluweit6689
    @alexanderwilluweit6689 2 года назад

    I got an error:
    config = neat.config.Config(neat.DefaultGenome,
    module 'neat' has no attribute 'config'
    any ideas?
    thx

  • @volcano3864
    @volcano3864 2 года назад

    i want a tutorial

  • @b07x
    @b07x 3 года назад +2

    New version of Tesla...

  • @bbgoesblop
    @bbgoesblop 2 месяца назад

    Hello, i want to change maps, but i dont want to reset my progress, how?

    • @Abdelrhman_karam
      @Abdelrhman_karam 23 дня назад

      save the weights of the model and reuse them

    • @bbgoesblop
      @bbgoesblop 20 дней назад

      @@Abdelrhman_karam how

  • @hencexperfect
    @hencexperfect 3 года назад +1

    CoollLLLLllLlLl

  • @bilelsaghrouchni977
    @bilelsaghrouchni977 3 года назад

    tuto pls :)

  • @georgialeksiev8056
    @georgialeksiev8056 3 года назад +1

    early

  • @princekrampah3313
    @princekrampah3313 3 года назад

    First one

  • @DogoOrtodoxo
    @DogoOrtodoxo 4 месяца назад

    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.

  • @antalervin19-
    @antalervin19- 8 месяцев назад

    Hey!
    Can we have a talk in Discord Or Email?

  • @anonfourtyfive
    @anonfourtyfive Год назад

    Short... Neet.
    LMFAO"