Code Monkey home page Code Monkey logo

lis's Introduction

LIS (Life in Silico)

=============

screenshot

Algorithm

2016-04-08 19 00 14

Algorithm Reference

Requirements

  • python 2.7

Install

Ubuntu

Install Unity experimental-build version:

wget http://download.unity3d.com/download_unity/linux/unity-editor-installer-5.3.4f1+20160317.sh
sudo sh unity-editor-installer-5.3.4f1+20160317.sh

# run Unity
./unity-editor-5.3.4f1/Editor/Unity

# if background is pink, install:
sudo apt-get install lib32stdc++6 -y

install python modules:

pip install -r python-agent/requirements.txt

Mac

Install Unity.

install python modules:

pip install -r python-agent/requirements.txt

Windows

Building simulator on Windows10 (Japanese)

Quick Start

download data:

./fetch.sh

Next, run python module as a server.

cd python-agent
python server.py

Open unity-sample-environment with Unity and load Scenes/Sample.

screenshot from 2016-04-06 18 08 31

Press Start Buttn. This will take a few minuts for loading caffe model.

screenshot from 2016-04-06 18 09 36

You can watch reward history:

cd python-agent
python plot_reward_log.py

screenshot

This graph is a "sample" scene result. It takes about 6 hours on GPU Machine.

Sample scene result movie

SampleLikesAndDislikes scene result movie

Multi Agent

This is supported only SYNC mode. ASYNC mode is not supprted.

Start multi agent server:

cd python-agent
python multi_agent.py --agent-count=2

Next, open unity-sample-environment and load Scenes/SampleMultiAgent.

You can watch reward history:

python plot_reward_log.py --log-file=reward_0.log

System Configuration

  • Client: Unity
  • Server: python module
  • Communication: Socket (WebSocket over TCP) using MessagePack

2016-04-09 4 14 49

Tips

Simulate faster

Select "SceneController" in Hierarchy tab and change "Time Scale".

2016-04-23 15 52 03

This will make simulation more faster, but it will be slow gui response.

Module Reference

  • MessagePack for Unity

  • Copyright (C) 2011-2012 Kazuki Oikawa, Kazunari Kida

  • Apache License, Version 2.0

  • Assets/Packages/msgpack-unity

  • websocket-sharp

  • Copyright (c) 2010-2016 sta.blockhead

  • The MIT License (MIT)

  • Assets/Packages/websocket-sharp

License

Notice

If you created intelligent agents, please let me know about it to "[email protected]". We will make showcase varied intelligent agents.

lis's People

Contributors

masayoshi-nakamura avatar hi-king avatar hiroki-o avatar quadjr avatar

Watchers

 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.