File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -234,15 +234,20 @@ Load DEP-RL Baseline
234
234
+++++++++++++++++++++++++++++++++++++
235
235
See `here <https://deprl.readthedocs.io/en/latest/index.html >`__ for more detailed documentation of ``deprl ``.
236
236
237
+ .. note ::
238
+ Deprl requires Python `3.9 ` or newer.
239
+
237
240
If you want to load and execute the pre-trained DEP-RL baseline. Make sure that the ``deprl `` package is installed.
238
241
239
242
.. code-block :: python
240
243
241
244
from myosuite.utils import gym
242
245
import deprl
246
+ from deprl import env_wrappers
243
247
244
248
# we can pass arguments to the environments here
245
249
env = gym.make(' myoLegWalk-v0' , reset_type = ' random' )
250
+ env = env_wrappers.GymWrapper(env)
246
251
policy = deprl.load_baseline(env)
247
252
obs = env.reset()
248
253
for i in range (1000 ):
Original file line number Diff line number Diff line change 30
30
],
31
31
"source" : [
32
32
" from myosuite.utils import gym\n " ,
33
- " import deprl"
33
+ " import deprl\n " ,
34
+ " from deprl import env_wrappers"
34
35
]
35
36
},
36
37
{
45
46
"source" : [
46
47
" T = 1000 # length of episode\n " ,
47
48
" env = gym.make('myoLegWalk-v0')\n " ,
49
+ " env = env_wrappers.GymWrapper(env)\n " ,
48
50
" obs = env.reset()"
49
51
]
50
52
},
Original file line number Diff line number Diff line change 1
- __version_tuple__ = (2 , 7 , 0 )
1
+ __version_tuple__ = (2 , 8 , 0 )
You can’t perform that action at this time.
0 commit comments