ShapeNet / RenderForCNN

Render for CNN: Viewpoint Estimation in Images Using CNNs Trained with Rendered 3D Model Views
Other
248 stars 82 forks source link

ImportError: No module named lmdb #4

Closed Shine41 closed 8 years ago

Shine41 commented 8 years ago

I'm trying to use the off-the-shelf viewpoint estimator, but when I do "python run_demo.py", I get the following:

Traceback (most recent call last): File "run_demo.py", line 13, in from evaluation_helper import viewpoint File "/home/ying/Desktop/RenderForCNN/view_estimation/evaluation_helper.py", line 14, in from caffe_utils import * File "/home/ying/Desktop/RenderForCNN/view_estimation/caffe_utils.py", line 3, in import lmdb ImportError: No module named lmdb

This confused me as I did install lmdb before installing caffe, and of course I have tried re-installing lmdb but still cannot fix the error above. I'm sure the prerequisites are done and the paths are set. What can I do to fix this problem?

Sorry for this naive question, as I'm quite new to this, thank you in advance : )

charlesq34 commented 8 years ago

What happens if you run $ python

import lmdb

and in the view_estimation folder

$ python

import caffe_utils

Shine41 commented 8 years ago

@charlesq34 Thanks for your help! I'm able to import lmdb after running pip install lmdb rather than apt-get install liblmdb-dev, though I don't truly figure out the reason : )