Skip to content
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

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

Open
nwcora opened this issue Jan 11, 2018 · 1 comment

Comments

@nwcora
Copy link

nwcora commented Jan 11, 2018

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
Copy link
Owner

cbfinn commented Jan 15, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants