Game Automation with YOLOv8: Python Bot Tutorial

preview_player
Показать описание
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?

⌨️ All the code in the video!

👊 You got something to say to me?? Join our 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!
Рекомендации по теме
Комментарии
Автор

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?

TheDevilzAngelz
Автор

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

csg
Автор

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.

nopainnullgain
Автор

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

ontoshere
Автор

You are back? Man Ive been missing your guides.

leonardobradley
Автор

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?

JosephShapiroTech
Автор

I took like 1 hour annotating images and then the training in the google notebook gave me one error and I couldn't follow :(((

arturorg
Автор

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

BuLLGotcha
Автор

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 > : )

oneupparty
Автор

You could colect more training data while letting the bot play

snefden
Автор

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?

NemPressaNemPreguica
Автор

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?

LivLiveLegends
Автор

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

AlghostUnit
Автор

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

rtm
Автор

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

JanPeter
Автор

i did 1/1 the same and not works, there is a error in the colab, custom training cell seems broken

imjustprism
Автор

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😁

AchieveAplenty
Автор

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

rulofmg
Автор

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

edypeqk
Автор

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

sixthsense