cbfinn / gps

Guided Policy Search
http://rll.berkeley.edu/gps/
Other
593 stars 239 forks source link

Something wrong when simulate python python/gps/gps_main.py mjc_badmm_example. #101

Open nwcora opened 6 years ago

nwcora commented 6 years ago

i have set the environment of caffe,but when i run this, it occurs Traceback (most recent call last): File "python/gps/gps_main.py", line 414, in main() File "python/gps/gps_main.py", line 348, in main hyperparams = imp.load_source('hyperparams', hyperparams_file) File "/home/wq/gps/experiments/mjc_badmm_example/hyperparams.py", line 19, in from gps.algorithm.policy_opt.policy_opt_caffe import PolicyOptCaffe File "python/gps/algorithm/policy_opt/policy_opt_caffe.py", line 8, in import caffe File "python/gps/algorithm/policy_opt/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "python/gps/algorithm/policy_opt/caffe/pycaffe.py", line 15, in import caffe.io ImportError: No module named caffe.io i see when set ros ,there are something to compile with cd src/gps_agent_pkg/ cmake . -DUSE_CAFFE=1 -DCAFFE_INCLUDE_PATH=/path/to/caffe/distribute/include -DCAFFE_LIBRARY_PATH=/path/to/caffe/build/lib make -j but there isnt anything to set when set mujoco? so what's my problem?

cbfinn commented 6 years ago

It looks like you don't have caffe installed and pycaffe properly enabled, or something changed with the caffe API and you need to use an older version.

As in the docs, make sure that: pycaffe is compiled, python layer enabled, PYTHONPATH configured