GithubHelp home page GithubHelp logo

lixado / pyboy-rl Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 8.0 299.42 MB

Reinforcement learning using PyBoy for Kirby Dream Land and Super Mario Land

License: MIT License

Python 98.80% Dockerfile 1.20%

pyboy-rl's People

Contributors

andreaseike avatar lixado 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyboy-rl's Issues

Issue with gym install

gym version 0.21 appears to have run afoul of a change in setuptools. This prevents your requirements from installing properly. Looks like you could use a newer version of gym or pin your version of setuptools to 65.5.0.

See openai/gym#3176

OOM GPU and some warnings

Awesome project :)

I was running your project (Kirby with GPU) and ran into OOM after a couple hours.
It seems like the gpu memory increases each step.
I'm wondering if it's due to the allocated experiences not being released after the training step.
I used a 11GB GPU and that OOM'd pretty fast. Currently using a 48GB gpu, but it seems like it will OOM since the memory is increasing (around 2MB per second).

Also, while training headless, I came across this warning:

OverflowError: cannot convert float infinity to integer
Exception ignored in: 'pyboy.pyboy.PyBoy._update_window_title'
Traceback (most recent call last):
  File "/home/ubuntu/dev/pyboy_rl/CustomPyBoyGym.py", line 27, in step
    pyboy_done = self.pyboy.tick()
OverflowError: cannot convert float infinity to integer

I'm not really familiar with the internals for PyBoy, but I would like to know how to fix it.

error when running main.py

I'm having trouble with running the main.py file. After I run it and choose the game and mode it will first open the window then immediately give me this error

  File "~/pyboy RL/main.py", line 244, in <module>
    env.reset()
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gym/wrappers/frame_stack.py", line 186, in reset
    obs, info = self.env.reset(**kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gym/wrappers/normalize.py", line 84, in reset
    obs, info = self.env.reset(**kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gym/core.py", line 379, in reset
    obs, info = self.env.reset(**kwargs)
    ^^^^^^^^^
ValueError: too many values to unpack (expected 2)
Error in sys.excepthook:

Original exception was:

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.