-
Notifications
You must be signed in to change notification settings - Fork 42
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
'dict' object has no attribute 'env_specs' #20
Comments
Hi! |
No, this error occurs with all environments.
I've tried both ways. Still getting the same error. |
Could you send the whole traceback of the error? |
Yeah, sure!
|
The problem seems to be Gym, which is not used within LocoMuJoCo (only Gymnasium). Mushroom-Rl requires a specific version of Gym. Using another version causes this issue. Could you try to uninstall it? |
Yes, it works now. By the way, have you thought about datasets compatibility with Minari? |
Great! Thanks for pointing this out. This could be an idea for the future, even though this repo focuses on imitation learning rather than offline rl. But if I am not wrong, you could use Minari's Datacollector to create datasets in their format (if you need it). It is just a wrapper around a Gymnasium environment, which we provide. |
Yep, that's the plan :) Anyway, thanks again for your super-fast help! |
You're welcome! Fyi, if you are planning to use custom rewards with Unitree A1 environment, use an editable installation of LocoMuJoCo for now. There was a bug #15, which was recently fixed. A new version will be released in the next few days. |
Hello again... I am expecting to get dataset as dict with 'observations', 'actions', 'rewards' for Unitree A1 env. But i can see that default dataset for Unitree A1 contains only state and next state. Is it possible for me to acquire a dataset that includes the actions for walking straight? Or perhaps you possess one already? P.S. To use Minari I still must have actions from some pretrained algorithm, but now I abandoned the idea with Minari |
Hi, LocoMujoco has different types of datasets, two of which are It is super easy to change the dataset type. Real: mdp = LocoEnv.make("UnitreeA1.simple.real") Perfect: mdp = LocoEnv.make("UnitreeA1.simple.perfect") If do not specify the dataset type, *True for all environments except the UnitreeA1, where we used a MPC controller instead |
🤦♂️ Okay, so, to get a dict dataset with actions I should use |
Oh, there seems to be a small bug in the UnitreeA1 environment then. |
- now actions are also parsed when choosing the perfect dataset type. - fixes #20.
Cool! Thank you so much |
Hi!
I am trying to run:
python3 examples/simple_mushroom_env/example_unitree_a1.py
Also I get the same error when I run
loco-mujoco-download
But I get an error:
I guess it's something about package versions...
I would appreciate any help.
Ubuntu: 22.04
Python: 3.10.12
The text was updated successfully, but these errors were encountered: