在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:vdutor/TF-rex开源软件地址:https://github.com/vdutor/TF-rex开源编程语言:JavaScript 60.3%开源软件介绍:TF-rexIn this project we play Google's T-rex game using Reinforcement Learning. The RL algorithm is based on the Deep Q-Learning algorithm [1] and is implemented from scratch in TensorFlow. =========================================================================== CHECK OUT THE ACCOMPAGNYING BLOGPOST - it contains a lot more useful information. =========================================================================== Dependencies
InstallationTested on MacOs, Debian, Ubuntu, and Ubuntu-based distros. Start by cloning the repository $ git clone https://github.com/vdutor/TF-rex We recommend creating a virtualenv before installing the required packages. See virtualenv or virtualenv-wrapper on how to do so. The dependencies can be easly installed using pip. $ optional: open the virtualenv
$ pip install -r requirements.txt Getting startedWebserver for running the javascript T-rex gameA simple webserver is required to run the T-rex javascript game.
The easiest way to achieve this is by using python's Simple HTTP Server module.
Open a new terminal and navigate to $ cd /path/to/project/TF-Rex/game
$ python2 -m SimpleHTTPServer 8000 The game is now accessable on your localhost Tf-RexFirst, all the commandline arguments can be retrieved with $ cd /path/to/project/TF-Rex/tf-rex
$ python main.py --help Quickly check if the installation was successful by playing with a pretrained Q-learner. $ python main.py --notraining --logdir ../trained-model This command will restore the pretrained model, stored in IMPORTANT: The browser needs to connect with the python side. Therefore, refresh the browser after firing Training a new model can be done as follows $ python main.py --logdir logs Again, the browser needs to be refreshed to start the process. The directory passed as While training, a different terminal can be opened to launch the tensorboard $ tensorboard --logdir logs The tensorboards will be visible on References[1] Playing Atari with Deep Reinforcement Learning |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论