-
-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] FlatObsWrapper lets to Crashes Due to Concatenation of uint8 and float32 Arrays in observation Method #434
Comments
Could you provide a script to recreate the error? If possible without RLLib, just the environment and wrapper stack with the error on reset or step |
Certainly! Below is a simplified example script. import gymnasium
import minigrid
from minigrid.wrappers import FlatObsWrapper
env = FlatObsWrapper(gymnasium.make("MiniGrid-Empty-5x5-v0"))
observation, info = env.reset(seed=42)
print(env.observation_space.dtype)
print(observation.dtype)
assert env.observation_space.dtype == observation.dtype
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
The minigrid.wrappers.The FlatObsWrapper class in the observation method concatenates a uint8 array and a float32 array. This leads to RLlib crashes due to the mix of different dtypes.
Code example
System Info
Describe the characteristics of your environment:
Additional context
Minigrid/minigrid/wrappers.py
Lines 590 to 624 in 37f28b2
Checklist
The text was updated successfully, but these errors were encountered: