We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I created an A2C model and ran the learn function I received an AttributeError from numpy.
import gym from stable_baselines3 import A2C from stable_baselines3.common.vec_env import VecFrameStack from stable_baselines3.common.env_util import make_atari_env env = make_atari_env("Breakout-v0", n_envs=4, seed=0) env = VecFrameStack(env, n_stack=4) log_path = os.path.join("training", "logs") model = A2C("CnnPolicy", env, verbose=True, tensorboard_log=log_path) model.learn(total_timesteps=100000)
model.learn() should throw this error:
AttributeError: 'numpy.random._generator.Generator' object has no attribute 'randint'
### System Info
OS: Linux-5.13.0-44-generic-x86_64-with-glibc2.10 #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 Python: 3.8.5 Stable-Baselines3: 1.5.0 PyTorch: 1.11.0+cu102 GPU Enabled: False Numpy: 1.22.4 Gym: 0.21.0
The text was updated successfully, but these errors were encountered:
Duplicate of #875
Sorry, something went wrong.
Thank you, sorry I did not find that duplicate issue.
No branches or pull requests
🐛 Bug
When I created an A2C model and ran the learn function I received an AttributeError from numpy.
To Reproduce
Expected behavior
model.learn() should throw this error:
### System Info
OS: Linux-5.13.0-44-generic-x86_64-with-glibc2.10 #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022
Python: 3.8.5
Stable-Baselines3: 1.5.0
PyTorch: 1.11.0+cu102
GPU Enabled: False
Numpy: 1.22.4
Gym: 0.21.0
The text was updated successfully, but these errors were encountered: