Git Product home page Git Product logo

simple-dvmpc-implemetation's Introduction

simple-DVMPC-implemetation

The un-official implementation of Deep Value Model Predictive Control (DVMPC) based on the papers by F.Farshidian and N.Karnchanachari

Algorithm

  • Unlike the original paper, this implementation utilized the Cross Entropy Method (CEM) and Model Predictive Path Integral (MPPI) for MPC optimization.

Environment

2d navigation environment

  • The environment is a 2d world with walls and goal.
  • the start point : (-14, -10), (-14, 0), (-14, 10)
  • the end point : (12, 0)

"screenshot"

Usage

Train

  • ensemble : if True, train the ensemble model
  • seed : seed number (default: 1234)
  • render : if True, visualize the agent on the environment
  • the default parameters are defined in the params/value_net_cem and params/ensemble_net_mppi.json file.
python3 examples/train_deep_value_mpc.py # train the single deep value mpc
python3 examples/train_deep_value_mpc.py --params_dir params/ensemble_net_mppi.json --ensemble # train the ensemble deep value mpc

Test

  • the default load directory is defined in the params/value_net_cem.json or other files.
python3 examples/test_deep_value_mpc.py --params_dir params/value_net_cem.json
python3 examples/test_deep_value_mpc.py --params_dir params/ensemble_net_mppi.json --ensemble

Visualize

python3 postprocess/visualize_value_net.py --model_weights runs/value_net/mppi_dense/value_net_028
python3 postprocess/visualize_ensemble_value_net.py --model_weights runs/ensemble_value_net/mppi_dense/value_net_033
python3 postprocess/write_reward_plot.py --log_list runs/value_net/cem_dense/logs/20221030_222322.csv runs/ensemble_value_net/mppi_dense/logs/20221031_005341.csv

"value map"

Reward plot

"cumulative reward plot"

Reference

simple-dvmpc-implemetation's People

Contributors

sjyoondeltar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zed654 phatcvo

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.