aiarena-docker-base icon indicating copy to clipboard operation
aiarena-docker-base copied to clipboard

Requirements for ML bot using tf and python

Open Olivier-aka-Raiden opened this issue 1 year ago • 0 comments

Hello, I recently started my journey of crafting SC2 bot with a bit of ML. I trained my first bot and wanted to see if it could play on the AI ladder. I tried to run it on the 'local-play-bootstrap' and I ran into some errors due to the tools I need for the model. First, I had to do :

apt-get update && apt-get install ffmpeg libsm6 libxext6  -y

To fix the error : ImportError: libGL.so.1: cannot open shared object file: No such file or directory I had the same issue for running my bot locally on docker, it's a well known issue and I found the fix on stackoverflow. Secondly, I had an issue loading my keras model and I had to update the Tensorflow to my version : pip uninstall tensorflow && pip install tensorflow==2.12.0 With the embedded version (2.9.0) I got this error : TypeError: init() takes from 2 to 4 positional arguments but 5 were given

There is maybe a way to avoid it without changing the version of TensorFlow but as I just call load("file") I didn't really look deeply into what was this error about...

Anyway, after doing these two changes, I could run my bot ! If I want to play on the ladder later on, I guess I'll have to wait that these things work. Thank you :)

Olivier-aka-Raiden avatar May 06 '23 19:05 Olivier-aka-Raiden