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

how to realize the sb3 train demo code with panda-gym? #74

Closed
NUSLCC opened this issue Aug 19, 2023 · 2 comments
Closed

how to realize the sb3 train demo code with panda-gym? #74

NUSLCC opened this issue Aug 19, 2023 · 2 comments
Labels
question Further information is requested

Comments

@NUSLCC
Copy link

NUSLCC commented Aug 19, 2023

Tried and failed with panda-gym==2.0.0 as required, gym==0.26.2, stable-baseline3==2.1.0
Can anyone provide a clue of how to run the demo train code, thanks!!
Also tried to downgrade the gym==0.21.0 by #19, still failed.
image

@NUSLCC NUSLCC added the question Further information is requested label Aug 19, 2023
@qgallouedec
Copy link
Owner

The documentation was not up to date. It should be fixed now. Use the following code:

import gymnasium as gym
import panda_gym
from stable_baselines3 import DDPG

env = gym.make("PandaReach-v3")
model = DDPG(policy="MultiInputPolicy", env=env)
model.learn(30_000)

@NUSLCC
Copy link
Author

NUSLCC commented Aug 19, 2023

Thanks! It works in my environment now.

@NUSLCC NUSLCC closed this as completed Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants