Windows:
python3 -m venv env
env\Scripts\activate
pip install -r requirements.txtLinux/Mac
python3 -m venv env
source env/Scripts/activate
pip install -r requirements.txt-
Run
show_generated_image_layers.ipynbin a python notebook -
This will generate a file
layered_minimap.gifand produce timing results for generation and training
-
Contains the evaluation code in the blog
-
Go to
evaluationfolder and follow theREADME.mdfolder to view results from the blog post/reproduce results.
- Model trained for 8 hours is in
trained_models\fastrcnn_model_8hrs.pt
- Assumes patch is 10.7 -- that there were 149 champions in this patch
-
Update the folders in
league_iconsto match the current version -
Most likely you need to updated the number of champions (add the missing champion icons under
league_icons/champion)
-
Run
train.ipynbas a python notebook -
Or
- Runs multiple threads to generate data that is forwarded to the model to train on
-
This will load the already trained model shown in the blog post. Change the path to your trained model if desired.
-
python pytorch_test_ingame.py trained_models\fastrcnn_model_8hrs.pt 149 -
Only tested with the game set as borderless and with a 1920x1080 resolution
-
This will run with external window displaying the detected champions like this
- Outputs
test.gifthat runs for 1000 frames, which is shown above
python pytorch_test_ingame.py trained_models\fastrcnn_model_8hrs.pt 149 test.gif


