lixado / pyboy-rl Goto Github PK
View Code? Open in Web Editor NEWReinforcement learning using PyBoy for Kirby Dream Land and Super Mario Land
License: MIT License
Reinforcement learning using PyBoy for Kirby Dream Land and Super Mario Land
License: MIT License
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.
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.