I am trying to learn how to run the baseline for the Fetch robot environment. But, when I run the code:
python -m baselines.run --alg=ppo2 --env=FetchPickAndPlace-v1 --num_timesteps=30000 --nsteps=128
I got following error:
/home/gyan/Downloads/gym-master/gym/envs/registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
result = entry_point.load(False)
Training ppo2 on robotics:FetchPickAndPlace-v1 with arguments
{'nsteps': 128, 'network': 'mlp'}
Traceback (most recent call last):
File "/home/gyan/anaconda2/envs/py3_6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/gyan/anaconda2/envs/py3_6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/gyan/Downloads/baselines-master/baselines/run.py", line 226, in <module>
main(sys.argv)
File "/home/gyan/Downloads/baselines-master/baselines/run.py", line 198, in main
model, env = train(args, extra_args)
File "/home/gyan/Downloads/baselines-master/baselines/run.py", line 81, in train
**alg_kwargs
File "/home/gyan/Downloads/baselines-master/baselines/ppo2/ppo2.py", line 108, in learn
max_grad_norm=max_grad_norm)
File "/home/gyan/Downloads/baselines-master/baselines/ppo2/model.py", line 34, in __init__
act_model = policy(nbatch_act, 1, sess)
File "/home/gyan/Downloads/baselines-master/baselines/common/policies.py", line 129, in policy_fn
X = observ_placeholder if observ_placeholder is not None else observation_placeholder(ob_space, batch_size=nbatch)
File "/home/gyan/Downloads/baselines-master/baselines/common/input.py", line 25, in observation_placeholder
'Can only deal with Discrete and Box observation spaces for now'
AssertionError: Can only deal with Discrete and Box observation spaces for now
I am trying to learn how to run the baseline for the Fetch robot environment. But, when I run the code:
python -m baselines.run --alg=ppo2 --env=FetchPickAndPlace-v1 --num_timesteps=30000 --nsteps=128
I got following error:
OS: Ubuntu 16.04 Python Python 3.6.7
Please Help !!!