GithubHelp home page GithubHelp logo

sarthak268 / learning-to-paint-using-modelbased-drl Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 972 KB

Learning to paint using Model-based Deep Reinforcement Learning

License: MIT License

Python 100.00%
reinforcement-learning ppo ddpg-algorithm td3 learning-to-paint model-based-rl

learning-to-paint-using-modelbased-drl's Introduction

Learning to paint using Model-based DRL

Teach an agent to use a replicate an image by decomposing it to a set of strokes that can be painted on a canvas in some sequence. The agent will learn to paint the next stroke based on the current set of strokes on the canvas and the image being replicated. For this we follow the approach followed in paper Huang et al. alongside some of our own modifications. We aim to design a model-based TD3 approach as well as a model-based PPO approach and compare it to their model-based DDPG for the task of learning to paint.

Try it out on Collaboratory

Contributions

  • Trained the actor model using TD3 instead of DDPG. Within TD3, we implemented a policy update using both Proximal Policy gradient, and naive policy optimization. For TD3, we add an additional critic model in order to overcome the shortcomings of DDPG which is well known to overestimate the learnt value functions. PPO is an efficient version of TRPO, which uses a trust region to figure the direction and magnitude of gradient update
  • Compared the quantitative as well as qualitative performance of the TD3 (PPO and naive) model with baseline (with DDPG).

Requirements to visualize training graphs - TensorboardX

pip install tensorboardX
tensorboard --log_dir=<path to log folder> --port=<port>

Saved Log files

  • DDPG log files can be found here
  • TD3 log files can be found here
  • TD3-PPO log files can be found here

Link to the video results

learning-to-paint-using-modelbased-drl's People

Contributors

dvatsav avatar sarthak268 avatar shagunuppal avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shagunuppal

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.