Comments (3)
Hi, thanks for your interest in the project!
-
You need tensorflow running on your machine (https://www.tensorflow.org/install/install_windows)
preferably with GPU. Also you need to install the tensor flow object-detection-api (https://github.com/tensorflow/models/tree/master/research/object_detection) -
Furthermore you need a python environment. I used IPython with Jupyter (https://jupyter.org/) as development environment, but I uploaded the .py file of the code as well so you can download and run the code however you like.
-
Unpack the custom tensorflow model for detecting league of legends objects which i trained.
EDIT: The model is now in the repository: https://github.com/Oleffa/LeagueAI/blob/master/LeagueAI_v3.zip
Outdated: I uploaded that to Google Drive (https://drive.google.com/open?id=1zuGJRwjNgHHEg43EX9VjNWYOM1pSlQY5) 72MB) -
Copy the unpacked Folder in the models-master/research/object_detection folder
-
Now you should be able to run the python script (depending on your machine it might take a while to load the tensorflow model etc. -> Success if an output window shows up and shows the AI view)
-
Currently it is configured to read all pixels from your primary screen and perform object detection + clicking actions on it. So it works best if you have the game run in fullscreen on your primary screen as usual and have the output window that will pop up on a second screen or in the background. Resolutions may be adjusted depending on your monitor resolution.
Hints: As soon as the object detection starts the program will execute clicks (so adding a delay before the main routine can give you some time to tab into the game. Pressing Q on your keyboard stops the main routine but you have to quickly tab out of the game and set focus to the output window).
A tutorial that gives a good instruction on how to set up tensorflow for object detection is this one: https://pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/
Greetings
EDIT: added some more info to the installation instructions step 3
from leagueai.
Hi Oleffa,
I was wondering if you were continuing work on this project, and if so, I was wondering if I could get involved in any way. If not, I was thinking about trying to create a similar project and would be grateful for any advice concerning an AI for league of legends.
Thanks,
Anish Karthik
from leagueai.
Hi Anish,
Right now I don't have much planned for the project. Just some ideas on what could be done next. If you want to you can of course create a branch of the project. If you need help on setting it up try using the guide i wrote in this issue and if you have questions just ask!
In general to get started with object detection I can recommend the tutorial by sentdex at: https://pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/ It basically covers the setup of the object detection with tensorflow and how to use custom object detection models.
Best Regards,
Oliver
from leagueai.
Related Issues (10)
- Getting the weights
- 2022 error - unable to draw
- Training the object detector HOT 4
- Errors HOT 1
- can you provide your python virtualenv? HOT 1
- Missing 'utils' HOT 1
- training\LeagueAI_v2.pbtxt : The system cannot find the path specified. HOT 1
- Singular matrix error HOT 3
- 3D model Viewer Recommendation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leagueai.