Git Product home page Git Product logo

async-mahrl's Introduction

async-mahrl

Official code for the paper "Asynchronous, Option-Based Multi-Agent Policy Gradient: A Conditional Reasoning Approach"

Supported Environments

  • Water-Filling
  • Tool-Delivery
  • Capture-Target

Usage

Preparation

  1. Install conda and create a conda environment (python 3.6.8)
    conda create env --name mahrl
  2. Install necessary dependencies
    pip install -r requirements.txt
  3. Validate the installation of ai2thor simulator
    • On Windows, you may want to check: allenai/ai2thor#811.
    • On Linux, you may want to check: https://github.com/allenai/ai2thor-docker. You don't necessarily use the docker, but startx() and an minimal example is helpful to run the simulator on a Linux server without a monitor.
    • Anyway, run this example to see if everything about ai2thor works well.
    import ai2thor.platform
    from pprint import pprint
    
    if __name__ == '__main__':
        controller = ai2thor.controller.Controller(platform=ai2thor.platform.CloudRendering, scene='FloorPlan28')
        event = controller.step(action='RotateRight')
        pprint(event.metadata['agent'])```
    

Training

  • Water-Filling task
    python train_wf.py --scheme [fully-dec, partial-dec, fully-cen, partial-cen, sync-cut, sync-wait, end2end] --seed [seed]
  • Tool-Delivery task
    python tool_delivery/train_td.py --scheme [fully-dec, partial-dec, fully-cen, partial-cen, sync-cut,sync-wait] --seed [seed]
  • Capture-Target task
    python capture_target/train_ct.py --scheme [fully-dec, fully-cen] --seed [seed]

Evaluation

Use the same commands above, but add one more line in train_wf.py, train_td.py or train_ct.py as follows.
For example, in train_td.py line 95, add all_args.model_dir = "./results/toolDeliverySeparate/fully-dec/mappo/mlp/run10/models", and change the model saving path to yours.

Cite the paper

@article{lyu2022asynchronous,
title={Asynchronous, Option-Based Multi-Agent Policy Gradient: A Conditional Reasoning Approach},
author={Lyu, Xubo and Banitalebi-Dehkordi, Amin and Chen, Mo and Zhang, Yong},
journal={arXiv preprint arXiv:2203.15925},
year={2022}
}

async-mahrl's People

Contributors

xubo92 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.