Acquiring a Vehicle for the Agent - Python Plays GTA V p.20

  Рет қаралды 114,389

sentdex

sentdex

Күн бұрын

Пікірлер: 146
@Skylos
@Skylos 7 жыл бұрын
15:57 I love how the AI thinks the GTA map is a bicycle xD
@TechJockeyHD
@TechJockeyHD 7 жыл бұрын
HOLY!!!!!!!!!!!!!! YOU COME A LONG WAY BUDDDD!!! I congrate you for all this... amazing. I came across this channel after 2 years and so much has happened... awesome!!!
@alexk4709
@alexk4709 7 жыл бұрын
horse 55%
@DarkRedman31
@DarkRedman31 5 жыл бұрын
Also bird 57% xD
@RoGeorgeRoGeorge
@RoGeorgeRoGeorge 7 жыл бұрын
Previous: Teach the AI how to drive. Done. Now: Teaching it how to steal. Done. Next video: Teach it politics. :o)
@sentdex
@sentdex 7 жыл бұрын
Working on speech ATM. Chatbots are harder than I thought.
@CariagaXIII
@CariagaXIII 7 жыл бұрын
next time say "I'll be back" at the end of the video
@Max200012
@Max200012 6 жыл бұрын
Next time?
@dashxinteractive8946
@dashxinteractive8946 6 жыл бұрын
Next time? xD Please come back!
@shoebmoin10
@shoebmoin10 6 жыл бұрын
"sorry man, its for science" 😂
@arielgamboavazquez4250
@arielgamboavazquez4250 6 жыл бұрын
16:07 this is the purest display of joy I have seen by far
@onefulltimeequivalent1230
@onefulltimeequivalent1230 7 жыл бұрын
13:46 nooo, you still have to save 14:31 oh...
@mlwseeker1989
@mlwseeker1989 7 жыл бұрын
You make a great tutorial series
@sentdex
@sentdex 7 жыл бұрын
Thank you, great to hear!
@nsbhargava5174
@nsbhargava5174 7 жыл бұрын
you gave me just what I wanted to learn- gaming plus machine learning. Thank you mate,
@Brutaltronics
@Brutaltronics 7 жыл бұрын
you could read the region on the bottom right corner, if it's a speedometer that would mean you are in.
@sentdex
@sentdex 7 жыл бұрын
I could, but I don't like that option. I would like to eventually throw Charles into online, where none of these mods exist. I need a non-mod way of knowing car/vs walking. I have some ideas, but nothing that is cheap to process.
@Max200012
@Max200012 6 жыл бұрын
Why no episode in 6 months?
@Knaeckebrotsaege
@Knaeckebrotsaege 6 жыл бұрын
the livestream is completely gone too
@Casowsky
@Casowsky 6 жыл бұрын
Charles found him
@MoodiHariri
@MoodiHariri 7 жыл бұрын
I have no idea how you do this stuff but I enjoy every single one of those videos. Looking forward to finishing the begginers series and start some projects. Thanks to you for sharing your knowledge, you are awesome.
@Chris-ru7mj
@Chris-ru7mj 7 жыл бұрын
How did you learn to reach the level you are at now? Just seems incredible to me, across all your videos, what you're capable of doing!
@sentdex
@sentdex 7 жыл бұрын
I just think of projects that I would like to do, and I do them. That's bout all there is to it. Lots of googling. I have no formal education in CS or anything related.
@shroomedup
@shroomedup 7 жыл бұрын
You rock man! Gave me some nifty ideas on approaches.
@weifengli3615
@weifengli3615 5 жыл бұрын
This might be a stupid question, but could you explain why is x_move / 0.5 there? (In determine movement function)
@x4iiiis
@x4iiiis 7 жыл бұрын
Hey man. Just want you to know I'm going to cite the Python Plays GTA:V series in my Honours Project dissertation on neural network controllers! Should I refer to you as 'Sentdex' or something else? Thanks!
@sentdex
@sentdex 7 жыл бұрын
"Sentdex" is fine, thank you for the cite :D
@x4iiiis
@x4iiiis 7 жыл бұрын
sentdex awesome, thanks! :)
@TPiedog
@TPiedog 7 жыл бұрын
Umm I've been having trouble on on of your older videos: Game Development in Python 3 With PyGame - 2 - Display Images The issue I'm having is how my game is coming up only as a black screen and even the car isn't showing, I ran the path to get to the image in run and it pulled up the image, but the game still won't show it.
@Xana8U
@Xana8U 7 жыл бұрын
late for the party, been using freepie to simulate mouse, had problems, will probably try with this now. Few things to improve this: 1. include truck/bus/etc. 2. when making the turns towards car, add + width of the car object / 2 to get it to walk straight to it not at the closes edge of the detected object.
@MrGeneralPB
@MrGeneralPB 7 жыл бұрын
sorry for asking but why didnt you chose a simpler and/or older game to run the ai in? didnt watch all the previous vids so sorry if you already answered it
@DarkRedman31
@DarkRedman31 5 жыл бұрын
6:12 I don't exactly if at Python (high) level it matters, but when I see something like this value / 0.5 I'd rather do value * 2 I know at lower level like C(++)/ASM/hardware it's faster to do a multiplication than a division and if it matters in Python since you're program work is per-frame it mays be better in the long run
@vigneshs2886
@vigneshs2886 7 жыл бұрын
17:48 It's a horse.... No.. It's a Bird.... No..... Holy Shit... it's a Terminator....!!!!!!!!
@sentdex
@sentdex 7 жыл бұрын
... no wait, maybe it is a horse
@tarunchourasia5879
@tarunchourasia5879 6 жыл бұрын
can you please tell me how to merge codes of lane detection, object detection and self driving car neural network all in single process
@boqu2983
@boqu2983 7 жыл бұрын
still don't get why x_move and y_move have to be divided by 0.5...
@joraforever9899
@joraforever9899 7 жыл бұрын
watching your stream while you explain
@subhraneelmazumder9079
@subhraneelmazumder9079 4 жыл бұрын
Which font is he using in IDLE?
@saketharamanujam
@saketharamanujam 6 жыл бұрын
can you help making an abandoned object detector using this TF Object Detection Api?
@finster101
@finster101 7 жыл бұрын
I'm enjoying this series. Thanks for making it! I apologize in advance for asking a question off topic but I was wondering would it be possible to do a click and drag operation with the keys.py?
@sentdex
@sentdex 7 жыл бұрын
Yes. do a keys.mouse_lb_press , move the mouse, do a mouse_lb_release. You can see enough examples in the github.com/Sentdex/pygta5/blob/master/keys.py file to figure out how to do it.
@finster101
@finster101 7 жыл бұрын
Awesome! Thanks for the quick reply
@trungthanhgaming2857
@trungthanhgaming2857 4 жыл бұрын
Is screen at your back is trainning Need For Speed ?
@ponrajs5396
@ponrajs5396 4 жыл бұрын
Hi kindly someone answer, for using GPU In ML it asked to install cuda for Nvidia, while the installation CUDA asked to uninstall graphics driver, if I uninstall graphics driver can I run games with CUDA ?
@iamdivyansh
@iamdivyansh 7 жыл бұрын
can anyone please tell me what minimum hardware configuration is required to do this project?? In my laptop I have intel core i7 5th gen 8gb ram 4gb AMD R7 M270 graphic card is this configuration enough to carry on this project??
@sentdex
@sentdex 7 жыл бұрын
No that's not enough to run this.
@iamdivyansh
@iamdivyansh 7 жыл бұрын
sentdex if I run it at minimum graphics setting then will that be enough??
@iJeaxDOTcom
@iJeaxDOTcom 7 жыл бұрын
Hey man I like your videos interesting to see how you think it through. Can I offer an idea to make your videos more appealing to the masses though. Can you test your code whilst making it, so the minor steps. I think it helps people understand what each few lines you write "do" since it will appeal to the "learn by doing" way some people learn stuff (so seeing that change is now making it track the cars more successfully etc). I think it will help break up the staring at the lines of code too and help it appeal to a wider audience :) (and I think it's why your first videos were so successful as it had more "showing it working" keep up the good work though brother.
@sentdex
@sentdex 7 жыл бұрын
These videos aren't for the masses. They are for programmers. If you want to watch the AI live, 24/7, head to: www.twitch.tv/sentdex ... as for taking tings step by step, I have been doing just that, this project just simply has become much more complex than starting with a clean slate like the beginning did. The beginning was just plain much simpler: find some lines. Since then...things have gotten far more advanced.
@tarushsingh1108
@tarushsingh1108 6 жыл бұрын
Anyone getting the error of keys has no attribute directMouse. Can't figure out what is the issue.
@anony88
@anony88 7 жыл бұрын
I wonder if you install a graphics mod, it recognizes objects better. GTA 5's original graphics has this hazy effect, but stuff like visual v or naturalvision remastered looks a lot more realistic.
@sentdex
@sentdex 7 жыл бұрын
I'd start by first upping my settings, currently running minimum. Rather have the extra processing power I think.
@AdamCradamParkes
@AdamCradamParkes 6 жыл бұрын
wouldn't it be better to use xbox controller emulation? then you allow the ai to control analogue inputs
@iLLt0m
@iLLt0m 7 жыл бұрын
Do you think your code will get to a point where you'd feel comfortable installing it in your RL car?
@sentdex
@sentdex 7 жыл бұрын
I'd tone it down and put it in now, I just don't have a car that I can do it with.
@mohammadabdullah1302
@mohammadabdullah1302 6 жыл бұрын
Can this algorithm be applied on a rc car?
@vijayabhaskar-j
@vijayabhaskar-j 7 жыл бұрын
I still don't know why did you use hm_x=x_move/0.5,I was trying to make a Aimbot and I experimented with the mouse movement and found x_move and y_move is enough to target the center of the detected person,In The keys.keys_worker.SendInput(keys.keys_worker.Mouse(0x0001, xpos,ypos) line if you give x_move,y_move as the input inplace of xpos and ypos it actually moves mouse from the current position to currentx+x_move and currenty+y_move.
@Lee-ie1xg
@Lee-ie1xg 7 жыл бұрын
if you have the answer to this let me know too :)
@milaandahiya
@milaandahiya 7 жыл бұрын
How much vram does tensorflow need?
@sentdex
@sentdex 7 жыл бұрын
For... what? It all depends on the task, and how fast you want things to go. Some tasks I use tensorflow for can use as little as 1gb of vram, while other tasks consume 24gb. It just all depends. For object detection specifically, I seem to be fine with as low as 4gb or so... but ideally more like 8+ is what I want.
@sahajkapoor4718
@sahajkapoor4718 7 жыл бұрын
Can you tell me which editor you use
@sentdex
@sentdex 7 жыл бұрын
I use IDLE.
@MaxDittmar
@MaxDittmar 7 жыл бұрын
Teaching AI to steal vehicles... Lol haha.
@sentdex
@sentdex 7 жыл бұрын
What could go wrong?
@gkal19
@gkal19 7 жыл бұрын
Can you tell me that it's possible to do a "self-driving-car" script similar to yours that works on GTA San Andreas?
@sentdex
@sentdex 7 жыл бұрын
Yep, absolutely possible.
@SwiggidySwoody
@SwiggidySwoody 7 жыл бұрын
i wonder how long it's gonna take until the first aim assist or bot based on this comes out.
@robertdowneyjr.9424
@robertdowneyjr.9424 6 жыл бұрын
Sentdex please keep making stuff like this
@themonkeyminds7252
@themonkeyminds7252 7 жыл бұрын
Please upload a video on yolo with tensorflow..
@Creuilcreuil
@Creuilcreuil 7 жыл бұрын
*WHERE IS CLOSET*
@sentdex
@sentdex 7 жыл бұрын
We may never know.
@onefulltimeequivalent1230
@onefulltimeequivalent1230 7 жыл бұрын
I love the sound of your keyboard
@datasciencewithr1039
@datasciencewithr1039 7 жыл бұрын
I love your tutorials! Please , if possible, in future do create content that is NLP-deep learning focused as well :) thanks in advance
@skylerjr2648
@skylerjr2648 7 жыл бұрын
Seriously impressive. Words do it no justice... Once you teach it to use weapons or even the mod menu... oh god...
@davedumas0
@davedumas0 6 жыл бұрын
have you tried this in fiveM ?
@gazzpacho2145
@gazzpacho2145 7 жыл бұрын
Nice vid dude..
@miladhosayni5045
@miladhosayni5045 7 жыл бұрын
Hi, your tutorial was really great, but you can learn Android with Python ?
@SaurabhKumarxx
@SaurabhKumarxx 7 жыл бұрын
you're awesome your videos have helped me a lot :)
@nekvanlik3349
@nekvanlik3349 7 жыл бұрын
Man you are awsome. I really learned a lot from you. Could you please make a tutorial on how to make an online game. Like "Tanks" from pygame tutorial but online.
@JohnDoe-kr9zh
@JohnDoe-kr9zh 7 жыл бұрын
great video! thanks
@freebird6954
@freebird6954 5 жыл бұрын
Very interesting
@xaravox
@xaravox 7 жыл бұрын
Hi Sentdex! What is your opinion on implementing machine learning for MMORPGs (for example an ai that plays WoW)? Would it be too complex at this point in time?
@RutvikPatel2611
@RutvikPatel2611 7 жыл бұрын
Dont lose...hope on less...view..just remember i am learning! I am getting my degree from you!
@GustyBroadcast
@GustyBroadcast 7 жыл бұрын
Why dont you open up a Bitcoin Address for donations or +=1
@sentdex
@sentdex 7 жыл бұрын
Bitcoin is one of the options on the support page on pythonprogramming.net, which is linked to at the end of every video. You can also manually go there: pythonprogramming.net/support-donate/
@GustyBroadcast
@GustyBroadcast 7 жыл бұрын
sentdex what about +=1 ?
@sentdex
@sentdex 7 жыл бұрын
Nope, you cannot currently subscribe to +=1 with bitcoin
@GustyBroadcast
@GustyBroadcast 7 жыл бұрын
sentdex darn, how about up front?
@sentdex
@sentdex 7 жыл бұрын
What do you have in mind?
@anonymousworldchanger7962
@anonymousworldchanger7962 7 жыл бұрын
Hi sir currently i am working on my object detection project in python but their is import error for cv2 like import cv2 ImportError: DLL load failed: %1 is not a valid Win32 application. will you please tell the solution to this problem i will be very thankful to you sir Thankyou
@GtaRockt
@GtaRockt 7 жыл бұрын
did you install it correctly? open cmd and use pip install opencv-python you will need pip though
@AhmedAbdulSalam5
@AhmedAbdulSalam5 7 жыл бұрын
Hello people.. just came to the latest video ask since I thought I might won't get an answer in first video.. Q: what are the requirements I should fullfill so that I can start learning.. Like.. thing I need to download and setup things..hardware...? Edit: my laptop - Intel HD 4000 - 2GB 8GB ram 1 TB HD Ubuntu/win 10 (dual boot) And yah.. ma laptop can run GTA 5 very good :P Iam new to this world and currently persuing Post Graduation in data analytics Ty.
@GustyBroadcast
@GustyBroadcast 7 жыл бұрын
Honestly, if you want to start learning Python you are in perfect shape. But if you want to do this kind of detection, you need a proper GPU with decent VRAM for better detection times. Intel HD graphics won't cut it. I recommend that you build your skills first rather than jumping here, this is a complex project over the course of months. Check his Python 3 Tutorials and start there. Then once you can relatively understand most Python projects (the proper ones) then you can make the investment for the GPU and other things. That is my advice, so take it or edit it how you please.
@AhmedAbdulSalam5
@AhmedAbdulSalam5 7 жыл бұрын
I appreciate your response.. thank you for guiding me.. !!
@GustyBroadcast
@GustyBroadcast 7 жыл бұрын
Ahmed Abdul Salam no problemo
@TheGodCold
@TheGodCold 6 жыл бұрын
You must've used Franklin for that :D
@AndrewChaiko
@AndrewChaiko 7 жыл бұрын
17.35 - Cyberdyne won't happen so soon XD
@CariagaXIII
@CariagaXIII 7 жыл бұрын
are you john connor
@onefulltimeequivalent1230
@onefulltimeequivalent1230 7 жыл бұрын
15:59 closest implementation of skynet I've ever seen
@sentdex
@sentdex 7 жыл бұрын
Let's keep getting closer
@robertwenzel6654
@robertwenzel6654 7 жыл бұрын
Hey sentdex great work! Love your videos! Could anyone tell me the name of the mod for GTA V he is using?
@sentdex
@sentdex 7 жыл бұрын
To do what?
@robertwenzel6654
@robertwenzel6654 7 жыл бұрын
If I remember correctly, in the beginning of the tutorial series you turned off traffic in GTA V. That´s what I´m looking for.
@sentdex
@sentdex 7 жыл бұрын
Sure, to do that I use the native trainer + enhanced native trainer. Can find both @ www.gta5-mods.com/
@robertwenzel6654
@robertwenzel6654 7 жыл бұрын
Thanks for your help, very much appreciated! Keep up the great work you do.
@ayush0477
@ayush0477 7 жыл бұрын
from self driving car to car stealing robot what next? cooperative AI to player VS AI ?
@gamesthatmatter9374
@gamesthatmatter9374 7 жыл бұрын
use visual studio 2017 for python development editor . ... its free and powerfull
@sentdex
@sentdex 7 жыл бұрын
IDLE is also free, and has all the powers I want :D
@nithinraj9772
@nithinraj9772 7 жыл бұрын
Hi, I want to ask about handwriting recognition in python is there an way for me to contact you??
@PauloSilva-yu7fl
@PauloSilva-yu7fl 7 жыл бұрын
excelente vídeo gostei muito!
@felixandriannugroho3721
@felixandriannugroho3721 7 жыл бұрын
You're Amazing :)
@Prometheus_Storm
@Prometheus_Storm 7 жыл бұрын
I am foreigner subscriber. I have some questions, How did you install the Tensorflow? Do I have to install Anaconda? (I am using Python 2.7)
@Red_Devil_-es1rt
@Red_Devil_-es1rt 7 жыл бұрын
sentdex I am having problems with pip installing matplotlib to use for cv2. An error occurs saying that the following required packages can not be built: freetype, png. Do you have any idea how to fix this. Or anyone in the comments?
@p0pka_enota
@p0pka_enota 7 жыл бұрын
I see a lot of python here. Try PyCharm, this is awesome IDE for python. It has a free(community) version. This software saved me a lot of time! P.S. I don't have any relation to the company behind it, just sharing my experience.
@TejasVedagiri
@TejasVedagiri 7 жыл бұрын
Pre trained Object-Dection model has 7 class Cars,Truck,Bike,Person,Traffic_RED,Traffic_Yellow,Traffic_GREEN Hope it helps Link:-drive.google.com/open?id=0BwsCnJ2OXkorOWFWMnBNSVhHbUU
@businassman
@businassman 6 жыл бұрын
Sarah Connor 99.9%
@homer9736
@homer9736 7 жыл бұрын
You should teach the ai to play through the whole game
@Judgment89
@Judgment89 7 жыл бұрын
That's what I was thinking. An overly complex way to beat GTA V. Program your own AI to do it for you.
@RazinShaikh
@RazinShaikh 7 жыл бұрын
Now teach AI how to take over the world
@sentdex
@sentdex 7 жыл бұрын
+Razin Shaikh working on it
@kasunchamara7497
@kasunchamara7497 7 жыл бұрын
dude....nice work can u show us a self driving AI for need for speed hot pursuit game ??
@8o8inSquares
@8o8inSquares 7 жыл бұрын
Duude is there chance for you to create same thing for Rocket League? Perhaps to beat the Rocket League's champions? Something like a 1v1 master bot?
@shrutigupta7936
@shrutigupta7936 7 жыл бұрын
M the second 😍
@eddys6995
@eddys6995 7 жыл бұрын
You should have a bitcoin address for donations.. cmon you are a programmer lol.
@sentdex
@sentdex 7 жыл бұрын
I do, and it's linked to at the end of every video, I just have many ways you can support...and I don't wanna spam every time all the methods. Here's the link: pythonprogramming.net/support-donate/
@sarangs8441
@sarangs8441 7 жыл бұрын
Oh I wanted to be the first
@thidaswinathsara6164
@thidaswinathsara6164 7 жыл бұрын
ANOTHER 1ST COMMENT BRO!! I AM THE 1ST COMMENTER
@lionr.9764
@lionr.9764 7 жыл бұрын
Thidaswin Athsara fuck off
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,1 МЛН
How I see the US after living in Europe for 5 years
10:27
David Wen
Рет қаралды 3 МЛН
Cracking Software with Reverse Engineering 😳
8:01
nang
Рет қаралды 1,7 МЛН
Self-driving Car - Python plays Grand Theft Auto 5 p.7
15:10
sentdex
Рет қаралды 249 М.
Is Life Better in the USA or Europe? (An Honest Review)
17:50
Nathaniel Drew
Рет қаралды 3,5 МЛН
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН