Skip to content
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

[Question] Extracting Segmentation mask from Gym Enviorment #3307

Open
hamzmu opened this issue Dec 29, 2024 · 1 comment
Open

[Question] Extracting Segmentation mask from Gym Enviorment #3307

hamzmu opened this issue Dec 29, 2024 · 1 comment

Comments

@hamzmu
Copy link

hamzmu commented Dec 29, 2024

I am new to Gym, is it possible to get segmentation mask from a gym environment? The only render modes I see are 'human' and 'rgb_array'. Since the engine is based on mujoco which supports getting segmentation mask, is there any way to extract the segmentation mask on an enviorment?

@Kallinteris-Andreas
Copy link

render_mode=rgb_array gives you the images with env.render() on every step, if you want to segment them you will have to do that yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants