Comments (2)
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
from minigrid.
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
uint8
float32
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[8], [line 9](vscode-notebook-cell:?execution_count=8&line=9)
[7](vscode-notebook-cell:?execution_count=8&line=7) print(env.observation_space.dtype)
[8](vscode-notebook-cell:?execution_count=8&line=8) print(observation.dtype)
----> [9](vscode-notebook-cell:?execution_count=8&line=9) assert env.observation_space.dtype == observation.dtype
AssertionError:
from minigrid.
Related Issues (20)
- [Question] Is `ActionBonus` wrapper correct ? HOT 1
- [Question] How to build custom environment with custom action space HOT 1
- Python 3.11 support is missing from the README
- [Proposal] Update documentation HOT 3
- [Proposal] Add relevant project
- [Proposal] Discrete observations
- [Bug Report] ViewSizeWrapper ignored with RGBImgPartialObsWrapper HOT 1
- [Question] Get demonstration for 'MiniGrid-MultiRoom-N4-S5-v0' HOT 1
- [Bug Report] Cannot decode obs['image'] because of no implementation of agent in minigrid/core/world_object.py
- Accessing Specific Mission in BabyAI HOT 2
- [Question] Is there any existing expert agent that can provide correct demonstration? HOT 2
- Possible bug when generating non-square DoorKey environments. HOT 4
- Relational Deep RL for minigrid HOT 2
- [Bug Report] Docu link to `minigrid/core/constants.py` broken HOT 3
- [Bug Report] Incorrect Registered Configuration in UnlockPickupEnv Documentation
- Making a specific structure in babyai env grid
- [Bug Report] Cannot run example code: TypeError: 'module' object is not callable HOT 5
- fixing position of random distractors in env
- [Bug Report] Width/Height inverted in all non-square Minigrid environments with RGBImgObsWrapper HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minigrid.