I introduced weiliu89's ssd-caffe on Ubuntu, but I couldn't import it well in PyCharm environment because I was a beginner around Python interpreter. did. I've solved it, so I'll keep a record.
This time, Caffe is imported, but cloned from github etc. should be able to be imported by the same procedure in general.
Open PyCharm, File-> Settings-> Project: Project Name-> Python Interpreter Will take you to the interpreter settings page.
By default, it may be Python2.7 / usr / bin / python2.7 (gray characters). You can change the Python version by switching here.
I think the packages installed below are listed.
Now let's add Path to the interpreter we want to use. Select Show All from the gear button on the right to see a list of available interpreters. With the one you want to use selected here, open "Display the path of the selected interpreter" at the bottom of the five icons on the right.
Then the path will be displayed in a row. This time I want to add Caffe, so press the add button and add "/ home / usrname / caffe / python" (depend on your environment).
Let's apply and check.
import caffe
Recommended Posts