GithubHelp home page GithubHelp logo

wisnunugroho21 / asynchronous_impala_ppo Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 6.0 3.47 MB

Multi-Agent Deep Reinforcement Learning by using Asynchronous & Impala Proximal Policy Optimization in Pytorch with some explanation

License: GNU General Public License v3.0

Python 100.00%
reinforcement-learning gym pytorch ppo proximal-policy-optimization deep-reinforcement-learning deep-learning machine-learning impala

asynchronous_impala_ppo's People

Contributors

wisnunugroho21 avatar

Stargazers

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

Watchers

 avatar  avatar

asynchronous_impala_ppo's Issues

Error when combining train and test?

Hi, I want to ask if I can do like this, I want to add 4 train threads and 1 test thread, so I did like this:

#train thread
runners = [Runner.remote(env_name, training_mode, render, n_update, i) for i in range(n_agent)]
#test thread
runners.append(Runner.remote(args, False, render, n_update, n_agent)) # training_mode = False

But I encountered an error when the test thread read the weight file:

 super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory

I suspect that the learner hasn't saved the weight file completely yet, so the test thread can not load the weight file.
But when I use 5 train threads, everything is fine.

Do you know how come is that?
Thank you very much

Memory issues ?

Hi,
When I training with a more complicated CNN, I find that the Learner will be slower with each update because the memory of its will increase over time, so I think you should define a max capacity memory for each Runner.

Thanks

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.