GithubHelp home page GithubHelp logo

stektpotet / neuralcommander Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 56.72 MB

An AI project developed to learn about machine learning in a game setting, while also being inventive!

ShaderLab 0.84% C# 99.16%

neuralcommander's Introduction

NeuralCommander

An AI project developed to learn about machine learning in a game setting, while also being inventive!

Installation

Executable installation

Extracts content of the release into a folder wherever.

  1. From Releases, get the newest one.
  2. Install latest python 3.6 (with pip!!!)
    1. add python + python/Scripts to env variables
  3. Download ml-agents-0.5.0a repo
  4. install virtualenv, check with virtualenv --version first, it may already be installed:
   > pip3 install -U pip virtualenv
  1. setup virtual env (see tensorflow instructions)
   C:\> virtualenv --system-site-packages -p python .\venv
   C:\> .\venv\Scripts\activate #activate the virtual environment for all the packages
  1. install ml-agents' dependencies:
   > pip install -r some_path/ml-agents-0.5.0a/ml-agents/requirements.txt

Project installation

  1. Clone repository
  2. Install Unity 2018.2 (through Unity Hub most versions of Unity are available)
  3. Install latest python 3.6 (with pip!!!)
    1. add python + python/Scripts to env variables
  4. Download ml-agents-0.5.0a repo
  5. install virtualenv, check with virtualenv --version first, it may already be installed:
   > pip3 install -U pip virtualenv
  1. setup virtual env (see tensorflow instructions)
   C:\> virtualenv --system-site-packages -p python .\venv
   C:\> .\venv\Scripts\activate #activate the virtual environment for all the packages
  1. install ml-agents' dependencies:
   > pip install -r some_path/ml-agents-0.5.0a/ml-agents/requirements.txt
  1. install mlagents-learn
   > cd some_path/ml-agents-0.5.0a/ml-agents
   > c:\venv\Scripts\activate #activate the virtualenv
   > pip install . 		#results in the mlagents-learn command being available, YAY
  1. Open the BootCamp Scene in unity
  2. Open Player settings: Edit->Settings->Player
  3. set editor to use .Net 4.x equivalent
  4. set editor "Scripting Defined Symbols": ENABLE_TENSORFLOW, BOOTCAMP
  5. Download TensorFlowSharp plugin for unity (link will download directly)
  6. import into the project (you will be prompted for this when doubleclicking the file while also having your unity project open)

Running training

Using the release-executable

From the commandline with virtualenv activated (C:\>.\venv\Scripts\activate):

   > cd some_path/ml-agents-0.5.0a/ml-agents
   > mlagents-learn --help 	#validate that the installation is working
   > mlagents-learn c:\path\to\the\executable\trainer_config.yaml env="c:\path\to\the\executable\Neural Commander.exe" --run-id="SOME_IDENTIFIER" [--load] --train #starts trainer

when the message "INFO:mlagents.envs:Start training by pressing the Play button in the Unity Editor." appears, press play in the editor

Using the project files in Unity

  1. Open the Unity Project
  2. from the commandline with virtualenv activated (C:\>.\venv\Scripts\activate):
   > cd some_path/ml-agents-0.5.0a/ml-agents
   > mlagents-learn --help 	#validate that the installation is working
   > mlagents-learn c:\path\to\the\project\Assets\trainer_config.yaml --run-id="SOME_IDENTIFIER" [--load] --train #starts trainer

neuralcommander's People

Contributors

stektpotet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.