Game Automation with YOLOv8: Python Bot Tutorial

Sdílet
Vložit
  • čas přidán 4. 08. 2024
  • Learn how to automate gameplay using YOLOv8 object detection in Python. This tutorial guides you through the process of coding a game bot using YOLOv8, a powerful deep learning model, to detect and interact with game elements.
    Watch step-by-step as we demonstrate how to implement YOLOv8 for game automation, providing insights and tips along the way. Enhance your programming skills and gaming experience with this comprehensive guide!
    ✌️Want to see our new courses first for free?
    www.claritycoders.com/
    ⌨️ All the code in the video!
    github.com/ClarityCoders/Torn...
    👊 You got something to say to me?? Join our discord!✌️
    / discord
    00:00 - Intro
    00:15 - Get Image Data
    04:20 - Annotate Images
    09:40 - Train Model
    12:03 - Create Bot
    16:38 - First Bot Attempt
    18:00 - Final Run!
  • Věda a technologie

Komentáře • 63

  • @csg301
    @csg301 Před 4 měsíci +11

    lets go! Waiting every day for a new upload and it finally happened! Keep up the content bro you're the best!

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci

      Really appreciate this comment. Thanks for sticking with me! More soon.

  • @ontoshere
    @ontoshere Před 4 měsíci +1

    This couldn't have come at a better time. Thanks! Can't wait to mess with this.

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +1

      It's a pretty cool process! Thanks for watching/commenting.

  • @TheDevilzAngelz
    @TheDevilzAngelz Před 4 měsíci +5

    Greetings. Welcome back!
    Overall the process seems fairly well explained, and code seems decent. Is A few comments.
    Might be worth mentioning that roboflow is only free for a trial.
    6:10 - you should not include the price in the annotations, as it might try and match the exact picture. Pre-submission edit: looks like you caught this. Good job!
    12:45 - screen width and height can be calculated. Even for multi-monitor setups. No need to have those as variables for us to modify.
    13:41 - all the `descion["buy"] = True` redundancies can be simplified down to `decision[name] = True. Similarly, you can use f-strings to do `decision[f"{name}_location"] = (center_x, center_y)`. This removes almost all of the conditionals (except the special cases such as "tree" and "building" scenarios - but again those could maybe be improved)
    I took a quick look at your code on Github. Why is the requirements file so large? Surely not all that is required for this. Maybe you did a pip freeze without being in your venv?

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +2

      Great comment I really appreciate the feedback. I will review tomorrow thanks for watching and commenting means a lot.

  • @nopainnullgain3405
    @nopainnullgain3405 Před 4 měsíci +10

    Please do more AI bot stuff! you are my favorit content creator for bot stuff, you are so good at explaning and making it easy to understand.

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +2

      Thanks! I hope to have a ton of stuff coming out this year. Stay tuned.

  • @masolhebem
    @masolhebem Před 4 měsíci

    Good Video, Brazil to the world :D

  • @leonardobradley3261
    @leonardobradley3261 Před 4 měsíci +3

    You are back? Man Ive been missing your guides.

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +1

      Back! Hopefully, more is coming soon. Thanks for watching/commenting.

  • @Frombull
    @Frombull Před 4 měsíci +1

    Awesome vid!

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +1

      Thank you! Means a lot that you guys take the time to watch and comment. More soon.

  • @JosephShapiroTech
    @JosephShapiroTech Před 4 měsíci +3

    Great video. Thanks!
    You mention in the video that you will share the colab link, but it isn't in the description or on the Github. Do you still plan to share it?

  • @BuLLGotcha
    @BuLLGotcha Před 4 měsíci

    You’re an amazing teacher, thank you. Have you considered taking on an FPS game?

  • @NemPressaNemPreguica
    @NemPressaNemPreguica Před 3 měsíci

    Very nice! So while the bot is working it still keeps takign screenshots, right? Do you add lines of code to delete them as you go? How many ss did it take in 13 hours?

  • @cejayalejandro1695
    @cejayalejandro1695 Před 3 měsíci

    letz gooooo

  • @JanPeter56
    @JanPeter56 Před 2 měsíci

    Do to need to retrain after you changed the locations of the buy buttons?

  • @user-ed4yp6eq5k
    @user-ed4yp6eq5k Před 4 měsíci

    Im talking to chatgpt rn about some like that but i need to farm in a small game area theres trees but you can only cut the one with the white circle RED marker in the middle of it

  • @Das_Unterstrich
    @Das_Unterstrich Před 4 měsíci

    Nice

  • @rulofmg
    @rulofmg Před 4 měsíci

    waiting for you to make another game automation series with SIMA when its released😆😆

  • @AchieveAplenty
    @AchieveAplenty Před 3 měsíci

    Hey bro you did really great job, so i have for you idea for your next content, lets make together video where you will help me to write my first ever bot😁

  • @cahyakomara1468
    @cahyakomara1468 Před 4 měsíci

    is there a way that we can run bots in games for multi tab games using yolo and python?

  • @snefden
    @snefden Před 3 měsíci +1

    You could colect more training data while letting the bot play

  • @LivLiveLegends
    @LivLiveLegends Před 16 dny

    video is too short to learn i am a bigner,how u used those screenshot inside script..how i use this script for any other game?..do u know where i could find full tutorial videos?

  • @Wikinger18
    @Wikinger18 Před 4 měsíci +1

    nice vid

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +1

      Thanks. Appreciate the comment. More soon.

    • @Wikinger18
      @Wikinger18 Před 4 měsíci +1

      ​@@ClarityCoders yeah 😊😊

  • @rtm1619
    @rtm1619 Před 5 dny

    Is there an open source free version program like roboflow anywhere that doesn't have a pricing option?

  • @oneupparty
    @oneupparty Před 2 měsíci +2

    I approve this, BUT you can take this one step further and install PYENV, this will allow you to set any python version you require for your specific project with out changing your system python. YOUR WELCOME > : )

  • @dragonfish-du5iu
    @dragonfish-du5iu Před 3 měsíci

    Will it self-learn?

  • @lightsploit
    @lightsploit Před 4 měsíci

    Amazing video could you also make a python bot for crossy road?

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci

      I don't hate that idea. I'll look into it!

  • @academyonnet
    @academyonnet Před 3 měsíci

    Please reply make a course with NexJS and Python pandas with Excel/CSV file uploading for input data and then presenting the output as tables and downloadable Excel/CSV files and pdf pages. There are already beginner level here on youtube but something advanced is needed. I have bought your course on Udemy and I will buy this one too.

  • @sixthsense844
    @sixthsense844 Před 4 měsíci

    Try making a bot or AI for Clash of Clans to really test your botting skills, I've done it but haven't finished the project

  • @varaxh
    @varaxh Před 2 měsíci

    its saying whoops when i try to join , i want to join so that i can find answers for some topic please help me

  • @jelos6397
    @jelos6397 Před 12 dny +1

    Bots are more fun even than the games them self often lol

    • @user-cr4dx6cb6j
      @user-cr4dx6cb6j Před 11 dny +1

      So I’m not the only one hehe
      ATM I use scripts to play my other instances of a game, but now I will start writing bot Programms, Im really hyped (:

  • @mankopooh67778
    @mankopooh67778 Před 3 měsíci

    how to contact you ?

  • @nunogomes6058
    @nunogomes6058 Před 3 měsíci

    where is the colab stuff?

  • @frostytvss
    @frostytvss Před 2 měsíci

    so its like a form of aim somewhat

  • @mankifg
    @mankifg Před 4 měsíci

    nice video, automating roblox games?

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci +1

      I like.... What games would be a good fit do you think. I haven't really got into roblox.

    • @mankifg
      @mankifg Před 4 měsíci

      @@ClarityCoders well i think there a lot of grindy games like treasure hunt simulator and a lot of tycoons

  • @JS-Lab
    @JS-Lab Před 3 měsíci

    Any help from ur side 😐

  • @BillyGamerTH
    @BillyGamerTH Před 4 měsíci

    sir What's the name of this game.

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci

      You would think I would have remembered to say the game name. Tornado Madness!

  • @user-uk5tn6st8x
    @user-uk5tn6st8x Před 16 dny

    when you say "google collab is free", that's wrong. It's limited

  • @aleksandermaltsev8371
    @aleksandermaltsev8371 Před 22 dny

    did u delete my comment lmao?

  • @abdullahmehmood4945
    @abdullahmehmood4945 Před 3 měsíci +3

    please please please bro write a program that automate free fire game

  • @charliebrown1947
    @charliebrown1947 Před 21 dnem

    That "music" needs to go. It's too loud and distracting. Fine some soothing music that blends into the background instead of making it incredibly hard to focus on what you're saying and the code on the screen

    • @ClarityCoders
      @ClarityCoders  Před 20 dny

      Noted. I apologize next one will be better. Thanks for the comment.

  • @bobr4211
    @bobr4211 Před 2 měsíci

    Sorry, but i didnt like the video.

  • @shitpost_xxx
    @shitpost_xxx Před 3 měsíci

    Please make Carrieverse Fishing Bot please

  • @_plsubscribe_
    @_plsubscribe_ Před 4 měsíci +2

    first

    • @ClarityCoders
      @ClarityCoders  Před 4 měsíci

      About time! Thank you for watching and commenting. I appreciate it.