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

Gymnasium Version Requirement May Need To Be Updated #445

Open
plen1lune opened this issue Jan 13, 2024 · 1 comment
Open

Gymnasium Version Requirement May Need To Be Updated #445

plen1lune opened this issue Jan 13, 2024 · 1 comment

Comments

@plen1lune
Copy link

Problem Description

Hello, I started experiments on a new server and built the environment from scratch. And I found that if and only if I ran the code in Mujoco environments, there would be problems with the video rendering. To be specific, the first video it saved was all right, and the rest of them were black(successfully saved, but black in the whole video). I tried to figure out why it occurred, including but not only changing the version of CUDA, NVIDIA DRIVER, etc.
However, finally, I checked the settings in my old server to find out why this code could run well in that one, I found the version of gymnasium was 0.29.1. Then I checked the gymnasium version on my new server, it was 0.28.1. After upgrading it to 0.29.1, the problem was solved. I felt weird because I totally followed the instructions. I can still see the gymnasium requirement is 0.28.1.

Checklist

Current Behavior

The first video it saved was all right, and the rest of them were black(successfully saved, but black in the whole video). It only happened in every Mujoco environment, but not in Atari and classic control environments.

Expected Behavior

All videos shall be correctly saved

Possible Solution

Maybe we need to upgrade the requirements in this repository. Although I don't know if this issue occurs when other people run the codes, I am sure that I am not the only one who faces this problem. As the best tutorial to write the best RL codes, the official dependencies requirements shall be 100% correct in order not to lead to annoying and slight bug results in failure experience. All the best.

Steps to Reproduce

  1. install all the requirements dependencies as requirements.txt
  2. choose Mujoco environments
  3. set the render mode as rgb_array
  4. --capture-video, and run the code
@vwxyzjn
Copy link
Owner

vwxyzjn commented Jan 13, 2024

Thanks for reporting. Would you mind bumping the gymnasium version and make a PR? Should be able to update with

poetry add gymnasium==0.29.1

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