You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your elegant and clear implementations of SAC and TD3. Your algorithms work quite well in all experiments except the robotics environment.
When I run your algorithm in robotics env, it will return error:
File "/home/rfa-xw/spinningup/spinup/algos/sac/sac.py", line 139, in sac
obs_dim = env.observation_space.shape[0]
TypeError: 'NoneType' object is not subscriptable
That's because in robotics environment, the observation is a 10 dimensional dict containing 'observation', 'desired_goal' and 'achieved_goal'. So I changed following in sac.py line 140:
I hope this could help anyone who wants to play in robotics environment!
The text was updated successfully, but these errors were encountered:
WuXinyang2012
changed the title
Cannot work in robotics envrionment due to the observation dimensions.
Errors when running in mujoco robotics envrionment, due to the obs dimensionality.
Feb 19, 2019
This is really brilliant work. I ran into the same problem, but I still cannot resolve the issue. How were you able to run the modified sac.py file in the CarRacing-v0 environment? I posted my question in late December here. Would appreciate any help!
Hi, thanks for your elegant and clear implementations of SAC and TD3. Your algorithms work quite well in all experiments except the robotics environment.
When I run your algorithm in robotics env, it will return error:
That's because in robotics environment, the observation is a 10 dimensional dict containing 'observation', 'desired_goal' and 'achieved_goal'. So I changed following in sac.py line 140:
And also in line 258 for the replay buffer:
In line 218 for session:
For the full script: the modified sac.py
I hope this could help anyone who wants to play in robotics environment!
The text was updated successfully, but these errors were encountered: