Giter VIP home page Giter VIP logo

jaxman's Introduction

Jaxman: Jax-based implementation for multi-agent navigation

| <!-- | Grid | Diff Drive | Continous | | ---- | ---- | ---------- | --------- |>

JAXMAN is a JAX-based library for multi-agent navigation. Our library can create environments with three different dynamics.

Installation

venv

$ python -m venv .**venv**
$ source .venv/bin/activate
(.venv) $ pip install -e .[dev]

Docker container

$ docker-compose build
$ docker-compose up -d dev
$ docker-compose exec dev bash

Docker container with CUDA enabled

$ docker-compose up -d dev-gpu
$ docker-compose exec dev-gpu bash

and update JAX modules in the container...

# pip install "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_releases.html

Tutorial

Tests

Test code is located in tests and can test environment dynamics and RL agent features by pytest -v

Experiment and Evaluation

After the setup, you can run experiment as follow (expected run in docker-container)

# python scripts/train_rl.py # train RL agent in grid environment
# python scripts/train_rl.py env.is_diff_drive=True # train RL agent in diff drive environmnet
# python scripts/train_rl.py env.is_discrete=False # train RL agent in continous environmnet
# python scripts/train_rl.py env.num_agents=10 # train RL agent in grid environment with 10 agent

Acknowledgments

This project builds upon or incorporates code and ideas from jaxmapp, by Ryo Yonetani and Keisuke Okumura:

Description

  • Some parts of our implementation in the navigation environment are based on jaxmapp.
  • Files that are implemented based on jaxmapp have it explicitly stated in their Docstring that they refer to jaxmapp.

Modification

  • jaxmapp is primarily designed for the path planning task, while our repository focuses on the navigation task.
  • The main differences are as follows:
    • We have adjusted the original implementation from jaxmapp to be more navigation-focused due to the differences in the intended tasks.
    • Added several codes suitable for reinforcement learning applications.

For additional details, please refer to jaxmapp.

jaxman's People

Contributors

hikaruasano avatar yonetaniryo avatar

Stargazers

 avatar

Watchers

Shigeo Yoshida avatar Mai Nishimura avatar Atsushi avatar Jiaxin Ma avatar Tadashi Kozuno 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.