Skip to content

lixado/Age-of-transformers

Repository files navigation

Age-of-transformers

Transformers based AI to learn to play deep-rts

Datasets: https://drive.google.com/file/d/1QnrxFDww0sCHng7Odl3ucdkVP0SdjBiM/view?usp=sharing

Index

Docker

  • cd age-of-transformers
  • docker build --tag age-of-transformers .
  • docker run -it age-of-transformers
  • When the container has started run: pip install deep-rts/
    • If this command fails after some time, try to run the command again and it should install successfully (DeepRTS should show up after running pip list)

Setup

Ubuntu

Create enviroment and download dependencies

python -m venv env
source env/bin/activate && pip install -r requirements.txt 
sudo xargs apt-get install -y <packages.txt

Download and compile deep-rts

git submodule init && git submodule update
cd deep-rts && git submodule init && git submodule update
pip install .

Windows

TODO

Mac

TODO

Docker

  • Pull all submodules before building
sudo docker build .
sudo docker run --gpus all -it --entrypoint bash <image hash> # runs with cuda
sudo docker run --gpus all -it --entrypoint bash $(sudo docker build -q .) # build and run
sudo docker container cp <container_hash>:/results/ ./results/ # copy files to outside container

Extra commands

  • To save all dependencies: pip freeze > requirements.txt
  • Remove all pip packages: pip freeze | xargs pip uninstall -y if error pip uninstall DeepRTS
  • To update submodules: git submodule sync
  • Get files from server: scp -r <username>@10.225.148.248:/home/pedron18/Age-of-transformers/results/ results/

About

Transformers based AI to learn to play openage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published