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

Are pretrained models MuJoCo compatible? #31

Open
jendelel opened this issue Sep 24, 2019 · 6 comments
Open

Are pretrained models MuJoCo compatible? #31

jendelel opened this issue Sep 24, 2019 · 6 comments

Comments

@jendelel
Copy link

Hi,

I already had to model my environments in MuJoCo due to baseline algorithms that used it. As a proof of concept, I would like to use you pretrained Humanoid and let it run through my environment. I tried to model the observations based on your code, but didn't succeed so far. I can send my code if you want.

Do you think it such port is even possible? It seems that the actions are too large.

Thank you,
Lukas

@benelot
Copy link
Owner

benelot commented Sep 25, 2019

Hi! That was the original intent of the reimplementations! From the observations and actions length point of view, they should be compatible actually. Checkout the HumanoidMuJoCoEnv-v0, the other is the roboschool one that is oddly different (no idea why they did that). In case they are not equal in length, tell me. Another issue I have for now is that I have no idea about the corresponding observations between mujoco and pybullet. Mujoco has a cryptic state vector of the environment and it is hard to find out what the openai guys did there. So I have a hard time to get the right observations.

I am very interested in pretrained agents for all openai gym mujoco envs btw such that I can test the similarity of my envs to the openai gym reference implementation. If you want to help me with any of this, that would be great!

@benelot
Copy link
Owner

benelot commented Sep 25, 2019

On the chance that the port works: I have no idea actually. For now it only worked with the pendulums to be honest. For now I am stuck with the observations such that I can not really tell yet.

@jendelel
Copy link
Author

jendelel commented Sep 29, 2019 via email

@jendelel
Copy link
Author

Hi again,

so I managed to port the HumanoidFlugrun to MuJoCo. I would like to try to train the same ppo agent you trained for yours. However, the Tensorforce has evolved significantly and it looks like the API isn't the same. Could you tell me the command you used and the version of Tensorforce?

Thanks a lot.

Lukas

@benelot
Copy link
Owner

benelot commented Jan 20, 2020 via email

@sgillen
Copy link

sgillen commented May 26, 2020

Hi all,

I'm currently working on making some bullet environments that are compatible with the OpenAI Mujoco ones. I started making my own before discovering this project.

I am very interested in pretrained agents for all openai gym mujoco envs btw such that I can test the similarity of my envs to the openai gym reference implementation. If you want to help me with any of this, that would be great!

I am currently conducting the same experiments basically, with both your environments and the ones I started. I have some polices that work well in mujoco, but I have not gotten them to transfer successfully yet. I've been focusing on walker2d first (for no particular reason) I see two big problems to the transfer.

  1. I think there is some mismatches going on in the state vectors. There are some things like the starting height being 0 in the bullet env vs 1.25 in the mujoco one, and I think the joint ordering is different between the two. This kind of stuff will be tedious but easy to fix.

  2. The physics are different between the two simulators. I've been using pybullets setPhysicsParameters and setDynamicsParameters to get as close as possible to Mujoco. the two sims have fundamentally different constraint models so I'm not sure how close we can get, or if being policy compatible is possible.

I'm not sure if any of you are working on this anymore (this thread is rather old now), but if so I'm happy to share what I have.

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

3 participants