GithubHelp home page GithubHelp logo

robertoschiavone / flappy-bird-env Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 6.0 2.51 MB

Flappy Bird as a Farama Gymnasium environment.

License: MIT License

Python 98.15% Makefile 1.85%
flappy-bird gymnasium reinforcement-learning

flappy-bird-env's Introduction

banner

๐Ÿ‘‹ Hello, I'm Roberto.

Arch iOS Firefox PyCharm

๐ŸŽ“ MSc Artificial Intelligence @ VU Amsterdam

I'm a passionate researcher leveraging the power of artificial intelligence and deep learning to unlock the limitless potential of intelligent systems, pioneering advancements that shape the future of technology and revolutionize the way we interact with the world.

๐Ÿฆพ Technical skills

Python PyTorch scikit-learn NumPy Matplotlib Pandas SciPy

JavaScript Next JS React Redux

Java Spring

Git

๐Ÿ’Œ Connect with me

LinkedIn icon

flappy-bird-env's People

Contributors

robertoschiavone avatar

Stargazers

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

Watchers

 avatar

flappy-bird-env's Issues

rgb array returns black image

Hi,

I was trying to implement this into my RL project

import flappy_bird_env  # noqa
import gymnasium
import matplotlib.pyplot as plt
from gymnasium.wrappers import GrayScaleObservation
from stable_baselines3.common.vec_env import DummyVecEnv, VecFrameStack

env = gymnasium.make("FlappyBird-v0", render_mode="human") # if I change this into rgb_array, it returns black or 000
env = GrayScaleObservation(env, keep_dim=True)
env = DummyVecEnv([lambda: env])

state = env.reset()
# take step from sample
action = env.action_space.sample()
observation, reward, done, info = env.step([action])
print(observation[0])
plt.imshow(observation[0])
plt.show()

the option to use render_mode "rgb_array" doesn't work as it returns black image so I would have to use "human", could you take a look at this?

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.