GithubHelp home page GithubHelp logo

kaikun213 / my-wob-env Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 20.07 MB

Environment for Agent solving simple browser tasks using OpenAIs World of Bits.

Shell 0.89% Python 21.63% Makefile 0.27% JavaScript 52.78% CSS 4.14% HTML 20.28%

my-wob-env's Introduction

World of bits

Contains environments written in Javascript that run in the browser. The environments are defined over a 210x160 grid, similar to ATARI. The top 50 pixels are devoted to the query, making the "game area" of size 160x160 pixels.

The original readme can be found in /world-of-bits/README_original.md for setup instructions.

It is used to create a docker image which runs a chrome instance with an HTML page defining the environment for the agent.

Create own Mini-wob environment

Instructions for /world-of-bits/ folder.

Create environment and register it:

  • Add HTML file in world-of-bits/static/miniwob which includes method:
     window.onload = function() {
        genProblem(); // start things off on load immediately
        core.startEpisode(); // start episode with call to core library
      }
    
  • Add it to world-of-bits/config.py in the global registry
  • Add it to universe/universe/_init_.py to be registered in the universe docker environment (See my cloned Universe repo README for instructions to add remote runtime and environment in client)
  • Add it in world-of-bits/static/core/miniwob.js to be registered as gym environment
  • Further information can be found in original world-of-bits/static/README.md

Build the docker image:

  • Make sure to make install before for downloading the custom docker-buildtool (required) from openAI
  • The docker image to build from is changed directly to the world-of-bits image, since the link to the original base is broken - the dockerfile could be drastly reduced, but it just updates for newer versions of e.g. selenium webdriver
  • make build to build the image
  • make dev ENV=wob.mini.AnExperiment-v0 to run a specific environment. It can be connected to via VNC on localhost:5900
  • make push to push a small change in files
  • make shell to enter the image in the command shell and modify files
  • For further information investigate the makefile

my-wob-env's People

Contributors

kaikun213 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hemanthsavasere

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.